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
Anonymous
Not applicable

how to divide by 2 the sum of two results from different columns multiply each by different weights

I have two results from different tables columns and I want to multiply each with different weights add them together and divide them by 2. 

here is an example of what I want to do 


//Strategy Party Satisfaction = divide(SUM(partySatisfaction[ % Interested party satisfaction ]*0.3,Sum(nonConformanceItem[ % Non conformance report completed on time]*0.7;2;0)

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Anonymous 

Give this a try 

 

Strategy Party Satisfaction =
DIVIDE (
    SUM ( partySatisfaction[ % Interested party satisfaction] ) * 0.3 + 
    SUM ( nonConformanceItem[ % Non conformance report completed on time] ) * 0.7,
    2,
    0
)

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

this is worked great just we need to replace the semicolon with a comma. thank you for your help

 

Regards,

 

Ah, I used ; jsut becasue you had them in your original post and I thought it might be a regional thing.  I have udpated my reply and marked it as the solution.

jdbuchanan71
Super User
Super User

@Anonymous 

Not really sure where the problem is coming from.  I would have to see your data model to help further.  Please post your .pbix to dropbox or onedrive and share the link here.

Anonymous
Not applicable

thank you for the quick response. I tried your formula and I got the below error. please check

Dax.JPG

jdbuchanan71
Super User
Super User

@Anonymous 

Give this a try 

 

Strategy Party Satisfaction =
DIVIDE (
    SUM ( partySatisfaction[ % Interested party satisfaction] ) * 0.3 + 
    SUM ( nonConformanceItem[ % Non conformance report completed on time] ) * 0.7,
    2,
    0
)

 

Anonymous
Not applicable

Here is what I needed to do. Add the two gauges result and multiply it by the weight. I tried the following but I got the wrong result. the result should show 85.77% but the result here shows 257.34%

test = (Sum(partySatisfaction[ % Interested party satisfaction ]) *0.3) +
SUM(nonConformanceItem[ % Non conformance report completed on time]) *0.7

 

dax2.JPG

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors