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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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