Conditional Recursive Calculation [NEED HELP]

pociners

New Member
Joined
Mar 19, 2014
Messages
32
Hi Everyone,

This is Budy from Indonesia.
I want to do a recursive calculation in Power Pivot. The calculation is very simple actually, if I do in excel sheet, it'd take less than a minute to finish that, but I wanna do that in Power Pivot.

I've read on below link can do a recursive calculation:
Recursive Calculations in PowerPivot using DAX | Gerhard Brueckl's BI Blog
But on that link only convert a recursive calculation into a mathematical logic. But however the idea is very brilliant,haha..

Well, this is my table data:

[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]R\C[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]Formula for D Column[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]B - A = 0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]100[/TD]
[TD]200[/TD]
[TD]B - A = 100[/TD]
[TD]100[/TD]
[TD]=IF(D0+C1<0,0,D0+C1)[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]70[/TD]
[TD]0[/TD]
[TD]B - A = -70[/TD]
[TD]30[/TD]
[TD]=IF(D1+C2<0,0,D1+C2)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]B - A = -100[/TD]
[TD]0[/TD]
[TD]=IF(D2+C3<0,0,D2+C3)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]100[/TD]
[TD]300[/TD]
[TD]B - A = 200[/TD]
[TD]200[/TD]
[TD]=IF(D3+C4<0,0,D3+C4)[/TD]
[/TR]
</tbody>[/TABLE]

My goal is D column, can you help me?

Thanks,

Budy.
 
No problem. The key thing is the logic of the formula so if you can make it work for your table setup that's great! :)
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
No problem. The key thing is the logic of the formula so if you can make it work for your table setup that's great! :)
I'm still amazed with your logic actually, you are insane sir!!
In Bahasa Indonesia I'd say that you're "Gokil Abis",haha

Thanks!!!
 
Upvote 0

Forum statistics

Threads
1,225,644
Messages
6,186,153
Members
453,339
Latest member
Stu61

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top