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.
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.