In some business cases, customers want to create a metric to sum up all the attribute elements included in a custom group regardless of grouping by custom group elements. Below is a solution in Tutorial Project against Oracle database:





ApplyAgg("sum(case when #1=12 then #0 when #2 in (5,11,12) then #0 else 0 end)", Revenue, Region@ID, [Call Center]@ID) {Region}

KB221939