Forum Discussion
Anonymous
7 years agoNot applicable
Group by Customer - DAX Measure
Hi guys, as I already got great help, I hope that you can quickly help me out regarding following issue. I have a table with 2 Customers and several purchasements. We have the customerID, the...
- 7 years ago
Hi Anonymous
Try this for your measure. You can set it in a Card visual, for instance.
TotalAverage = AVERAGEX ( ADDCOLUMNS ( VALUES ( Table1[Customer] ); "AvgPerCustomer"; DIVIDE ( CALCULATE ( SUM ( Table1[Amount] ) ); CALCULATE ( COUNT ( Table1[Amount] ) ) ) ); [AvgPerCustomer] )
AlB
7 years agoCommunity Champion
Hi Anonymous
Try this for your measure. You can set it in a Card visual, for instance.
TotalAverage =
AVERAGEX (
ADDCOLUMNS (
VALUES ( Table1[Customer] );
"AvgPerCustomer"; DIVIDE (
CALCULATE ( SUM ( Table1[Amount] ) );
CALCULATE ( COUNT ( Table1[Amount] ) )
)
);
[AvgPerCustomer]
)
Anonymous
7 years agoNot applicable