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
RingoSun
Helper II
Helper II

Show only a single category without the percentage changing

RingoSun_1-1653740433377.png

I have this line graph above but I only want to focus on the Client brand and just ignore the rest. Now I can just simply use the filter pane to only show the Client brand but an issue arises wherein the percentage changes.

 

After using the filter pane to only show the Client I get this

RingoSun_0-1653743484961.png

 

Before using the filter pane, my Client percentage for February is 3.13% but after showing only the Client, the percentage changes to 20.48% 

 

How do I prevent this behavior? My total client percentage is 15% so after filtering to only show the client, I want the months to amount to 15% and not be automatically adjusted to amount to 100%

 

SAMPLE PBIX

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You'll need to use a measure that ignores the filter settings in the denominator.

 

Try this:

Qty% =
DIVIDE (
    SUM ( SOS[Quantity] ),
    CALCULATE (
        SUM ( SOS[Quantity] ),
        ALL ( BrandDim ),
        ALL ( 'Calendar' )
    )
)

The numerator is the sum in the local filter context (Brand and Month) whereas the denominator removes all Brand filter context and Calendar filter context.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

You'll need to use a measure that ignores the filter settings in the denominator.

 

Try this:

Qty% =
DIVIDE (
    SUM ( SOS[Quantity] ),
    CALCULATE (
        SUM ( SOS[Quantity] ),
        ALL ( BrandDim ),
        ALL ( 'Calendar' )
    )
)

The numerator is the sum in the local filter context (Brand and Month) whereas the denominator removes all Brand filter context and Calendar filter context.

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.