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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Pick
Helper II
Helper II

Calulate average of a measure

Hi,

 

  I have the table below.  I want to get the average of S2_Time_Between_Batches.  Cant seem to use the AVERAGE function on a measure.  Any help would be appreciated.

 

 
1 ACCEPTED SOLUTION

HI @Pick ,

 

 

Measure = AVERAGEX ('Table', [S2_TimeBwtweenBatches])

 

 

Measure = AVERAGEX (ALL('Table'), [S2_TimeBwtweenBatches])

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

View solution in original post

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

Hi , @Pick 


Do you have resolved it? If yes, you could accept the helpful answer as solution. You also could share your own solution here. For now, there is no content of description in the thread. If you still need help, please share more details to us.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Pick , Can you share sample data and sample output in a table format?

Why you can not use the average.  Then you need to have like

Sum(A)/Sum(B)

Sum(A)/count(B)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Capture.JPG

Hi , @Pick 

Judging from your screenshot, [S2_TimeBwtweenBatches] seems like a measure.

 

You also can take a try this formula:

 

 

 

Measure  =  [S2_TimeBwtweenBatches]/COUNTROWS('Table')

 

 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI @Pick ,

 

 

Measure = AVERAGEX ('Table', [S2_TimeBwtweenBatches])

 

 

Measure = AVERAGEX (ALL('Table'), [S2_TimeBwtweenBatches])

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

ThoSch-Ger
Helper I
Helper I

AVERAGE needs a column and won't work with an aggregation.

https://dax.guide/average/

 

Try 

Calculate( Average ( Column ); Condition 1; Condition 2; ....)

and recreate the measure with the Calculate conditions

 

 

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Kudoed Authors