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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Matty
Helper II
Helper II

Average of measure results at grouped level...

Hi All,

Bit of an odd ask, but I'm looking for some DAX help that takes what a measure (at lower grain) has calculated, and calculates an average over these results, at a grouped level.

Here's some data to illustrate:

Year WeekYear MonthPlanActualABS DifferenceWeekly Accuracy
202101202101286436-28.6%
20210220210112221016.7%
20210320210183830100.0%
20210420210155651081.8%
202105202102307141-36.7%
20210620210275245-542.9%
20210720210272135918.1%
20210820210282820100.0%
202109202103371362.7%
20211020210392207221.7%
2021112021034340393.0%
2021122021033429585.3%
202113202103328553-65.6%

Where 'Weekly Accuracy' is: =1-(ABS Difference/Plan)

Desired result:

Year MonthMonthly Accuracy (Average)
20210142.48%
202102-115.37%
20210327.43%

Where 'Monthly Accuracy (Average)' is:  Average of the weekly accuracy results grouped at Year Month level.

Hope this makes sense and someone is able to help.

Cheers,

Matty

1 ACCEPTED SOLUTION
Matty
Helper II
Helper II

Hi All,

 

Don't worry about this one - now sorted using SUMMARIZE inside of AVERAGEX.

 

Cheers,

 

Matty

View solution in original post

1 REPLY 1
Matty
Helper II
Helper II

Hi All,

 

Don't worry about this one - now sorted using SUMMARIZE inside of AVERAGEX.

 

Cheers,

 

Matty

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.