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
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
Super User
Super User

yes. The pbix would definitely help

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.