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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
krmvacar
Creator II
Creator II

Firs stored value group by

Hi , 

I have the following data. What I want to do here is to get the highest customer number from the ones that contain the customer ID in (1,2,3) and collect their price.

my expression;

sum(aggr(FirstSortedValue([TOTAL_PRICE],-Aggr(sum({<[OFFER_ID]={'01','02','03'}>}[OLPSALHEAD.DOCNUM]),[TOTAL_PRICE],))
,[Customer_Name]))

its not working 😞

Help please

 

EXAMPLE_SENSE.PNG

4 Replies
agigliotti
MVP
MVP

Hi @krmvacar ,

It's not clear to me, what is your actual result and the expected one?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
krmvacar
Creator II
Creator II
Author

Hi @agigliotti  ,

get the price of the person with the highest offer  number

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi, Is the expected output 149000 ?

As Customer JOHN Contains Offer id 1,2,3 and max offer number 1347.

krmvacar
Creator II
Creator II
Author

Hi @AshutoshBhumkar ,

Yes for JOHN 149000 and max offer number 1347 and for ABC max offer number 1455.

thank you so much