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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors