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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
crln-blue
Post Patron
Post Patron

Formula - Circular dependency - Cumulative Sum?

Hello! (Not sure if it's okay to post it here but I really need some help)

I need to make some measures where they are dependent to each other. But PowerBI says that I have a circular dependency So I tried to find a way to make it not dependent but I can't seem to get it.

 

Here's the sample data:

crln-blue_0-1608493721896.png

crln-blue_1-1608493863688.png

 

crln-blue_2-1608493873912.png

 

crln-blue_3-1608493890778.png

1st month of the beginning cash is a fixed value (I'm good with this, planning to have a parameter?)

1st month of the ending cash is current beginning + cash flow.

 

2nd month of beginning cash is last month's ending cash.

2nd month of ending cash is current beginning +cash flow.

 

And so on and so forth. 

Beginning and Ending Cash are dependent. I'm thinking of having another measure, True Cash, that will compute for the cumulative cash total. But I have no idea also on this part. Also, my Cash Flow is a calculated measure.

 

Any help is appreciated. Thank you!

1 ACCEPTED SOLUTION

Hello @amitchandak !

Thanks for the reply! However, I think it's not applicable to me since my data is from a calculated measure. However, I researched more and found my answer: Solved: Create Running Total On A Calculated Measure - Microsoft Power BI Community

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@crln-blue , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

You can get cumulative with help from date tbale like example

 

Cumm Sales = CALCULATE(SUM(Table[value]),filter(allselected(Table),Table[Date] <=max(Table[Date])))

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello @amitchandak !

Thanks for the reply! However, I think it's not applicable to me since my data is from a calculated measure. However, I researched more and found my answer: Solved: Create Running Total On A Calculated Measure - Microsoft Power BI Community

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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