Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
newhopepdx
Helper II
Helper II

Monthly average greater than the largest single input. Why?

I have started an event attendance report showing total attendance by event date to various events and a bar graph showing the average monthly, quarterly or yearly total attendance per event date.

 

The event category slicer seems to be causing the issue. There are two event categories: Regular & Special.

The image below shows the problem: With "Select All" as the category filter the average is 847, while the largest single date attendance is 826. Weird!  If the slicer is set to Regular, the average is accurate. What could be causing this?

 

Here's a link to files: https://www.dropbox.com/scl/fo/nplilnajf5s5nnvaaathy/h?rlkey=gb19rx380m2k3t2mtolyp33h1&dl=0

Steve

Attendance - Power BI Desktop.jpg

3 REPLIES 3
jdbuchanan71
Super User
Super User

Can you just use

 

Average Attendance = AVERAGE ( 'Attendance'[Attendance] )

 

 

jdbuchanan71
Super User
Super User

Because you are taking the average at the venue level then adding those all up:

AverAttendance = 
    SUMX (
        VALUES ( 'Attendance'[Venue] ),
        CALCULATE ( AVERAGE ( 'Attendance'[Attendance] ) )
)

jdbuchanan71_0-1701122975802.png

The first one is just the straight avg so you can see that it is correct at the venue level.  Then you add all those up and get 847.

Ok, I see how that work, but then what is the proper measure definition?

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.