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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors