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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NDG
Frequent Visitor

Average based on columns

Good day,

 

 Will need help as I’m new with DAX. How I can get average measure based on measure output whereas condition to be used different columns entries.

 

Exs.

 

Table 1 as condition to be Sales Product Category

Table 2 as condition to be Plant

Table 3 as condition to be Order date

And average to be from Measure from Table 3.

 

Table 1     Table 2         Table 3             Measure

Film            ANT            9/1/21                     3

Film            BTM           9/1/21                      4

Paper         ANT            9/1/21                      5

 Film            ANT           9/3/21                     5              

 

Thank you all for your support 

 

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @NDG ,

You can try this measure to calculate the average:

Average = 
VAR tab =
    SUMMARIZE (
        'Table 1',
        'Table 1'[Sales Product Category],
        'Table 2'[Plant],
        'Table 3'[Order date],
        "A", [Measure]
    )
RETURN
    AVERAGEX ( tab, [A] )

vyingjl_0-1631240990861.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @NDG ,

You can try this measure to calculate the average:

Average = 
VAR tab =
    SUMMARIZE (
        'Table 1',
        'Table 1'[Sales Product Category],
        'Table 2'[Plant],
        'Table 3'[Order date],
        "A", [Measure]
    )
RETURN
    AVERAGEX ( tab, [A] )

vyingjl_0-1631240990861.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

NDG
Frequent Visitor

Thank you @v-yingjl 

lbendlin
Super User
Super User

Power BI visuals have built-in aggregations - measures are not required.  

 

lbendlin_0-1631069993339.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors