Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Qlik Insider: SaaS capabilities for Data Integration and Analytics, May 25th! Register Now
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
Partner

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
Partner

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 🙂