cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mikelpower
Level: Powered On

Add Blank/Null to Dropdown list

Hi,

 

I have a Gallery that I need to filter by the field "Country".

 

Initially I set the Item.Distinct(DG_tb_Main;Country) and it works fine, but now I see that I need to set it blank /null because otherwise it would be filtering all the time by the selected country.

 

I was trying to do something like  Item.[Distinct(DG_tb_Main;Country);"     "] but is not working. (using ; due to my location).

 

Any simple solution to this?

 

Regards and thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Add Blank/Null to Dropdown list

Hi @mikelpower,

If you want to add a blank item in the dropdown list ,you can set its Items property to a collection.

 

I assume that I have a table named ‘test4with country column .

You can set OnVisible property of the screen to :

ClearCollect(countrywithblank,Distinct(test4,country),{Result:""})

You can set the collection ‘ countrywithblank as the Items property of your dropdown control .

 

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Highlighted
Community Support Team
Community Support Team

Re: Add Blank/Null to Dropdown list

Hi @mikelpower,

If you want to add a blank item in the dropdown list ,you can set its Items property to a collection.

 

I assume that I have a table named ‘test4with country column .

You can set OnVisible property of the screen to :

ClearCollect(countrywithblank,Distinct(test4,country),{Result:""})

You can set the collection ‘ countrywithblank as the Items property of your dropdown control .

 

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mikelpower
Level: Powered On

Re: Add Blank/Null to Dropdown list

Thanks!!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 23 members 4,239 guests
Please welcome our newest community members: