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
Manigandan
Frequent Visitor

How to Divide byone table column divide by column total and multiply with another table

I am trying to create some measures in power bi, where I want to divide each score by the sum and multiplay with another corrected sum amount  for each group

Table 1                                                                                                          

Manigandan_0-1708861712132.png

Corrected in excel formula is :=ROUND(C86/$C$98*$C$100,0) in B105 column formula in output table

My Output is

Manigandan_1-1708861804686.png

I need the above output Please share me anyone know that

 

2 ACCEPTED SOLUTIONS
govindarajan_d
Super User
Super User

Hi @Manigandan,

 

Can you please try this:

CorrectedSum = 
VAR __AllSumDivide = CALCULATE(SUM(Table[FirstColumn]),ALL(Table))
VAR __AllSumMultiply = CALCULATE(SUM(Table[SecondColumn]),ALL(Table))

RETURN SUMX(Table,DIVIDE(Table[CColumn],__AllSumDivide)*__AllSumMultiply)

 

View solution in original post

v-yanimei-msft
Community Support
Community Support

Hi @Manigandan ,

Please follow these steps:

  1. Right-click Table , select New column  and input them with texts as pictures shown.

vyanimeimsft_0-1708941513508.pngvyanimeimsft_1-1708941526143.pngvyanimeimsft_2-1708941545653.pngvyanimeimsft_3-1708941558780.png

Best Regards

Caroline Mei

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

View solution in original post

2 REPLIES 2
v-yanimei-msft
Community Support
Community Support

Hi @Manigandan ,

Please follow these steps:

  1. Right-click Table , select New column  and input them with texts as pictures shown.

vyanimeimsft_0-1708941513508.pngvyanimeimsft_1-1708941526143.pngvyanimeimsft_2-1708941545653.pngvyanimeimsft_3-1708941558780.png

Best Regards

Caroline Mei

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

govindarajan_d
Super User
Super User

Hi @Manigandan,

 

Can you please try this:

CorrectedSum = 
VAR __AllSumDivide = CALCULATE(SUM(Table[FirstColumn]),ALL(Table))
VAR __AllSumMultiply = CALCULATE(SUM(Table[SecondColumn]),ALL(Table))

RETURN SUMX(Table,DIVIDE(Table[CColumn],__AllSumDivide)*__AllSumMultiply)

 

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!

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.