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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

MAA not summing correctly

Hi all,

 

I'm trying to make a moving annual average (over 13 periods) of incidents, however my MAA keeps under reporting. Here is my MAA measure:

 

MAA Incident Count = 
IF([Count_periods_present] = 13,
    CALCULATE (DISTINCTCOUNT('AttributionEvents_v1 1 0_Eastern'[Incident Number]),
        FILTER(
            ALL('Financial Year & Period Data'),
            'Financial Year & Period Data'[Index] >= MAX('Financial Year & Period Data'[Index]) -12
            && 'Financial Year & Period Data'[Index] <= MAX('Financial Year & Period Data'[Index])
    ))/13)

 

 

It is important that the measure only counts the distinct incident numbers within each period, as there are many duplicate incident numbers (the incidents can contain several "events"). 

The table below shows an incorrect total, and this is the value (677) that the MAA is using rather than the actual total of 909:

TWorthin_0-1657293835111.png

How do I get my MAA to correctly sum the period incident counts to 909?

 

Thanks,

Tom

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Try measure like

 

MAA Incident Count =
Sumx(Values('Financial Year & Period Data'[Financial Year/Period]) , IF([Count_periods_present] = 13,
CALCULATE (DISTINCTCOUNT('AttributionEvents_v1 1 0_Eastern'[Incident Number]),
FILTER(
ALL('Financial Year & Period Data'),
'Financial Year & Period Data'[Index] >= MAX('Financial Year & Period Data'[Index]) -12
&& 'Financial Year & Period Data'[Index] <= MAX('Financial Year & Period Data'[Index])
))/13))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak, unfortunately that still returns the same values as before, 52.08 for the first 13 periods.

Anonymous
Not applicable

HI @Anonymous,

Perhaps you can take a look at Greg's blog of measure total issue if helps:

Measure Totals, The Final Word  

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors