Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello all,
I've been struggleing with a kind of recursive problem in my report and still haven't figured out how to solve it. I've already referred to this post from the forum which I guess is pretty similar and other posts but I still can't make it fly on my end. Hope you guys can help me out!
My issue is: I have a dataset with different warehouses and products and their respective Inventories for each week (always as of Friday) as well as the Sales targets for those weeks and the weeks in the future.
I now want to calculate a coulmn which states the Inventories when data is available and predicts the Inventory for dates in the future based on the sales target. At the same time, the context of warehouses and products has to stay intact.
For example, I'd like to calculate the Inventory on 01/18/19 based on the Sales Target. It should perform the following calculation:
Predicted Inventory for 01/18/19 = Inventory from week before (01/11/2019) - Sales target (=8) = 102
Of course it should take this calculated value to further predict 01/25/2019
Thanks for your help!
You may take a look at the post below.
https://community.powerbi.com/t5/Desktop/cumulative-portfolio-returns/m-p/275884#M123036
thanks for your reply. But I still can't figure out how to apply the filter correctly.
That's what I have so far:
INV Proj = IF( [INV SUM]<>BLANK(), [INV SUM], SUMX ( FILTER( TABLE; [Week] <= EARLIER(TABLE[Week] ) , [Inventory]-[Sales Target] )
The thing is now that I have several warehouses and products and I can't figure out on how to add the additional filters. Adding them with the && it'll always break my EARLIER function
Any further tipps?
Cheers!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.