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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
TechMike
New Member

Dividing the sum of a columns

Hi, 

I'm new user of power bi and I am stuck with this problem. I am trying to get the qoutient of the SUM of two columns (See the table below). 

ProvinceAdjusted AmountObligation IncurredOBLIGATION RATE (OBLIGATION INCURRED/ADJUSTED AMOUNT
A1009090 %
B450450100 %
C23120890 %
TOTAL78174895.77 %

 

But I get this in power bi

ProvinceAdjusted AmountObligation IncurredOBLIGATION RATE (OBLIGATION INCURRED/ADJUSTED AMOUNT
A1009090 %
B450450100 %
C23120890 %
TOTAL781748280 %

 

How can i correct this? I've also tried to create a new measure with this 

 
ObRate = DIVIDE(H[OBLIGATIONS INCURRED],H[ ADJUSTED ALLOTMENT ])
 

 And still got the 280% result. It
Any help would be greatly appreciated.

 

Thank you.

5 REPLIES 5
TechMike
New Member

Hi @bhanu_gautam ,

 

Thank you for the prompt reply. I've tried to follow your suggestion. With this measure,

TechMike_0-1739189482729.png

 

And still I was not able to get the results I wanted. 😞

 

Hi @TechMike ,

 

Please make sure you are creating a measure instead of a calculated column.

If you create a calculated column, it will a summarize result based on the rate column.

Measure will show the aggregation result you want.

vrzhoumsft_1-1739240417591.png

ObRate = 
VAR _Obligation_Incurred = SUM(H[Obligation Incurred])
VAR _Adjusted_Amount = SUM(H[Adjusted Amount])
RETURN
DIVIDE(_Obligation_Incurred,_Adjusted_Amount)

Result is as below.

vrzhoumsft_2-1739240463876.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hey @TechMike,
Please try the following formula:

wini_R_0-1739196669779.png

Hope it helps!

Hi @wini_R ,

Thank you for the suggestion. I've tried your suggestion. But still didn't get the result i wanted. I am trying to get this result (see the pic below).

TechMike_0-1739233557291.png

The measure you have suggested gets the OB Rate on the provinces but not on the total. The Power BI just added up the qoutients of the two columns.

 

Thanks.

bhanu_gautam
Super User
Super User

@TechMike , Use below measures

 

TotalObligationIncurred = SUM('YourTable'[Obligation Incurred])

TotalAdjustedAmount = SUM('YourTable'[Adjusted Amount])

TotalObligationRate = DIVIDE([TotalObligationIncurred], [TotalAdjustedAmount])




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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