Searching for a way to do the following; any help is greatly appreciated!
Setup: Excel 2013 & Powerpivot;
Pivot in Values:
Value #1 and #2 Sum of numeric values
Calculated field in Value #3 (% of Value #1)
Calculated field in Value #4 (Value #3 - Value#2)
Value #5 and #6 Sum of numeric values (different than #1 and #2)
Calculated field in Value #7 (% of Value #5)
Calculated field in Value #8 (Value #7 - Value#6)
Rows in Pivot
Row#1 Area
Row#2 District
Row#3 Cluster ID
Trying to create new calculated field that will do the following (showing via an excel formula to describe)
If(and(District Value#4)>0,ClusterID Value#8>0),1,2)
Any idea how this can be done in DAX / Powerpivot ?????
I have tried Hierarchies, but no luck.
Calculated formulas will allow me to see the pivot row name, so maybe a filter, but cant seem to get the syntax correct, assuming it is even allowed...
Stuck..
All suggestions are very much appreciated !