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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Joram
Frequent Visitor

Running Total Issue with blank group (bins)

Dear,

Problem: Running Total metric is not correct for blank values.

I created a running total metric:

 

 

#RT_Abandoned = CALCULATE(COUNT(OneQueueCalls[MED_SEG_NUM]),OneQueueCalls[Calls_Abandoned] <> 0,filter(ALLSELECTED(OneQueueCalls),OneQueueCalls[Abandoning_Delay (bins)]<=MAX(OneQueueCalls[Abandoning_Delay (bins)])))

 

 

Giving this result:

Joram_1-1635502691232.png

 

The raw data for abandoning delay are seconds, which are grouped using:

Joram_2-1635502767542.png

According to several similar topics the used metric is the solution. Except it doesn't work with group bins.

 

I hope you can help.

 
1 ACCEPTED SOLUTION

All,

 

Thanks for searching a solution.

 

I removed the visualization filters via the filter pane, and added them in the RT measure itself. I cannot explain why, but this solved the issue I had.

 

View solution in original post

5 REPLIES 5
v-rzhou-msft
Community Support
Community Support

Hi @Joram 

I create a sample and have a test. 

My Sample:

1.png

I don't know what does [Calls_Abandoned] looks like. But I think "OneQueueCalls[Calls_Abandoned] <> 0" caused your issue. Here I delete OneQueueCalls[Calls_Abandoned] <> 0 and get correct result.

 

#RT_Abandoned = 
CALCULATE (
    COUNT ( OneQueueCalls[MED_SEG_NUM] ),
    FILTER (
        ALLSELECTED( OneQueueCalls ),
        OneQueueCalls[Abandoning_Delay (bins)]
            <= MAX ( OneQueueCalls[Abandoning_Delay (bins)] )
    )
)

 

 Result is as below.

2.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

TheoC
Super User
Super User

Hi @Joram 

 

I believe the "OneQueueCalls[Calls_Abandoned] <> 0" in your measure may be causing it. Can you switch the 0 to BLANK() or something of the nature to include 0s?

 

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Joram
Frequent Visitor

Thanks for the response,

 

I tried "OneQueueCalls[Calls_Abandoned] <> BLANK()", but it didn't help.

 

Hi @Joram 

You can check my sample file and find the difference between yours and mine. I need to know your data model, please share a sample without sensitive data with me. This will make it easier for me to understand your requirement.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

All,

 

Thanks for searching a solution.

 

I removed the visualization filters via the filter pane, and added them in the RT measure itself. I cannot explain why, but this solved the issue I had.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.