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
TexasBI
Helper II
Helper II

Running total for previous year and month

Hello, Please help. I am trying to calculate the running total for not only the previous year but previous month a well.  This what I have to calculate for the previous year but thats all it gives me. When I add months onto my column then it still only shows the year.

 

Running Total Customers LY/Month =

CALCULATE (
[Running Total],
FILTER (
     ALLSELECTED(dim_DATE),
     dim_DATE[DATE].[Year] <= SELECTEDVALUE(dim_DATE[DATE].[Year]) -1
   ) 
)

 

 

Capture.PNG

1 REPLY 1
lc_finance
Solution Sage
Solution Sage

Hi @TexasBI ,

 

 

If I understand correctly, you want to show the measure Running Total for the same month in the previous year?

For example, September 2012 should be 3,544,086.53?

 

Then you can try:

Running Total Customers LY/Month =

CALCULATE (
[Running Total],
SAMEPERIODLASTYEAR(dim_DATE[DATE])
)

 

Let me know if that is what you are looking for.

 

LC

Interested in Power BI and DAX templates? Check out my blog at www.finance-bi.com

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