Forum Discussion
Fatman121
5 years agoFrequent Visitor
Matrix from unpivoted table - how use different methods of grandtotal calclulating
Hi! I have unpivoted table like: Product Measure Unit Value Product 1 Price USD 1000 Product 1 Remains tn 10 Product 1 Competitor Price USD 1050 Product 2 Price USD 10...
- 5 years ago
Hi Fatman121 ,
Start by creating a measure for each logic:Remains = SUM(Table[Value])Price = AVERAGE(Table[Value])
Then create a final measure that switches between the other measures, depending on the value of your "Measure" column.Dynamic selection = SWITCH( SELECTEDVALUE( Table[Measure] ) , "Price" , [Price] , "Remains" , [Remains] )
When you use the "Measure" column as the row dimension you should get the different types of logic while only having to use the single "Dynamic selection" measure as the value in the matrix.
Hope this helps!
Br,
J