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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
baBI123
Helper II
Helper II

Return list based on data NOT in the query

Hello. 

I am using the "Filter By List by Devascope" visulaization to filter a table of Part Numbers.
When I enter the list into the search box, I want the results to show me all Part Number that are NOT in the list I searched.


Example: 
Enter into search box: 
PN 123
PN 456
PN 789
 
Quering a table that contains: 
PN 123
PN 456

Results (I want ANOTHER table to return the following information): 
PN 789


HOW CAN I DO THIS IN POWER BI? I AM DESPERATE. I NEED HELP.

 

Does this make sense? 
If not, please ask questions so that I can clarify.

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi,@baBI123

     After my research, I'm afraid it couldn't achieve in Power BI for now."PN 789" is not in the data model, 

so it couldn't appear as a result. But you can use this different way as below:

 

Step1:

create a fact table of Part Numbers that you will need In advance.

IF you want to add new Part Numbers, you can just add them in the data source and then refresh datasets.

like:

PN 123
PN 456
PN 789

...

5.PNG

Step2:

Create the relationship between fact table and data table by Part Numbers

6.PNG

Step3:

Drag field Part Numbers of fact table into "Filter By List by Devscope"

then  drag field Part Numbers of fact table into table visual and drag field Part Numbers of data table into visual

level filter of data table.

set Part Numbers is blank

7.PNG

 

Result:

8.PNG

 

here is pbix, please try it.

https://www.dropbox.com/s/bkcq4qmvojtw40a/Return%20list%20based%20on%20data%20NOT%20in%20the%20query...

 

Best Regards,

Lin

 

 

 

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

This is not working for me for some reason.... @v-lili6-msft

 

Perhaps I should inform you that I had to append my FACT table and DATA table by merging the two tables, keeping only the PN column and then deleting the duplicates within the column. 

I had to do this because when  I was trying to link the DATA table to the FACT table by PN column, there was an error message reading "this can't be done becuase there isn't unique values".... Does this change the way I need to set up my query? 

I really, really appreciate you helping me out.

 

-K

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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