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
Anonymous
Not applicable

calculate average of a measure

HI,

I am not sure how to get the average of a measure.

Currently: Total = count (table1[ID])

And I have the following:

 

I would like to get the average of the all these months to show just one number say in a KPI report: 29K


Capture1.PNG

Can someone please help? 

Thanks in advance.

1 ACCEPTED SOLUTION

@Anonymous

 

Try with:

 

Average = AVERAGEX(VALUES(Table1[Date].[Month]),[Total])

 

Regards

 

Victor




Lima - Peru

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi @Anonymous,

 

Assuming that:

 

  1. There is a calendar table with dates ranging from the first date in your dataset to the last date in your dataset
  2. There is a month and year column in the calendar table using the FORMAT(Calendar[Date],"MMMM") and YEAR(Calendar[Date]) functions
  3. There is a relatioship from the Date column in your dataset to the Date column in your calendar table
  4. Write the following calculated field formula

 

=AVERAGEX(SUMMARIZE(Calendar,Calendar[Month],"ABCD",COUNT(Table1[ID])),[ABCD])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, try with

 

Average = AVERAGEX(VALUES(Table1[Category]),[Total])

 

 

 

Regards

 

Victor

Lima - Peru




Lima - Peru
Anonymous
Not applicable

Thanks for your suggestion.

Do I have to do something with the [Category]?

My data fields are "date", ID" 

So currently, the return result doesn't work out.

 

@Anonymous

 

Try with:

 

Average = AVERAGEX(VALUES(Table1[Date].[Month]),[Total])

 

Regards

 

Victor




Lima - Peru

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.