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
lylx
Regular Visitor

Filter table with exception

I have problem in Power bi:

I have 2 table:

  Table1                                               Table2

name      class                                    name      class

John        A1                                      John        A1

John        A2                                      John        A2

John        A3                                      Mary       A3

Mary       A1                                      Mary       A1

Mary       A2                                      Arya         A2

Mary       A3                                      Arya         A1

Arya        A1                                      Arya         A1

Arya        A2                                      Mary       A1

Arya        A3   

 

I want to result: ( (name, class) from Table 1 which does not exist in Table 2)

name      class 

John        A3

Mary       A2

Arya        A3       

 

get me some advice.

2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

@lylx 

 

You can merge the 2 queries and then select empty Tables resulting from the merge

 

Please see attached file's Query Editor for steps (with your sample data)

View solution in original post

Zubair_Muhammad
Community Champion
Community Champion

@lylx 

 

Also you can create a Calculated Table with DAX from the Modelling Tab>>new Table

 

If you have just 2 columns in both tables, then

Calculated Table = Except(Table1,Table2)

 

 

View solution in original post

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@lylx 

 

Also you can create a Calculated Table with DAX from the Modelling Tab>>new Table

 

If you have just 2 columns in both tables, then

Calculated Table = Except(Table1,Table2)

 

 

thank you so much!

Zubair_Muhammad
Community Champion
Community Champion

@lylx 

 

You can merge the 2 queries and then select empty Tables resulting from the merge

 

Please see attached file's Query Editor for steps (with your sample data)

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.