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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
vwiles84
Helper III
Helper III

Filter Rows with 2 conditions

I am trying to filter rows of data based on 2 conditions, if store = X and date is X. Then if the 2 conditions are met, I need the row removed.  How should this be coded in query editor? I'm struggling! Thanks. 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@vwiles84,

 

In Power Query, create a custom column:

 

if [Store] = "A" and [Date] = #date(2021, 1, 3) then 1 else 0

 

DataInsights_0-1630767192404.png

 

Then filter the custom column to exclude 1:

 

DataInsights_1-1630767234410.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@vwiles84,

 

In Power Query, create a custom column:

 

if [Store] = "A" and [Date] = #date(2021, 1, 3) then 1 else 0

 

DataInsights_0-1630767192404.png

 

Then filter the custom column to exclude 1:

 

DataInsights_1-1630767234410.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors