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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Resetting running totals AND keep previous totals for missing months

Hello everyony,

 

So I have a date dimension and a transaction table as the below:

 

1-Date Dim

DateMonth.NFin.YearPrd.Name
1/01/2020Jan2019-20P07 19-20
......2019-20...
23/06/2021Jun2020-21P01 21-22

 

 2- Transaction Fact

Reporting DateLocationValue
30-Jun-20X6
31-Aug-20Y7
30-Jun-21Z2

 

I created a measure to calculate running totals and show the missing months numbers from the previous month total as the below:

MEASURE =
var maxd=CALCULATE(MAX(Transaction[Reporting Date]),ALLEXCEPT(Transaction[Location]))
return CALCULATE(SUM(Transaction[Value]),
FILTER(ALLSELECTED('Date Dim'), 'Date Dim'[Date] <= MIN('Date Dim'[Date]) && MIN('Date Dim'[Date]) <= maxd))
 
It's working and calculating runing totals of missing months as the below:
Fin.YearReporting DateMEASURE
2019-2030-Jun-206
2019-2031-Jul-206
2019-2031-Aug-2013
2019-20||
2019-20||
2019-20||
2019-2031-May-2088
2020-2130-Jun-2190

 

I need to keep the missing months totals but RESET them based on the Financial Year field.

 

PLEASE HELP.

Appreciate it

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi @Anonymous,

 

You may try this Measure.

Missing months totals based on FY = CALCULATE([runing totals of missing months],VALUES('Date Dim'[Fin.Year]))

 

Then, the result looks like this.

vcazhengmsft_0-1653462281363.png

 

Also, attach the pbix file as reference.

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know how. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

View solution in original post

2 REPLIES 2
v-cazheng-msft
Community Support
Community Support

Hi @Anonymous,

 

You may try this Measure.

Missing months totals based on FY = CALCULATE([runing totals of missing months],VALUES('Date Dim'[Fin.Year]))

 

Then, the result looks like this.

vcazhengmsft_0-1653462281363.png

 

Also, attach the pbix file as reference.

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know how. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue.

Please show the expected outcome based on the sample data you provided.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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