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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jmdh
Advocate IV
Advocate IV

Filter "column" where "column" is picked from a parameter or a list

Hi ,

I am struggling to make the expression 

Table.SelectRows( Sales, each ([Product] <> "P1"))

work when i am trying to repace teh actual column name [Product] with something either coming from a List, or a parameter

 

Table.SelectRows( Sales, each (   Parameter <> "P1"))

I have no syntax error but it is as though the expression is not evaluated ...

 

I have tried many options including Expression. Evaluate without success.

 

Thanks a lot for your input.

 

 

1 ACCEPTED SOLUTION
MarcelBeug
Community Champion
Community Champion

Here is one option you probably didn't try:

 

Table.SelectRows(Sales, each Table.Column(_,Parameter) <> "P1")

Specializing in Power Query Formula Language (M)

View solution in original post

2 REPLIES 2
MarcelBeug
Community Champion
Community Champion

Here is one option you probably didn't try:

 

Table.SelectRows(Sales, each Table.Column(_,Parameter) <> "P1")

Specializing in Power Query Formula Language (M)

Perfect ! (one more time).

Many thanks Marcel,

Jmdh

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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