How to display data with condition?

hi there, i want to ask for my problem

how to display all user with condition due dates expired?

this my application

syahdan_0-1646646301395.png

for this apps, i want to display many users who have not paid dues fot this month

when a user makes a transaction, all transactions will be stored in the following table

syahdan_1-1646646481177.png

this table for user management

syahdan_2-1646646501589.png

Is it possible if I display all users who have not made a transaction this month?

 

 

0 16 671
16 REPLIES 16

Aurelien
Google Developer Expert
Google Developer Expert

Hi @syahdan 

 

You may benefit from using a slice, and create a view based on this slice.

Your slice will have these settings:

Source table : Users

Row filter condition:

 

ISBLANK(
  FILTER("Transaction",
    AND(
      [User]=[_THISROW],
      EOMONTH([dueDate],0)=EOMONTH(TODAY(),0)
    )
  )
)

 

 

For reference:

https://help.appsheet.com/en/articles/895302-slices-the-essentials

https://help.appsheet.com/en/articles/2357308-filter

 

 

syahdan_0-1646702733457.png

display error like this

EOMONTH( when , offset-months ) requires an offset value. 

Aurelien
Google Developer Expert
Google Developer Expert

That's correct, my mistake. 

Thank you @TeeSee1 for spotting this !

I will correct this in my suggestion.

@syahdan use

 

 EOMONTH([Transaction],0)=EOMONTH(TODAY(),0) 

 

instead in the second part of the FILTER() expression.

Edit:

1) I corrected my previous suggestion in order to add the ,0 part in the EOMONTH() expression. @syahdan you can use it as it is now.

2) @syahdan you don't need to add one more MONTH() expression as it won't match EOMONTH expected input type.

 

For reference:

https://help.appsheet.com/en/articles/2430932-eomonth

 

 

like this?

syahdan_0-1646722741790.png

 

Aurelien
Google Developer Expert
Google Developer Expert

yes. But I don't know which column is correct in your case ๐Ÿ˜‰

Just, remember [RIWAYATPEMBAYARAN] should be a Date or DateTime type, as said in the documentation.

I just want to show which users haven't made a transaction this month

this my table "riwayatpembayaran"

syahdan_1-1646722967506.png

and this table datauser

syahdan_2-1646722988091.png

 

I got that.

You need to add a Date or DateTime column with every transaction.

I didn't notice you don't have it yet. If you don't have any date or datetime column, how would you expect to know which month it is ?

ok i will add. because I think I can manage it with the moon on this day

syahdan_0-1646725241875.png

like this?

Yes. It could be anything, the important part is the Initial value expression.

If type is DateTime ==> NOW()

if type is Date ==> TODAY()

 

For reference:

https://help.appsheet.com/en/articles/961346-date-and-time-expressions

 

ok done

what do i need to do next

...get back to my initial suggestion ๐Ÿ™‚

syahdan_0-1646735169535.png

like this in user slice?

Aurelien
Google Developer Expert
Google Developer Expert

yes

solved with formula

FILTER("readonlyuser",AND(
IF(ISBLANK(ANY(FILTER[BULAN])),FALSE,
[FILTER]=ANY(FILTER[BULAN])),

IF(ISBLANK(ANY(FILTER[STATUS])),TRUE,
[STATUS]=ANY(FILTER[STATUS]))))
Top Labels in this Space