Hi, I want to mimic an excel calculation in a pivot table.
I want to calculate the sum of Target and MAX GMS USD (both on warehouse level) on type short level, but i can’t simply use MAX(Target) * MAX GMS USD
, where MAX GMS USD = max({gms_usd}, [{warehouse_id}, {week_of_the_year}])
because if i don’t put warehouse in the pivot table, it will take the max of type group instead of sum of (target x gms) and make wrong calculation.
I want my final pivot to be on type level aggregation.
I tried to use max(Target, [{week_of_the_year},{country_key},{Type Short},{warehouse_id}])*{MAX GMS USD Type}
(additional partition by type short and country key), and i can save it, but whenever i try to put it into a visual it will return
Please kindly help, thank you!