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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

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
Solution Sage
Solution Sage

Hi @Anonymous,  

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
Anonymous
Not applicable

Hello @FBarri 

 

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

barritown
Solution Sage
Solution Sage

Hi @Anonymous,  

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors