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: 
geogou1973
Creator
Creator

Set analysis

Hello.

I have the following formula. How can i rewrite this without the data change from current selection that the user is doing ?

Sum({<SALES_YEAR={'$(=MAX(SALES_YEAR))'},SALES_MONTH={'$(=VMONTH)'},FORMAT={'FRANC'},SALES_DATE=>}AMOUNT)

Thank you in advance.

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Sum({1<SALES_YEAR={'$(=MAX({1}SALES_YEAR))'},SALES_MONTH={'$(=VMONTH)'},FORMAT={'FRANC'},SALES_DATE=>}AMOUNT)


Might need {1} within VMONTH variable also.

View solution in original post

4 Replies
Anonymous
Not applicable

I'm a bit confused, are you saying you want to ignore the user selections?

If that's the case, put a 1 in the beginning of the set analysis

Sum({1<SALES_YEAR={'$(=MAX(SALES_YEAR))'},SALES_MONTH={'$(=VMONTH)'},FORMAT={'FRANC'},SALES_DATE=>}AMOUNT)

geogou1973
Creator
Creator
Author

Hello David.

I have already put this in the formula but i have the same results. It takes also the selections of the users

sunny_talwar

Try this:

Sum({1<SALES_YEAR={'$(=MAX({1}SALES_YEAR))'},SALES_MONTH={'$(=VMONTH)'},FORMAT={'FRANC'},SALES_DATE=>}AMOUNT)


Might need {1} within VMONTH variable also.

MK_QSL
MVP
MVP

And might for VMONTH also..