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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Advanced Editor - Filtering Columns

i created a parameter "Company"  and i pass its value on the advance editor.

 

Here are the values of Company parameter:

All

Company1

Company2

Company3

 

 

Here is my script in advance editor:

 

let
Source = Table.Combine({Contact1, Contact2, Contact3, Contact4, Contact5, Contact6, Contact7, Contact8}),
#"Filtered Rows" = Table.SelectRows(Source, each ([Company] = Company))
in
#"Filtered Rows"

 

If i select the "ALL" value, i want to remove the filter and show all the values.

Is that possible? Please advise. 

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous,

 

Based on my test, we can add an if condition in Advanced Editor to check if the value of Company parameter is All. There is an example for your reference.

 

 

let

    Source = Table.Combine({Table1, Table2}),

    appendtable = Source,

 

    #"Filtered Rows" = Table.SelectRows(Source, each [Company] = Company),

    result= if Company = "All" then appendtable

    else #"Filtered Rows"

in

#"result"

 

Through that we can get the result as below:

 

1.png

 

For more information, please refer to the pbix as attached.

https://www.dropbox.com/s/v7hbk2mrh2s1z8o/Advanced-Editor-Filtering-Columns2.pbix?dl=0


Your code can be updated as below.

let

Source = Table.Combine({Contact1, Contact2, Contact3, Contact4, Contact5, Contact6, Contact7, Contact8}),

    appendtable = Source,

 

    #"Filtered Rows" = Table.SelectRows(Source, each [Company] = Company),

    result= if Company = "All" then appendtable

    else #"Filtered Rows"

in

#"result"

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @Anonymous,

 

Based on my test, we can add an if condition in Advanced Editor to check if the value of Company parameter is All. There is an example for your reference.

 

 

let

    Source = Table.Combine({Table1, Table2}),

    appendtable = Source,

 

    #"Filtered Rows" = Table.SelectRows(Source, each [Company] = Company),

    result= if Company = "All" then appendtable

    else #"Filtered Rows"

in

#"result"

 

Through that we can get the result as below:

 

1.png

 

For more information, please refer to the pbix as attached.

https://www.dropbox.com/s/v7hbk2mrh2s1z8o/Advanced-Editor-Filtering-Columns2.pbix?dl=0


Your code can be updated as below.

let

Source = Table.Combine({Contact1, Contact2, Contact3, Contact4, Contact5, Contact6, Contact7, Contact8}),

    appendtable = Source,

 

    #"Filtered Rows" = Table.SelectRows(Source, each [Company] = Company),

    result= if Company = "All" then appendtable

    else #"Filtered Rows"

in

#"result"

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.