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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Haidannx
Helper I
Helper I

Remove rows which contain data in another Table

Hi all,

 

I have a data set like below

Fact table

IDContent
1a
2b
3c
4d
sdfsde
rêtrf
45g

 

Dim table

 

ID
2
3
4
5
45
8

 

Now i`d like to remove all the rows in Fact table which have ID appears in the Dim table ( the values in Dim table are Distinct)

How may i achieved that task?

Many thanks

2 ACCEPTED SOLUTIONS
Mariusz
Community Champion
Community Champion

Hi @Haidannx 

 

You can use Merge Queries with Left Anti Join Kind as below

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

v-alq-msft
Community Support
Community Support

Hi, @Haidannx 

 

Based on my research, the easist way is using 'Merge Queries'. You may go to Query Editor, click 'Merge Queries'.

a1.png

 

Then you can make the ID columns from two tables selected and choose 'Left Anti' under 'Join Kind', which keeps only rows from the first table when joining tables.

a2.png

 

a3.png

 

Finally, you need to right-click 'Dim table' column and remove it. You will get the result.

a4.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @Haidannx 

 

Based on my research, the easist way is using 'Merge Queries'. You may go to Query Editor, click 'Merge Queries'.

a1.png

 

Then you can make the ID columns from two tables selected and choose 'Left Anti' under 'Join Kind', which keeps only rows from the first table when joining tables.

a2.png

 

a3.png

 

Finally, you need to right-click 'Dim table' column and remove it. You will get the result.

a4.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Mariusz
Community Champion
Community Champion

Hi @Haidannx 

 

You can use Merge Queries with Left Anti Join Kind as below

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Kudoed Authors