Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Anlysis

I want to show the sale on the max year

So what will be the set analysis expression??

15 Replies
Not applicable
Author

Hi Amit,

something along the line of

Sum({<[YearField]={$(=Max([YearField]))}>} Sales)

should work

hope that helps

Joe

jyothish8807
Master II
Master II

Hi Amit,

try this:

Year should be your field according to your app?

sum({<Year={'$(=Max(Year)'}>}Sales)

Regards

KC

Best Regards,
KC
PrashantSangle

Hi,

Try like

Sum({<Year={"$(=max(Year))"}>}Sales)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

its not working gyes

Not applicable
Author

It works for me, see attached (make sure your spelling is exact with the field names, sometimes I type it without a capital letter to start and it loks correct but it errors as it doesn't recognise the field).

Good Luck

PradeepReddy
Specialist II
Specialist II

Try like this..

sum({<Year_Filed={'$(=Max(Year_Field)'}>}Sales)

jyothish8807
Master II
Master II

Please share your app, it may be because of different field name or any other mismatches.

Regards

KC

Best Regards,
KC
Not applicable
Author

Company_Sale:
LOAD Name,
     Year,
     Sales as [Sale Unit]
FROM
$(vPath)Assignment\19-11 assgn\Data.xlsx
(ooxml, embedded labels, table is Sheet3);

Not applicable
Author

sum({<Year={'$(=Max(Year))'}>}[Sale Unit])