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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Solution Supplier
Solution Supplier

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
Solution Supplier
Solution Supplier

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors