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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
mato32188
Specialist
Specialist

Get last sorted record

Hello guys,

I would like to create a pivot table in which you can get the last balance of product and its version as the last value of all values. See in my attached xls file. One product and its version could be located at more than one Place and also within Place in more than one PlacePoint.

Dont need to know last balance of the day, only get last balance of product and its version.

Final Pivot:

Product     ProductVer           balance= calculated as a sum of balances at all places and placepoints

L111            ver1                    200pce

L111            ver2                    150pce

L133            ver1                    20pce

I tried to use the firstsortedvalue, but it returns some other values i want to get.

Thanks for your help,

Martin

ECG line chart is the most important visualization in your life.
1 Solution

Accepted Solutions
Not applicable

try this,

regards

Darek

View solution in original post

10 Replies
tresesco
MVP
MVP

Did you try = FirstSortedValue(Balance, -Timestamp) ?

Not applicable

Let me know if i'am correct:

you would like for product+version find sum of last balances from each place+placepoint?

regards

Darek

mato32188
Specialist
Specialist
Author

Lets say, I would like to sum up all last balances at different placepoints for each Product and its version...

Need to find last Balance for each product and ist version, does not matter, where it is located...

Like for Purchase, you need to know the last balance of Purchase Product, no matter, where it is.

ECG line chart is the most important visualization in your life.
Not applicable

ok i will try to help you....

mato32188
Specialist
Specialist
Author

Helpful, it returns last balance of Product and its version sorted by timestamp descending, am I right?

But I need to know all last values for those products and versions, that could be located in different places and placepoints. Find last records for Product and its version at different Places and PlacePoints and sum up those balances.

ECG line chart is the most important visualization in your life.
mato32188
Specialist
Specialist
Author

Dziękuję bardzo

ECG line chart is the most important visualization in your life.
Not applicable

try this,

regards

Darek

mato32188
Specialist
Specialist
Author

Did you upload anything Dariusz?

I cant see it.

ECG line chart is the most important visualization in your life.
Not applicable

i attached example.