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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Ericwhv
Helper II
Helper II

Cost per KG changes is not working

Hi All

thank you for reading this first

i am working on some COST / KG changes in %, but not sure why the result is showing like below

the result are all the same....

Ericwhv_0-1666781090408.png

 

my formula as below

COST = SUM(cost)

CH_WGHT_SYSTEM = SUM(Weight)

ACH_COST_KG = [COST]/[CH_WGHT_SYSTEM]
ACH_COST_KG(by15%) = DIVIDE([COST],[CH_WGHT_SYSTEM(by15%)])
COST_KG Difference(by15%) = [ACH_COST_KG(by15%)] - [ACH_COST_KG]
COST_KG change(by15%) = [COST_KG Difference(by15%)]/[ACH_COST_KG]

 

i beleive something not right on the last formula, but not sure what is the issue, please help, thank you!!

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Thakn you, This is a general problem in what

- you are calculating there. YOu calculate cost per kg

- Then you reduce it by 15%

- then you divide the two values above again -> in this scenario the result is everytime 17,65%

 

If you calculate 0,85* 1,1765 then you get 1 again.

 

SO it is not a technical problem its more the nature of your calculation. Do this in Excel and you should get the same results again. 

 

Best regards

Mikelytics

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

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

5 REPLIES 5
mangaus1111
Solution Sage
Solution Sage

Hi @Ericwhv ,

 

see my sample model here for calculating percentage. I hope it helps.

https://1drv.ms/u/s!Aj45jbu0mDVJiyzIDA3ZUs-mwqyq?e=JbewcX

 

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

Ericwhv
Helper II
Helper II

Thank you @Mikelytics 

i have done this in Excel
but similar to what you say, the result is very similar, 17.xx%
i dont know if my logic is right or not, lol thank you

Ericwhv_0-1666783767575.png

 



Mikelytics
Resident Rockstar
Resident Rockstar

Thakn you, This is a general problem in what

- you are calculating there. YOu calculate cost per kg

- Then you reduce it by 15%

- then you divide the two values above again -> in this scenario the result is everytime 17,65%

 

If you calculate 0,85* 1,1765 then you get 1 again.

 

SO it is not a technical problem its more the nature of your calculation. Do this in Excel and you should get the same results again. 

 

Best regards

Mikelytics

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

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Ericwhv
Helper II
Helper II

CH_WGHT_SYSTEM(by15%) = sum(Weight)*0.85
(Assume the weight drop 15%)
Thank you!

Mikelytics
Resident Rockstar
Resident Rockstar

Hi Ericwhv,

 

what is the formula for the measure [CH_WGHT_SYSTEM(by15%)]?

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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