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
ko_82
New Member

Average for Quarters of Measure

Hello everyone!

 

I have an issue with calculating average for each quarter based on calculated measure... I have calculated a measure -> added it to matrix (with month in view):

Perc_Type = (DIVIDE(CALCULATE(SUM(Compl[Am])), CALCULATE(SUM(Table2[Values])))*1000

Result:

ko_82_0-1662143072580.png

Based on this, I want to calculate AVERAGE of "Perc_Type" for each QUARTER within "Type" and receive result:

ko_82_1-1662143254534.png

Any ideas how it possible to find average of measure for each quarter from "monthly calculated measure"?

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@ko_82 assuming you have a calendar dimension in your model that is used for quarter and month, if not then check my video on how you can add one and the advantages of using a calendar dimension https://www.youtube.com/watch?v=BKzsCfr4qeQ&list=PLiYSIjh4cEx2FkuGkngYruS0wm8MYFsoi&index=12

 

, once this dimension is in place, add a measure to calculate the average

 

Avg = 
AVERAGEX ( VALUES ( 'Calendar'[Month] ), [Your Percent Type Measure] )

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

1 REPLY 1
parry2k
Super User
Super User

@ko_82 assuming you have a calendar dimension in your model that is used for quarter and month, if not then check my video on how you can add one and the advantages of using a calendar dimension https://www.youtube.com/watch?v=BKzsCfr4qeQ&list=PLiYSIjh4cEx2FkuGkngYruS0wm8MYFsoi&index=12

 

, once this dimension is in place, add a measure to calculate the average

 

Avg = 
AVERAGEX ( VALUES ( 'Calendar'[Month] ), [Your Percent Type Measure] )

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.