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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi,
I need help with getting result in Power BI replicating yellow highlighted column in image shared below:
The calculation requires to get running total of all “distribution types” except “Investment” & “Payment” but in all dates with rows showing “Payment” it should keep showing “Investment” till any other type is found and then it should consider that in the calculation and reset to that value.
I have made some progress but unable to add the value after other type row is there and reset rest rows to that value. Cuurent output in power bi:
Sample of distribution table:
So I need the DAX to iterate through every row of this table and cumulate only if its any other type other than Investment or Payment, otherwise keep returning Investment value.
Any help is appreciated!
Thank You,
Prutha