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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
EVANSOL78
New Member

How to keep one visualisation filter result fixed whilst drilling down another on the same visual

Hi,

I am trying to demonstate on a stacked column chart the Total number of smokers in comparison with of the total number of smokers, which had a smoking pathway completed. I have been able to filter either the Smoking Pathway =Y and Smoking Status = 1 independantly but when I apply both filters at the same time to the visual it filters down to the total number of smokers that had a smoking pathway completed. 

 

Can you please advise how I can achieve this visual? 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @EVANSOL78 ,

 

It's hard to imagine what you are trying to achieve without seeing a sample data and a sample result. But  let me give this a try.

You case use ALL so the value stays the same regardless of the relevent filter.

=
CALCULATE (
    [Your Measure Here],
    FILTER (
        ALL ( 'Table'[Smoking Pathway], 'Table'[Smoking Status] ),
        'Table'[Smoking Pathway] = "Y"
            && 'Table'[Smoking Status] = 1
    )
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @EVANSOL78 ,

 

It's hard to imagine what you are trying to achieve without seeing a sample data and a sample result. But  let me give this a try.

You case use ALL so the value stays the same regardless of the relevent filter.

=
CALCULATE (
    [Your Measure Here],
    FILTER (
        ALL ( 'Table'[Smoking Pathway], 'Table'[Smoking Status] ),
        'Table'[Smoking Pathway] = "Y"
            && 'Table'[Smoking Status] = 1
    )
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
WanderingBI
Resolver III
Resolver III

Hi,

 

If you want to show a field in a visual ignoring the filters (the filter context) that you have set for the visual you can use a measure.

 

As an example if you table looks like this:

1.JPG

 

You could create a measure that counts all rows (to get the number of smokers) and then tell it to ignore the filters:

Smokers without Filter = CALCULATE(COUNTROWS(Smoker),ALL(Smoker))

 

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.