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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.

Top Solution Authors