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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
JasKki
New Member

Edit Query Filter

Hi,

 

In Edit Query, am I able to:

1. Perform a Filter in Column "A" E.g. Filter to only show "5" 

2. Replace certain values in Column "B" E.g. Replace "Apple" with "Orange"

3. Clear Filter for Column "A"

4. Perform another Filter in "Column "A" E.g. Filter to only show "6"

6. Replace certain values in Column "B" E.g. Replace "Apple" with "Pear" this time.

 

I am not able to do so as after Step 2., I am not able to clear filter in Column "A" or make it filter to show "6" instead of "5".

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @JasKki,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @JasKki,

 

The steps in the query editor are applied one by one, which isn't fully interactive like Excel or Power BI report view. But you still can delete some previous steps though there would be potential problems.Edit Query Filter.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

One more thing, you will find out the step 2 are applied in the whole query if you delete the previous step "Filtered Rows". So I would suggest add a custom column in this scenario.

 

if [Column A] = 5 and [Column B] = "Apple" 
then "Orange" 
else if [Column A] = 6 and [Column B] = "Apple" 
then "Pear" 
else [Column B]

Edit Query Filter2.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

Hi @JasKki

 

To me it would be because you have filtered the column A in step 2, that filter will still apply, due to it being applied in the order of the steps in the Query Editor.





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

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.