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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Courtb86
Frequent Visitor

Convert excel formula to DAX

Hi,

 

When I convert an excel formula to a DAX Code, it does not give me the correct % and I cannot figure out why. See below

 

Excel Formula: =((C28*40+E28*40+G28*10+I28*10))+(K26+M26+O26)

 

I am about 10 points off when I complete the DAX code.
1 ACCEPTED SOLUTION
adudani
Memorable Member
Memorable Member

hi @Courtb86 ,

Kindly provide a sample input and output, masking any sensitive data.

If you are off, it's probably due to Order of Operations. I would recommend adding parenthesis to double check this :

(
(C28*40)+
(E28*40)+
(G28*10)+
(I28*10)
)+
(K26+M26+O26)

 

With the sample input, I will be able to provide the relevant dax formula.

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

View solution in original post

3 REPLIES 3
Uzi2019
Super User
Super User

Hi @Courtb86 
You can share the sample input and expected output for better undertsating.

It seems you are taking a cell value of 28th row and 26th row. better if you can share input and output you want.


 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
adudani
Memorable Member
Memorable Member

hi @Courtb86 ,

Kindly provide a sample input and output, masking any sensitive data.

If you are off, it's probably due to Order of Operations. I would recommend adding parenthesis to double check this :

(
(C28*40)+
(E28*40)+
(G28*10)+
(I28*10)
)+
(K26+M26+O26)

 

With the sample input, I will be able to provide the relevant dax formula.

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

FINAL= if(((([Measure 1]*10)+

([Measure 2]*40)+

([Measure 3]*10)+

([Measure 4]*40))-

[Measure 5]-

([Measure 6])-

([Measure 7]*5))/100<0,0,

((([Measure 1]*10)+

([Measure 2]*40)+

([Measure 3]*10)+

([Measure 4]*40))-

([Measure 5])-

([Measure 6])-

([Measure 7])*5)/100)

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.