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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
katie1234
New Member

running total measure on graph, slicing by time looks odd

Hi,

 

I've created a running total measure with the following formula:

 

Running Realised Cost = 
CALCULATE (
    SUM ( test_data_powerbi[Realised Cost] ),
    FILTER (
        (ALLSELECTED( test_data_powerbi[Issue Date] )),
        test_data_powerbi[Issue Date] <= MAX ( test_data_powerbi[Issue Date])
    )
)

 

It looks good with slicers by category...

Capture1.PNG

But when I'm playing with the date it bazzes:

Capture2.PNG

 

Do you know how to avoid this? Feel like it would be a common problem. I can also provide the .pbix and data if needed

 

Thank you!

 

Katie

 

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

Hi @katie1234 ,

 

Could you please try the following measure?

 

Running Realised Cost = 
CALCULATE (
    SUM ( test_data_powerbi[Realised Cost] ),
    FILTER (
        ALLSELECTED(test_data_powerbi),
        [Issue Date] <= MAX ( test_data_powerbi[Issue Date])
    )
)

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @katie1234 ,

 

Could you please try the following measure?

 

Running Realised Cost = 
CALCULATE (
    SUM ( test_data_powerbi[Realised Cost] ),
    FILTER (
        ALLSELECTED(test_data_powerbi),
        [Issue Date] <= MAX ( test_data_powerbi[Issue Date])
    )
)

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you @v-lid-msft! Works like a charm 😄

AlB
Community Champion
Community Champion

yes. The pbix would definitely help

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors