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 August 31st. Request your voucher.

Reply
Caesarul
Helper II
Helper II

Reverse filtering - Find all values from a column by filtering one from another

Hello everyone, 

 

I have an odd request but hear me out. 

 

So my company has this table and wants to filter by account to find out who the manager of that account is. All simple so far. 

 

They would like to see not only the manager for that account but all the accounts the manager is responsible for (in a table).

 

I would like to know if there is a solution for this first. So if I filter BBC, it would show up LG & Dolby as well, since John is a Manager to all of them:

 

AccountManager
BBCJohn
LGJohn
SamsungGabby
DolbyJohn
TataDanny

 

And the next level of complexity is to show up the account filtered & All the Accounts that have the same manager & All that have Global Coverage. 

 

AccountManagerCoverage Filter: BBC  
BBCJohnAustralia    
LGJohnGlobal AccountManagerCoverage
SamsungGabbyJapan BBCJohnAustralia
DolbyJohnJapan LGJohnGlobal
TataDannyGlobal    

 

Is there a possibility to do this? 

 

Thank you very much for your support, 

Ovidiu

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Caesarul 
Please refer to attached sample file with the solution.

First you have to have the acount names in a seperate disconnect table then create "FiltereMeasure", place it the filter pane of the table visual and select "is not blank" then apply the filter.

1.png3.png2.png4.png5.png

FilterMeasure = 
VAR SelectedAccounts = VALUES ( 'Acount Names'[Account] )
VAR SelectedManagers =
    CALCULATETABLE ( 
        VALUES ( 'Acount Details'[Manager] ), 
        'Acount Details'[Account] IN SelectedAccounts,
        ALL ( 'Acount Details' )
    )
VAR SelectedCoverages =
    UNION ( 
        CALCULATETABLE ( 
            VALUES ( 'Acount Details'[Coverage] ), 
            'Acount Details'[Account] IN SelectedAccounts,
            ALL ( 'Acount Details' )
        ),
        { "Global" }
    )
VAR FilteredTable = 
    FILTER ( 
        'Acount Details',
        'Acount Details'[Manager] IN SelectedManagers
            && 'Acount Details'[Coverage] In SelectedCoverages
    )
RETURN
    IF ( NOT ISEMPTY ( FilteredTable ), 1 )

 

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Caesarul 
Please refer to attached sample file with the solution.

First you have to have the acount names in a seperate disconnect table then create "FiltereMeasure", place it the filter pane of the table visual and select "is not blank" then apply the filter.

1.png3.png2.png4.png5.png

FilterMeasure = 
VAR SelectedAccounts = VALUES ( 'Acount Names'[Account] )
VAR SelectedManagers =
    CALCULATETABLE ( 
        VALUES ( 'Acount Details'[Manager] ), 
        'Acount Details'[Account] IN SelectedAccounts,
        ALL ( 'Acount Details' )
    )
VAR SelectedCoverages =
    UNION ( 
        CALCULATETABLE ( 
            VALUES ( 'Acount Details'[Coverage] ), 
            'Acount Details'[Account] IN SelectedAccounts,
            ALL ( 'Acount Details' )
        ),
        { "Global" }
    )
VAR FilteredTable = 
    FILTER ( 
        'Acount Details',
        'Acount Details'[Manager] IN SelectedManagers
            && 'Acount Details'[Coverage] In SelectedCoverages
    )
RETURN
    IF ( NOT ISEMPTY ( FilteredTable ), 1 )

 

Thank you very much for this! You've made a lot of people happy! 

 

It worked perfectly and exactly as I wanted! 

 

Wish you a great day and Happy Holidays! 

djurecicK2
Super User
Super User

Hi @Caesarul ,

 I think this would be difficult to do inside of a single visual, but might be a good use case for a drillthrough to another page that shows all of the manager related information. 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-drillthrough

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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