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
Anonymous
Not applicable

Stop running total at current date

Hi,

 

I have found some topics covering this, however it still does not work in my report

 

In the picture below you can see the formula I use and how the line chart still shows values until December.

running total stop.PNG

 

Hope you can help me

1 ACCEPTED SOLUTION

Hi Guidoow1,

 

Please refer to this article about how to achieve cumulative total: https://www.daxpatterns.com/cumulative-total/.

 

Regards,

Jimmy Tao

View solution in original post

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

Hi Guidoow1,

 

Modify you measure like pattern below and check if it can meet your requirement:

Marge running total in Month =
CALCULATE (
    SUM ( 'Transactiewaarde'[Marge] ),
    FILTER (
        SUMMARIZE ( 'Kalendar', 'kalendar'[Date].[MonthNo], 'kalendar'[Date].[Month] ),
        ISONORAFTER (
                Kalendar[Date].[MonthNo], MAX ( Kalendar[Date].[MonthNo] ), DESC,
                Kalendar[Date].[Month], MAX ( Kalendar[Date].[Month] ), DESC
        )
    ),
    ALLSELECTED ( 'Kalendar' )
)

Regards,

Jimmy Tao

Anonymous
Not applicable

Hi @v-yuta-msft

 

Tanks for your reply

 

The measure shows the value in that month and not the desired cummulative value.

 

result running t.PNG

Hi Guidoow1,

 

Please refer to this article about how to achieve cumulative total: https://www.daxpatterns.com/cumulative-total/.

 

Regards,

Jimmy Tao

You could add YTD flag column to your calendar table like this:

 

 "Future";if([Date]>=NOW();1;0);

 

Then use it as visual level filter. 

Anonymous
Not applicable

Hi @joonasjaspi

 

I already have a relative date filter on past 2 years including today for the whole report.

So I am already using a date filter, however it still shows the running total until December.

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.