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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors