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
Lyle
Frequent Visitor

Swap SUM Total for AVG per month

I'm trying to create a measure for changing the SUM Total to an AVG over 12 months (1 year). I'd like to have the right table saying:

 

2019 IN = 93 / 12 = 7.75

 

https://contraconsolidations-my.sharepoint.com/:x:/g/personal/dylan_contracon_net/EWT43eddu05EqoXXCZ...

https://contraconsolidations-my.sharepoint.com/:u:/g/personal/dylan_contracon_net/EUyVS6LezIJFkwr0oh...

 

Thanks in advance!

@v-rzhou-msft you previously helped me with something similar:

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Measure-from-current-month-amp-year-to-the-sa...

 

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

HI @Lyle ,

 

1. Create a Date Table . 

https://www.youtube.com/watch?v=mLiPm82GRUo

 

2. Create a measure

Total Trips = SUM(Box[Trips])
 
3. Create a measure 
Average Trips/month = AVERAGEX(VALUES(Dates[MonthnYear]), [Total Trips])
 
.pbix attached
 
Regards,
Harsh Nathani
 
12.JPG
 
 
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

2 REPLIES 2
harshnathani
Community Champion
Community Champion

HI @Lyle ,

 

1. Create a Date Table . 

https://www.youtube.com/watch?v=mLiPm82GRUo

 

2. Create a measure

Total Trips = SUM(Box[Trips])
 
3. Create a measure 
Average Trips/month = AVERAGEX(VALUES(Dates[MonthnYear]), [Total Trips])
 
.pbix attached
 
Regards,
Harsh Nathani
 
12.JPG
 
 
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Wow! Thanks again very much!

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.

Top Solution Authors