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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors