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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
mehmet
Frequent Visitor

Cost Calculation Dependency

My Problem Dependency Problem

 

Problem seems big.

 

- I have a start cost&amount

- I convert it to initial cost&amount

- I have input cost&Amount from other table

- I add intial and input figures to find cumulative input

- From cumulative input and cost i calculate the unit cost during the consumption (A)

- i have a consumption amount from other table

- I use (A) * comsumtion amount in order to find "consumption cost"

- Then i calculate closing cost&amount from "cumulative input" minus "consumption cost"

- Then try to formulate the intial cost of the next month = previousmonth of consumption cost.....And say dependecy was detected

 

I need help

 

mehmet_1-1621043751512.png

 

mehmet_2-1621043793247.png

 

Thanks

2 REPLIES 2
mehmet
Frequent Visitor

The excel file and Power Bi File is attached..

 

Opening amount can be calculated but opening cost not, (opening cost = closing cost of previous month which calculated from previous opening cost...

https://vftr5821059-my.sharepoint.com/:u:/g/personal/mkcaglar_vftr5821059_onmicrosoft_com/EQJQKHXZR_...

 

The excel file

https://vftr5821059-my.sharepoint.com/:x:/g/personal/mkcaglar_vftr5821059_onmicrosoft_com/EcVgOijX0w...

 

The post that you shared is not working because the opening cost depens previous month cloinng and consumption unit cost depends on open cost 

v-henryk-mstf
Community Support
Community Support

Hi @mehmet ,

 

The main problem should be that the calculation of the current column (closing cost&amount) depends on the value of another column (open cost&amount). Refer to the solution below, which is similar to the situation you encountered.

 

Solved: DAX Closing and Opening Balances - Microsoft Power BI Community


If the problem is still not resolved, can you provide a screenshot of the test data model and the expected results, I will answer you as soon as possible. Looking forward to your reply.

Best Regards,
Henry

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

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.