Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
ahmada
Contributor II
Contributor II

Sum FirstSortedValue for Groups

Hello,
I am new in the community and hope you can help me. I have a table with article numbers, storage locations and quantities.

I would like to sum the values from the last date regarding the article number and the storage location. I can't get it to work.

I tried to sum with FirstSortedValue(Menge, -Datum). But unfortunately it doesn't work.

I hope you can help me. (Lager = Storage Location, Menge = Quantity)

 

Articles.PNG

1 Solution

Accepted Solutions
shivanisapkale
Partner - Creator
Partner - Creator

Hello,

Check this out

write this in your measure and also check the attachment it is the desired output.

FirstSortedValue(Aggr(Sum(Quantity),ArticleNumber,StorageLocation),-Date)

View solution in original post

2 Replies
shivanisapkale
Partner - Creator
Partner - Creator

Hello,

Check this out

write this in your measure and also check the attachment it is the desired output.

FirstSortedValue(Aggr(Sum(Quantity),ArticleNumber,StorageLocation),-Date)

ahmada
Contributor II
Contributor II
Author

Hello,

thank you for your help. It works 🙂