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: 
d4rlie891
Contributor III
Contributor III

How to ignore selection

Hi,

Anyone can help me, how to Ignore Year_Month Selection for this Set Analysis :

Max(Aggr(

sum({<YEAR_MONTH = {">=$(=date(addmonths(max({1}YEAR_MONTH), -12), 'YYYY-MM'))"} * {"<=$(=max({1}YEAR_MONTH))"}, JENIS_TRX>}TOT_TRANS),TANGGAL))

So if I do select the YEAR_MONTH, the Chart below will not change.

Max Trx.jpg

I also doesn't want this KPI changed by YEAR_MONTH Selection

FirstSortedValue(DISTINCT TANGGAL, -Aggr(sum(TOT_TRANS),TANGGAL))

Date Top Trx.jpg

Thanks for you help.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

And

FirstSortedValue({<YEAR_MONTH>} DISTINCT TANGGAL, -Aggr(sum(TOT_TRANS),TANGGAL))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

4 Replies
arulsettu
Master III
Master III

can you post sample qvf

jonathandienst
Partner - Champion III
Partner - Champion III

Put an override for YEAR_MONTH before the Aggr():

Max({<YEAR_MONTH>}

  Aggr(

  Sum({<

  YEAR_MONTH = {">=$(=date(addmonths(max({1}YEAR_MONTH), -12), 'YYYY-MM'))"}

  * {"<=$(=max({1}YEAR_MONTH))"}, JENIS_TRX>}TOT_TRANS)

  ,TANGGAL))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

And

FirstSortedValue({<YEAR_MONTH>} DISTINCT TANGGAL, -Aggr(sum(TOT_TRANS),TANGGAL))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
d4rlie891
Contributor III
Contributor III
Author

Thanks So Much, It's Worked