Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date criteria in set analysis

Hi Experts,

How can I add a specific filter criteria (field name) in the following expression instead of hard values, I would like to get the value which is lesser than or equal to the selections.


The filter name is: DocDate

Sum({$<DocDate = {'<=08/30/2016'}>} Debit) - Sum({$<DocDate = {'<=8/30/2016'}>} Credit)

Kindly help!


3 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

For max date selected

Sum({$<DocDate = {'<=$(=Max(Date))'}>} Debit) - Sum({$<DocDate ={'<=$(=Max(Date))'}>} Credit)


OR for Today date


Sum({$<DocDate = {'<=$(=Today())'}>} Debit) - Sum({$<DocDate ={'<=$(=Today())'}>} Credit)


Regards,

Jagan.

Not applicable
Author

Thanks Jagan.

jagan
Partner - Champion III
Partner - Champion III

Hi Shazad,

If you got the answer close this thread by giving Correct Answer, so that it would be helpful for others.

Regards,

jagan.