Forum Discussion
PeterL1
8 years agoHelper I
Row Total that moves with sort on average
Hi, I am currently trying to create a row total that would move when sorted alphabetically by an average. The total needs to move with the Groups when i sort the Average per SQM, so that i ca...
- 8 years ago
Hi PeterL1
Try this
Go to Modelling Tab>>>>>NEW TABLE
NEW Table = UNION ( YourTable, ROW ( "GROUPS", "TOTAL", "SQM", SUM ( YourTable[SQM] ), "SALES", SUM ( YourTable[SALES] ), "AVERAGE PER SQM", DIVIDE ( SUM ( YourTable[SALES] ), SUM ( YourTable[SQM] ) ) ) ) - 8 years ago
Zubair_Muhammad
8 years agoCommunity Champion
Hi PeterL1
Try this
Go to Modelling Tab>>>>>NEW TABLE
NEW Table =
UNION (
YourTable,
ROW (
"GROUPS", "TOTAL",
"SQM", SUM ( YourTable[SQM] ),
"SALES", SUM ( YourTable[SALES] ),
"AVERAGE PER SQM", DIVIDE ( SUM ( YourTable[SALES] ), SUM ( YourTable[SQM] ) )
)
)- Zubair_Muhammad8 years agoCommunity Champion