Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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!

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Hi

may be like this.

Regards

ASHFAQ

View solution in original post

13 Replies
Not applicable

try:

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

ashfaq_haseeb
Champion III
Champion III

try below

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

updated

Sum({$<Invoice_MonthYear={$(=Max(YearMonth))}>}INVOICE_AMOUNT)

Regards

ASHFAQ

alec1982
Specialist II
Specialist II
Author

Still the same error

Not applicable

share application

Anonymous
Not applicable

Maybe

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

ashfaq_haseeb
Champion III
Champion III

like this

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


Regards

ASHFAQ

alec1982
Specialist II
Specialist II
Author

I am still getting the error..

Unfortunately I cannot share the app. I have used the same expression somewhere else and it worked..Not sure if the expression is not recognizing the value of the variable..

Let me know your thoughts.. and thank you for all your help!

Not applicable

Please attach example. It is difficult to guess without a view...

PradeepReddy
Specialist II
Specialist II

try this....

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

If still not working.. pls share the application....