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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
THENNA_41
Post Partisan
Post Partisan

How to use average DAX function for measure

I have created new measure in the table .  i have copied measure in the below 

 

Total_Machine_park = CALCULATE(DISTINCTCOUNT('Manning calculation'[ID]),'Manning calculation'[Capacity Type]="INSTALLED",FILTER('Manning calculation','Manning calculation'[Value]<>0),'Manning calculation'[Values]="Avl Qty").

 

I am trying to get average for the above measure .

 

I am trying to use below measure to get avg 

 

avg park=Averagex('Total_Machine_park')

 
i am getting Error. any idea.. thanks in advance .
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please try below.

 

Average measure: =
AVERAGEX (
    VALUES ( TableName[ColumnName_you want to measure avg] ),
    [Total_Machine_park]
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @THENNA_41 

how does your report look like? What columns are involved in the visual and in the slicers/filters and from which tables?

Jihwan_Kim
Super User
Super User

Hi,

Please try below.

 

Average measure: =
AVERAGEX (
    VALUES ( TableName[ColumnName_you want to measure avg] ),
    [Total_Machine_park]
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.