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
Stuznet
Helper V
Helper V

Quotient Remainder is not Displaying Correct Data

Hi all,

 

I have yet to find a solution to this problem. Everything calculated correctly except when I filter On Time to Yes or No, I'm not getting the result I want to see in the Data

 

This is the percentage measure I created

 

Percentage = 
VAR AA = COUNT(Data[ID])
VAR BB = CALCULATE(COUNT(Data[ID]),FILTER(Data,Data[On Time] = "Yes"))
RETURN
DIVIDE(BB,AA,BLANK())

 

And this is the Remainder measure

Remainder = 
VAR AA = COUNT(Data[ID])
VAR BB = CALCULATE(COUNT(Data[ID]),FILTER(Data,Data[On Time] = "Yes"))
RETURN
1-DIVIDE(BB,AA,BLANK())

Theoretically, when I click on December 75% and the remainder is 25% I expect to see 25% that is Not On Time and not 300% and blank

 

 Capture.PNGCapture2.PNG

 

Can someone please kindly help me?

 

Here is my a dummy data.

Data.pbix

 

Thank you

 

 

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Stuznet,

 

As you picture you shared, if you choose the On option in the slicer. Then the table will be filterd, so the result will be impacted at the same time. If you use ALL function to ignore the filter, the result will be not the the ones as you excepted as you wished in the table visual. One more question, you add one filter in your formulas that make the On Time is equal "Yes", why did you want to choose No in the slicer?

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Stuznet
Helper V
Helper V

I just didn’t know how to explain better but I found the solution
https://forum.enterprisedna.co/t/percentage-not-calculating-correctly-based-on-selection-context-in-...

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.