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: 
Not applicable

Set Anlysis

I want to show the sale on the max year

So what will be the set analysis expression??

15 Replies
jyothish8807
Master II
Master II


Hi Amit,

Simlpy replace Sales with Salesunit in the expression i suggested or try the expression suggested by Carly McClintock.That should work.

Regards

KC

Best Regards,
KC
Not applicable
Author

Hi,

you can try

Sum({$<Year = {$(=Max(Year))}>} [Sale Unit]).

You can try this too

make  a variable 'var1' and assign

=max(Year)

and try this

Sum({$<Year = {$(var1)}>} [Sale Unit]).

By this method you can check the value of varaible and see if the qlikview is calculating it correctly.(for troubleshooting purpose.


with regards


Harshita gaur

Not applicable
Author

check the Year field data and have a look at the format, most of the suggestions already should work, option why not is maybe that field

Not applicable
Author

its working now guys

jyothish8807
Master II
Master II

If its working, then please close the thread.

Regards

KC

Best Regards,
KC
Not applicable
Author

can you explain me what it will do ?  {<Year_Filed={'$(=Max(Year_Field)'}>}