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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.