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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ishanbansal1204
Contributor III
Contributor III

Excluding Filters in the expressions

Hi ,

I have an expression to calculate last 12 months of information.

count(DISTINCT{$<WEEK=,MON=,QUAR=,SUBMIT_DATE={">=$(=MonthStart(AddMonths(Max(SUBMIT_DATE),-12)))<$(=MonthEnd(Max(SUBMIT_DATE)))"}>} [ID])

As I have 3 filters in sheet 1 that is Week , Mon,Quar , whenever i apply these filters the value in the sheet 2 changes. is there any way that i can exclude filters in the expressions. appreciate your help.

Thank you.

1 Solution

Accepted Solutions
shraddha_g
Partner - Master III
Partner - Master III

Try,

count(DISTINCT{$<WEEK=,MON=,QUAR=,SUBMIT_DATE={">=$(=MonthStart(AddMonths(Max({<WEEK=,MON=,QUAR=>}SUBMIT_DATE),-12)))<$(=MonthEnd(Max({<WEEK=,MON=,QUAR=>}SUBMIT_DATE)))"}>} [ID])

View solution in original post

2 Replies
shraddha_g
Partner - Master III
Partner - Master III

Try,

count(DISTINCT{$<WEEK=,MON=,QUAR=,SUBMIT_DATE={">=$(=MonthStart(AddMonths(Max({<WEEK=,MON=,QUAR=>}SUBMIT_DATE),-12)))<$(=MonthEnd(Max({<WEEK=,MON=,QUAR=>}SUBMIT_DATE)))"}>} [ID])

ishanbansal1204
Contributor III
Contributor III
Author

Thank you Shraddha.