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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
moesteez
Helper I
Helper I

Filter All in Power Query

Hi, quick question,

 

I have a table (stores) that is filtered based on a parameter (name) that a user selects when opening a template.

 

If I have a lot of stores, is there a shortcut I can use if the user selects my "All" option. At the moment Im writing every store name out in the query, eg

 

if #"Store Filter" = "All" then [Name] = "A" or [Name] = "B" or [Name] = "C"

 

but this is time consuming and doesn't work when new stores are added. Is there sometging else I can do?

 

Thanks!

 

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @moesteez  

this is in a table filter (Table.SelectRows), correct?
To return all rows, simple use true like so:

 

if #"Store Filter" = "All" then true

 

Please not that it doesn't come in quotes, as this has to be a boolean value.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

2 REPLIES 2
ImkeF
Community Champion
Community Champion

Hi @moesteez  

this is in a table filter (Table.SelectRows), correct?
To return all rows, simple use true like so:

 

if #"Store Filter" = "All" then true

 

Please not that it doesn't come in quotes, as this has to be a boolean value.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

amitchandak
Super User
Super User

@ImkeF , Can you help?

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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