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: 
nareshthavidishetty
Creator III
Creator III

Set analysis

Hi,

I'm getting the below error in set analysis.Please let me know the correct logic.

Untitled.png

Thanks..

11 Replies
saimahasan
Partner - Creator III
Partner - Creator III

Hi Naresh

Since your MaxReportedDate field must be having only single record, you cantake that value in variable by using

LET vMaxDate = Date(Peek('Max_A',0,'B'));

Then using the set expression:

=Sum({$<Date={"$(vMaxDate)"}>}Sales)

You can get the required output.

vishsaggi
Champion III
Champion III

Yes, I missed it. Thanks.