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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tdejonghe
New Member

Filter table by comparing columns

Dear all,

 

I'm looking for a way to show a Table visual but filtered by comparing two columns.

 

Short background: We have 2 systems to see which device belongs to which user. I want to be able to filter out those lines where the user ID is different in both systems. I was able to show a count of this by creating a measure with calculate:

Incorrect assignee = 
CALCULATE (
    COUNTROWS ( 'Asset List' ),
    FILTER (
        'Asset List',
        'Asset List'[User ID 1] <> ""
        && 'Asset List'[User ID 2] <> ""
        && 'Asset List'[User ID 1] <> 'Asset List'[User ID 2]
))

This works like a charm to show the count, but I would also like to use this as a filter to show my viewers a table of these devices so they can actually know what to rectify in our systems.

 

Is this something anyone can help me with? I use bookmarks for the more basic filtering but for this one I'm stuck.

 

Kind regards

1 ACCEPTED SOLUTION
barritown
Super User
Super User

Hi @tdejonghe,  

For example, you can create a new calculated column and filter your table by setting a condition that this value must be TRUE.

 

barritown_0-1680769524303.png

 

View solution in original post

2 REPLIES 2
tdejonghe
New Member

Hello @FBarri 

 

This is exactly what I needed! Thank you very much!

barritown
Super User
Super User

Hi @tdejonghe,  

For example, you can create a new calculated column and filter your table by setting a condition that this value must be TRUE.

 

barritown_0-1680769524303.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.