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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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