Forum Discussion
Matrix total not average
- 3 years ago
Hi newhopepdx
please try
AvAtt =
SUMX (
VALUES ( 'tblAttendance'[Venue] ),
CALCULATE ( AVERAGE ( 'tblAttendance'[Attendance] ) )
)
Hi newhopepdx
please try
AvAtt =
SUMX (
VALUES ( 'tblAttendance'[Venue] ),
CALCULATE ( AVERAGE ( 'tblAttendance'[Attendance] ) )
)
Elegant!
"VALUES", I was trying to configure something with SUMMERIZE and hadn't hit on the right arguments.
- tamerj13 years agoCommunity Champion
SUMMARIZE would work just fineand probably more efficient without the need for CALCULATE
AvAtt =
SUMX (
SUMMARIZE (
'tblAttendance',
'tblAttendance'[Venue],
"@Average", AVERAGE ( 'tblAttendance'[Attendance] )
),
[@Average]
)- newhopepdx3 years agoResolver I
Just curious... why the @before the Average? Just a personal convention, or does it have a more important meaning?
Thanks
- tamerj13 years agoCommunity Champion
Just to distinguish between newly created columns and original data model measures.