Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

What is wrong with this set analysis expression

Why is it not working. Is there some syntax mistake

sum({$<Date_k={">=$(=date(max(Date_k)-300,'yyyyMMdd'))<=$(=date(max(Date_k),'yyyyMMdd'))"}>}QtyOnHand)

Shah

1 Reply
swuehl
MVP
MVP

Could you be a bit more specific what 'is not working' exactely means? No results, wrong results, etc?

First check that your dollar sign expansions return the expected values, correctly formatted matching the field value format of Date_k.

Second, if you make active selections in other fields, these may interefere with the set you define in your set analysis.

You may need to clear fields the user may select in (e.g. Month field).

It's explained in more details in

The Magic of Set Analysis - Point In Time Reporting • Blog • AfterSync

Dates in Set Analysis