Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to aggregate in a pivot on an expression that uses FirstSortedValue aggregated over a time period and a lower dimension.
This is the pivot where the expression “Projected_Inventory” is only showing the last value in the latest week, no matter if you collapse the week and only show the Year. Product4 will only show the total as 5.
The Expression:
FirstSortedValue(Aggr(Sum(Projected_Inventory), Week,Product), -Aggr(Week, Week,Product))
The problem is when I try to collapse the dimension “Product” to only show “Product Type”. I want the expression to summarize the last week value for all the items in that Product Type. E.g Product4 and Product3 should give the Type 2=14 in total value. I can do this by showing another chart and replace Product with Product Type in the expression, but it is not as nice and easy to work with as one dynamic table.
I believe the following Design Blog post may be of some help:
https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822
Regards,
Brett