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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mwjansen
Helper I
Helper I

Multiply averages in two tables with filters applied

Hello. 

1 month in on Power BI.

 

I have two tables, both with numeric columns. Average two columns and multiply the results.

SS = Round(Average('Table1'[ColA]),2) * Round(Average('Table2'[ColB], 2)

 

This works just fine.
Both tables have a Year column, and they are related by a third table with just a Year column. 
 
When I apply the Year filter, the product is way off. 
 
Help? 
 
Forgot to include snippets of tables: 
YearColA YearColB YEAR
2025100 20252 2020
2025100 20254 2021
2025100 20252 2022
2025100 20252 2023
2024100 20252 2024
202499 20254 2025
2024100 20252 2026
2024100 20252 2027
202499 20253 2028
2024100 20254  
202499 20252  
2024100 20252  
2024100 20252  
2024100 20252  

 

                                   
1 ACCEPTED SOLUTION

hello @mwjansen 

 

i think you need to make another DIM table for Division.

Here i made a Division Dim table from SUMMARIZE as an example (i think you have a list of Division that can be worked as your Dim).

Then, you create a relationship between Division and those two Fact table.

Irwan_0-1740699432926.png

after that, you can do the measure as yours.
Take slicer value from Year dim table and Division dim table.

Irwan_1-1740699480956.png

Irwan_2-1740699492188.png

 

as the result above, in 2025

Mission Critical has 100 average value in COLA and 2.5 average value in COLB

Operations has 100 average value in COLA and 3 average value in COLB.

 

Hope this will help.

Thank you.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi, @mwjansen 

I wish you all the best. Previously Super user have provided a solution to help you solve the problem. Since we haven't heard back from you yet, I'd like to confirm if you've successfully resolved this issue or if you need further help?
If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.

 

 

Best Regards

Jianpeng Li

mwjansen
Helper I
Helper I

Thank you Irwan. You are correct, it does work fine. Dumb me forgot where it failed. In the visuals (clustered column chart), the x-axis is 'Division' (found in both Table1 and Table2), and the y-axis is Table1 Average of ColA (and another visual where y-axis is Table2 Average of ColB). 

 

It is here where the calculations are off for each Division. 

 

DivisionYearCOLA YearDIVISIONCOLB YEAR
Mission Critical2025100 2025Mission Critical4 2020
Mission Critical2025100 2025Operations2 2021
Operations2025100 2025Commercial/Special Projects4 2022
Mission Critical2025100 2025Mission Critical2 2023
Mission Critical2024100 2025Mission Critical2 2024
Mission Critical202499 2025Mission Critical2 2025
Mission Critical2024100 2025Operations4 2026
Mission Critical2024100 2025Mission Critical2 2027
Mission Critical202499 2025Mission Critical2 2028
Mission Critical2024100 2025Mission Critical3  
Mission Critical202499 2025Mission Critical4  
Mission Critical2024100 2025Mission Critical2  
Mission Critical2024100 2025Mission Critical2  

hello @mwjansen 

 

i think you need to make another DIM table for Division.

Here i made a Division Dim table from SUMMARIZE as an example (i think you have a list of Division that can be worked as your Dim).

Then, you create a relationship between Division and those two Fact table.

Irwan_0-1740699432926.png

after that, you can do the measure as yours.
Take slicer value from Year dim table and Division dim table.

Irwan_1-1740699480956.png

Irwan_2-1740699492188.png

 

as the result above, in 2025

Mission Critical has 100 average value in COLA and 2.5 average value in COLB

Operations has 100 average value in COLA and 3 average value in COLB.

 

Hope this will help.

Thank you.

Thank you @Irwan , everything works as it should now! Much appreciated. 

Hello @mwjansen 

 

Glad to be a help.

 

Thank you.

Irwan
Super User
Super User

hello @mwjansen 

 

i am not sure how the data is off, but i tried your DAX and it looks fine.

Irwan_0-1740629272444.png

Irwan_1-1740629293888.png

Thank you.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.