Hi, I'm not understanding how this line knows what column I want to (Select All) on. I'm assuming it's knows because its the column I clicked on however, other functions don't do it this way.
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each true),
So lets say I have an [Index] column with row data 1-10. If I do a filter to show just 1,5,10 the M code looks like this:
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each [Index] = 1 or [Index] = 5 or [Index] = 10),
I can easily manipulate the second line of code to point to whatever column I want simply by changing [Index].
But for the first line of code how do I tell it what column I want to Select All? It doesn't give a column name in the formula and I haven't seen any other code that does it this way.
The reason I'm needing to do this is based on certain parameters selected in a worksheet that applies a filter, but I may need it to unfilter as well.
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each true),
So lets say I have an [Index] column with row data 1-10. If I do a filter to show just 1,5,10 the M code looks like this:
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each [Index] = 1 or [Index] = 5 or [Index] = 10),
I can easily manipulate the second line of code to point to whatever column I want simply by changing [Index].
But for the first line of code how do I tell it what column I want to Select All? It doesn't give a column name in the formula and I haven't seen any other code that does it this way.
The reason I'm needing to do this is based on certain parameters selected in a worksheet that applies a filter, but I may need it to unfilter as well.