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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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