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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors