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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors