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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jvs5899
Frequent Visitor

Exclusion List to modify SQL Query?

Hello,

 

I am working on a very large project where the last requested feature is the ability to designate certain rows of one of the data tables to be excluded from all other calculations. Make it as through it didn't exist. Given that this dashboard is going to be updated frequently and it has a lot of calculations going on, I am wondering if it would be possible to create a manual entry table that I can use to exclude rows when we do the SQL query. I have a unique identifier, but I don't know if it is possible to exclude the query this way or the syntax to do so. 

 

Has anyone ever had to do something like this?

 

Thank you!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

yes, many times. Create your reference table with the exceptions. Join it in a 1:1 relationship with your original data table. In that original table create a calculated column that pulls in the RELATED ID from the other table.  Filter your original table for that new column to only contain BLANK()

 

(Better do that in Power Query as a 1:1 relationship, especially when it is not covering, comes with a lot of baggage)

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

yes, many times. Create your reference table with the exceptions. Join it in a 1:1 relationship with your original data table. In that original table create a calculated column that pulls in the RELATED ID from the other table.  Filter your original table for that new column to only contain BLANK()

 

(Better do that in Power Query as a 1:1 relationship, especially when it is not covering, comes with a lot of baggage)

Helpful resources

Announcements
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.