I am trying to user firstsortedvalue function in a KPI object.
I would like to see in the KPI the day-hour with the highest sum(kpi) value. In the example below will be "tuesday-3" (the sum(kpi) is 120.
I tried FirstSortedValue(day & '-' & hour,sum(kpi)) but got a "nested aggregation not allowed error" and then I tried FirstSortedValue(day & '-' & hour,-aggr(sum(kpi),day & '-' & hour)) without success.