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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Monthly Total - Annual Aaverage

Hi all

 

I'm trying to do a monthly total - annual average measure for my latest reporting project.

 

The idea being that this will be the first step towards a least squares comparison for the current year's data against previous data.

 

I've made ( for ease) the measures:

total = COUNTA(ApplicationsPBI[GUID])

MonthMean = CALCULATE(COUNT(ApplicationsPBI[GUID]),ALL(ApplicationsPBI[Application Date]))

 

I have data with dates over a number of years.

 

What I am looking for is a each month's count - the annual average.

 

When I put any measure in a graph it just calculates the monthly avreage and not the annual average.

 

I can not seem to get the filters off the measure! It feels like I'm missing something obvious. Can anyone help?

 

Thanks

Beth

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi

 

Spoiler
Spoiler! 😉

Thanks. I did eventually figure this out! Go me!

 

Acad Mean = CALCULATE(COUNTA(ApplicationsPBI[GUID]),ALLEXCEPT(ApplicationsPBI,'Date Order (Applications)'[Acad Period]))/12

 

 

It was just a case of figuring out how to remove the right filter, in this case all but acad period. So now when I use this measure, it gives me the monthly average for the acad period regardless of the number of appliocations in any given month.

 

Not sure that makes sense without context though!

 

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

@Anonymous,

In order to provide your appropriate DAX, please share dummy data of your table and post expected result based on the dummy data.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi

 

Spoiler
Spoiler! 😉

Thanks. I did eventually figure this out! Go me!

 

Acad Mean = CALCULATE(COUNTA(ApplicationsPBI[GUID]),ALLEXCEPT(ApplicationsPBI,'Date Order (Applications)'[Acad Period]))/12

 

 

It was just a case of figuring out how to remove the right filter, in this case all but acad period. So now when I use this measure, it gives me the monthly average for the acad period regardless of the number of appliocations in any given month.

 

Not sure that makes sense without context though!

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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