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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors