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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
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.