This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi everyone,
I need help with this table below, I want to reproduce this in data columns and only with dax formulas, I can't use powerquery in this case.
| Local | PartNumber | Date | Demand | Orders | Transfer | Strategy Invetory | OpenStock | Needed | Revised Need | CloseStock |
| Italy | 303972 | 01/03/2021 | 0 | 8.000 | 0 | 9.420 | 0 | -1.420 | 1.420 | 9.420 |
| Italy | 303972 | 01/04/2021 | 10.481 | 8.000 | 0 | 9.420 | 9.420 | -2.481 | 2.481 | 9.420 |
| Italy | 303972 | 01/05/2021 | 11.126 | 12.000 | 0 | 9.420 | 9.420 | 0 | 0 | 10.294 |
| Italy | 303972 | 01/06/2021 | 11.490 | 0 | 0 | 9.420 | 10.294 | -10.616 | 10.616 | 9.420 |
| Italy | 303972 | 01/07/2021 | 11.445 | 0 | 0 | 9.420 | 9.420 | -11.445 | 11.445 | 9.420 |
| Italy | 303972 | 01/08/2021 | 11.704 | 0 | 0 | 9.420 | 9.420 | -11.704 | 11.704 | 9.420 |
| Italy | 303972 | 01/09/2021 | 11.970 | 0 | 0 | 9.420 | 9.420 | -11.970 | 11.970 | 9.420 |
| Italy | 303972 | 01/10/2021 | 12.126 | 0 | 0 | 9.420 | 9.420 | -12.126 | 12.126 | 9.420 |
| Italy | 303972 | 01/11/2021 | 11.281 | 0 | 0 | 9.420 | 9.420 | -11.281 | 11.281 | 9.420 |
| Italy | 303972 | 01/12/2021 | 11.381 | 0 | 0 | 9.420 | 9.420 | -11.381 | 11.381 | 9.420 |
The red collors are formulas like theses:
OpenStock = CloseStock month before
Needed = IF(OpenStock + Orders – Demand-Transfer>Strategy,0,OpenStock + Orders – Demand-Transfer-Strategy)
Revised Need = Needed x (-1)
CloseStock = OpenStock + Orders – Demand-Transfer +Needed
I will be very grateful if anyone can help me
thanks in advanced
Hi @William_Moreno ,
I'm afraid this is unachievable with DAX.
This row's value of Measure/Column 1 is based on previous row's value of Measure/Column 2, and This row's value of Measure/Column 2 is based on previous row's value of Measure/Column 2. This kind of calculation logic cannot be implemented with DAX.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 24 | |
| 22 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 24 | |
| 19 |