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
hi_world
Helper III
Helper III

insert empty value in parameter power query

Hello, 

 

i would like to add a paramater in power query with list of value like _dev and empty value

when i select dev in my parameter i will have my table like this : table_dev 

i when i select empty value i will have table


i tried with null, "", '', blank with no success 😞 

 

hi_world_0-1685034805169.png

 

 

Do you know how to do it ?
Best regards

1 ACCEPTED SOLUTION

I am assuming you want to return 'table1' if 'Blank' is selected with the parameter and 'table1_dev' if '_dev' is selected.
In that case you would need to change your code to 

Table1 = dba{[Name= if parameter="blank" then "table1" else "table1" & parameter ,Kind="Table"]}[Data],....




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

5 REPLIES 5
hi_world
Helper III
Helper III

I'm interested if you have any ideas

jgeddes
Super User
Super User

You cannot have a blank value in the parameter list.
To workaround you can add 'Blank' to the parameter list and then use an if statement to ignore the parameter if 'Blank' is selected.

jgeddes_0-1685041426639.png

jgeddes_2-1685041468846.pngjgeddes_3-1685041492596.png

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





hello @jgeddes 
thank you for your reponse. 

i tried this : 

Table1 = dba{[Name="table1"& if parameter="blank" then "" else parameter ,Kind="Table"]}[Data],....

 

but id doesn't work 😕 
thank you for you help

I am assuming you want to return 'table1' if 'Blank' is selected with the parameter and 'table1_dev' if '_dev' is selected.
In that case you would need to change your code to 

Table1 = dba{[Name= if parameter="blank" then "table1" else "table1" & parameter ,Kind="Table"]}[Data],....




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thank you so much @jgeddes 

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.

Top Solution Authors
Top Kudoed Authors