Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Set analysis error

Hi guys,

Anybody could help me on this.

What could be wrong with this expression

Sum({$<Invoice_MonthYear={$(MaxYearMonth)}>}INVOICE_AMOUNT)

Knowing that $(MaxYearMonth)=201404.

If I replace the variable above with its value like:

Sum({$<Invoice_MonthYear={'201404'}>}INVOICE_AMOUNT) it returns the right value but when i replace it with the variable above it returns error!

13 Replies
alec1982
Specialist II
Specialist II
Author

Here is a sample.. Thank you!

ashfaq_haseeb
Champion III
Champion III

Hi

may be like this.

Regards

ASHFAQ

alec1982
Specialist II
Specialist II
Author

This worked for me. with no need for variables. Thank you!

Anonymous
Not applicable

This works for me:

=Sum({$<Invoice_MonthYear={"$(=$(MaxYearMonth))"}>} INVOICE_AMOUNT)