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: 
Anonymous
Not applicable

{1} Set analysis reacting to selections.

I'm trying to make a KPI show the amount of cases for the latest month, however the below expression returns a count of unique_id for the current selection instead. Can anyone tell me what I'm doing wrong?

Count({1<YEAR_MONTH={"=Max(YEAR_MONTH)"}>} UNIQUE_ID)

Thank you.

1 Solution

Accepted Solutions
sunny_talwar

Add {1} to the set modifier's Max() function also...

Also, do you may be also need a dollar sign expansion here?

Count({1<YEAR_MONTH={"$(=Max({1}YEAR_MONTH))"}>} UNIQUE_ID)

View solution in original post

2 Replies
sunny_talwar

Add {1} to the set modifier's Max() function also...

Also, do you may be also need a dollar sign expansion here?

Count({1<YEAR_MONTH={"$(=Max({1}YEAR_MONTH))"}>} UNIQUE_ID)

Anonymous
Not applicable
Author

Thank you!

It works exactly the way I wanted.