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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
juddmk
Frequent Visitor

Calculating column/measure that is dependent on itself

I need help calculating starting/ending balances that are dependent on given inputs for the starting year, but use rates applied to previous year balances to form future year ending balances. Pasting in a table from excel, I am given column B's values and all of rows' 2, 3, and 8's values. My goal is to calculate 2023-2027 rows 5-7 and 9.

 

My PBI dataset has the years unpivoted so that I have one Year column instead of individual rows. I have tried to use a calculated column and measure, but I usually run into a circular reference because I cannot force the column/measure to calculate for each year and then use the previous year's value as a starting point. I would prefer to calculate inside the model using measures/columns, but can do a function in power query if needed.

 

 ABCDEFG 
1Year202220232024202520262027 
2Units        2,159        3,991        4,176        3,907     13,655     10,523 
3Reserves        4,014        4,132     18,278     21,963     44,669     53,876 
4       Notes for calcs starting in year 2023
5Asset Beginning Balance$49,716$26,860$106,768$134,585$372,393$384,164=Previous Year Asset Ending Balance
6DD&A Rate$12.39$6.50$5.84$6.13$8.34$7.13=Current Year Asset Beg Balance/Current Year Reserves
7DD&A Expense$26,750$25,944$24,391$23,943$113,841$75,036=Current Year Units*Current Year DD&A Rate
8New Asset Addition$3,894$105,852$52,208$261,752$125,611$183,449Given
9Asset Ending Balance$26,860$106,768$134,585$372,393$384,164$492,577=CurrentYear Asset Beg Balance-Current Year DD&A Expense+Current Year New Asset Addition
2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share an MS Excel file with formulas so that your logic can be understood.  How did you arrive at 49,716 in cell B5?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I edited my original post to say that I am given column B's (2022) values, so I know my starting point. I am having difficulties calculating Column C (2023) rows 6,7,9. I included the formulas in the notes column on the far right of the table.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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