Forum Discussion
newhopepdx
Resolver I
3 years agoMatrix total not average
Visual is a matrix with Venues as rows and months as columns. Values are attendance totals. Measure calculates the Average monthly attendance. AvAtt = AVERAGEX( 'tblAttendance', 'tblAttendance'[At...
- 3 years ago
Hi newhopepdx
please try
AvAtt =
SUMX (
VALUES ( 'tblAttendance'[Venue] ),
CALCULATE ( AVERAGE ( 'tblAttendance'[Attendance] ) )
)
newhopepdx
Resolver I
3 years agoElegant!
"VALUES", I was trying to configure something with SUMMERIZE and hadn't hit on the right arguments.
tamerj1
Community Champion
3 years agoSUMMARIZE 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 ago
Resolver I
Just curious... why the @before the Average? Just a personal convention, or does it have a more important meaning?
Thanks
- tamerj13 years ago
Community Champion
Just to distinguish between newly created columns and original data model measures.