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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
KAchukatla
New Member

Divide sum of one column by sum of another column

Dear Team, 

 

I have  trying to divide 2 columns but it is not giving accurate number. For Eg. 

Project A 

CO2 Emitted in Tons, Jan=215, Feb=315,Mar=123 , TOTAL= 438

Area in m3,Jan=120,Feb=150.Mar=100 , TOTAL = 370

CO2 footprint tons /M2 YTD for projectA = 438/370 = 1.8  CORRECT, 

 

But system is calculating for eah month and adding up the values as shown below

CO2footprint/m2, Jan = 1.8, Feb=2.1 , Mar=1.23 , 

YTD = 5.13  WORNG . 

It is simple divid funtion to divide Total Sum Column A(CO2 emitted) by Total Sum of COlumn B(area).

 

Kindly let me know if you need more infomration 

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

I'm not quite sure about your math here.

 

First, the CO2 emitted with your numbers adds up to 653, not 438.

The area number is correct.

 

Second, 438/370 does not equal 1.8, it equals 1.18

 

Now, 653/370 = 1.76

 

Now, if I create a measure like:

 

Measure = SUM([CO2]) / SUM([Area])

The total line comes out to 1.76, which is correct. This is in a table with Month, CO2 and Area columns.

 

And people wonder why there are still global warming skeptics... 🙂

 

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

I'm not quite sure about your math here.

 

First, the CO2 emitted with your numbers adds up to 653, not 438.

The area number is correct.

 

Second, 438/370 does not equal 1.8, it equals 1.18

 

Now, 653/370 = 1.76

 

Now, if I create a measure like:

 

Measure = SUM([CO2]) / SUM([Area])

The total line comes out to 1.76, which is correct. This is in a table with Month, CO2 and Area columns.

 

And people wonder why there are still global warming skeptics... 🙂

 

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Smoupre, 

 

I am new to the power BI and thank you for the providing assistance in fixing the issue.   

 

Really i do not why i did the worng calculation 🙂

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors