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
KingsleyZ
Frequent Visitor

Filtering out data from another csv file

Hi,

 

I have 2 .csv files, 1st file has a column Source_IP the other file has a column TOR_IP.  What i'm trying to do is take the 1st file and filter out all of the TOR_IP

 

I tried to create a relationship between them but it won't let me because one of the columns must have unique values.  I am really new to PowerBI and i just can't seem to figure out how to do this.  It seems to me it should be rather straighforward but i'm struggling.  Help!

 

Thanks 

1 ACCEPTED SOLUTION
KingsleyZ
Frequent Visitor

I figured it out, I used an outer left join and merged the queries.  I was then able to use a conditional column to show if the item exsisted in the 2nd table and to write TOR if yes, and the originating country if else.

 

This was the post that I found the answer in.

 

https://community.powerbi.com/t5/Desktop/MATCH-between-2-tables/td-p/87521

 

Thanks guys for your help!

View solution in original post

4 REPLIES 4
KingsleyZ
Frequent Visitor

I figured it out, I used an outer left join and merged the queries.  I was then able to use a conditional column to show if the item exsisted in the 2nd table and to write TOR if yes, and the originating country if else.

 

This was the post that I found the answer in.

 

https://community.powerbi.com/t5/Desktop/MATCH-between-2-tables/td-p/87521

 

Thanks guys for your help!

Hi @KingsleyZ,

Congratulations, you have resolved your issue by yourself. Please mark your solution as answer, so more people will get useful information easily.

Best Regards,
Angelia

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @KingsleyZ,

Please try the solution @Greg_Deckler poated, and mark it as answer if you have resolved your issue. Otherwise, please feel free to ask if you still have other issue.

Best Regards,
Angelia

Greg_Deckler
Community Champion
Community Champion

@KingsleyZ- Try the EXCEPT function:

 

https://msdn.microsoft.com/en-us/library/mt243784.aspx

 

You should be able to create a new table under the Modeling table and just do EXCEPT(TableA,TableB).



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.