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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors