filtering using parameters & M code

Axsom

New Member
Joined
Jul 4, 2021
Messages
4
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
If my questions seem noobish - it's only because I started with Power Query this week...
I have been able to add a couple of parameters to my queries, one allows the end user to change the month of the report they are viewing, and another to sort the "Group/Client" they are viewing.
My M code line to change the filter is: #"Filtered Rows1" = Table.SelectRows(#"Trimmed Text", each ([#"Client"] = (SortByClient)))

You can change the Group/Client using a Validation pull down list but my problem - is I can't get it to change back to "Select All"

How can I get back to the full list after using the filter?

Fingers crossed I have this in the correct forum this time...
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
So it sounds like you want this filter to be adjustable later on by users? If so, Power Query is the wrong location to do that; you would need to do it in a slicer inside of your actual report or with your pivot table (depending on if you are in excel or Power BI).

The filter functionality inside of PQ is more of a one-time operation to filter the entire dataset. If you want to use the entire data set, but only want to filter/drill down a specific view/chart/table in a customizable way, a slicer is what you want.
 
Upvote 0
This sounds/looks promising.
I haven't done much work with a slicer, but I will inform you how it goes...
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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