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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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