Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
cafcptg2011
Creator
Creator

set analysis not working

Hi,

I need to know the Last Price of each article sold, but how can I accomplish that ?

I have this:

1.PNG

and I need this:

LastPrice.PNG

my current expression is:

max( { < Code = {$(=max(aggr( max(Code), Article)))} > } Price)

but as you can see above doesn't work... can anyone please help me?

I have a qvw here to help you : http://community.qlik.com/servlet/JiveServlet/downloadBody/7752-102-1-10425/SalesByPrice.qvw

thanks in advance,

cafc

1 Solution

Accepted Solutions
mrybalko
Creator II
Creator II

Hello

The problem is expression like $(=max(Code)) does not take into consideration dimensions. So max Code is always 53.

I suggest to use flags in load script. Example is in attachment.

View solution in original post

3 Replies
mrybalko
Creator II
Creator II

Hello

The problem is expression like $(=max(Code)) does not take into consideration dimensions. So max Code is always 53.

I suggest to use flags in load script. Example is in attachment.

cafcptg2011
Creator
Creator
Author

hi,

thanks for reply/help.

on possible solution is max(code).... as simple as that...

bye

mrybalko
Creator II
Creator II

There is one more solution: function FirstSortedValue

So the expression is

FirstSortedValue(Price, -Code)