Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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!
Solved! Go to Solution.
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
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