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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
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

Labels (1)
1 Reply
swuehl
Champion III
Champion III

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