Power Query - Filter table column based on cell value

jlhoover3

Board Regular
Joined
Nov 9, 2015
Messages
60
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I'm digging into Excel a little deeper and introducing myself more to Power Query. What I am creating now is keyword search database for our custom CRM. Currently I pull our CRM data from a web query into an Excel Table. I have all that functioning correctly. What I want to do is if a certain cell (cell F4 or named "HOLD_STATUS") is equal to "No", then I want to filter out any position that's currently in "Hold". I'm able to do that statically (see code below), but I want to make that dynamic to the cell's value. I'm horrible at describing exactly what I'm looking for, so if there's any questions then feel free to ask. I appreciate your help!

Power Query:
= Table.SelectRows(#"Removed Other Columns", each ([position] <> "Hold"))
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
What you are describing is a Parameter Query. MrE has a very good tutorial that will show you how this works. Click on the link below to watch.

 
Upvote 1
Solution
My man... thanks so much for the tutorial link. Worked like a charm and my query is working properly!
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,143
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top