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
Anonymous
Not applicable

Possible to divide each column value of a table by each column value of another table ?

Hi,

I have a table A with these columns: site_name, monthly_productibility. I also have a table B with these columns: site_name,monthly_production. I want to divide the column monthly_production (table B) by the column monthly_productibility (table A).

When I try the DIVIDE function (fast measure or DAX function):

DIVIDE(
    SUM('TABLE_B'[monthly_production]),
    COUNTA('TABLE_A'[monthly_productibility]))

The results are just so wrong, I tried different formulas but still doesn't work and I want to merge the tables only if I am obligated to do so (I am more into a generic approach).

Thank you by advance for your answer,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, 

 

Well this doesn't work, but I finally found out the answer.

 

DIVIDE(
    SUM('TABLE_B'[monthly_production]),
    AVERAGE('TABLE_A'[monthly_productibility]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, 

 

Well this doesn't work, but I finally found out the answer.

 

DIVIDE(
    SUM('TABLE_B'[monthly_production]),
    AVERAGE('TABLE_A'[monthly_productibility]))
amitchandak
Super User
Super User

@Anonymous , You can create a common site table analyze against that, Why one is a sum and another is count

 

Try like

DIVIDE(
SUM('TABLE_B'[monthly_production]),
sum('TABLE_A'[monthly_productibility]))

 

Check for common table https://www.youtube.com/watch?v=Bkf35Roman8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.