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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
crln-blue
Post Patron
Post Patron

Calculated measure for monthly running total not working, just copying the value

Hello!

I have a requirement where I need to make a monthly running total of another measure. 

 

Below is my monthly running total measure:

Cumulative = 
SUMX(FILTER(ALLSELECTED('A'[Date 2].[MonthNo]),'A'[Date 2].[MonthNo] <= MAX('A'[Date 2].[MonthNo])),[Cash Flow])

 

It's not working and it's only displays the value itself of [Cash Flow]:

crln-blue_0-1608640673537.png

Unfortunately, it has a lot of measures right now and sensitive data that I cannot share the file. [Cash Flow] is also dependent to other measures of lower hierarchy and I checked them all & they're all right.

 

Any help is appreciated. Thank you!

 

4 REPLIES 4
amitchandak
Super User
Super User

@crln-blue , You can have like this example with date table

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello @amitchandak ! Tried this but it won't work for me because the formula is for the sum of a table column. Mine is referencing another calculated measure. Thanks!

@crln-blue , this should work for a measure too , unless that measure is dealing with date table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello @amitchandak , yes, it's dealing with dates. When I input the formula you sent, PowerBI does not detect the measures which I will use with SUM. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.