Forum Discussion
newhopepdx
3 years agoResolver I
Matrix 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] ) )
)
tamerj1
3 years agoCommunity Champion
Hi newhopepdx
please try
AvAtt =
SUMX (
VALUES ( 'tblAttendance'[Venue] ),
CALCULATE ( AVERAGE ( 'tblAttendance'[Attendance] ) )
)
- newhopepdx3 years agoResolver I
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