web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to add a text valu...
Power Apps
Answered

How to add a text value to the drop down values which came from a SharePoint list?

(0) ShareShare
ReportReport
Posted on by 235

Hi,

 

I am using a drop down which values are fed form a Column of a SharePoint list. Within the drop down I use: 

Distinct([@lst_Demo], Countries)

 

Now the values of the drop down are, for example "Germany", "France", "USA", "Denmark".

Now I want to add the text "none" at the first value of the drop down list.

 

I tried the following:

Ungroup(
 Table(
 {DropdownOptions: ["None"]},
 {DropdownOptions: Distinct([@lst_Demo],Countries)}
 ),
 "DropdownOptions"
 )

 

It does not work. If I look at the value properties of the drop down now I have two choices, "value" and "result".

If I set the value property of the drop down to "value" my text "none" is visible at the drop down.

If I set the value property of the drop down to "result" the countries are visible at the drop down.

 

How do I make my drop down show "none" as the first value and then the "countries"?

 

Why do I need this? I want to use the drop down as filter for a gallery.

 

Thanks a lot.

Michael

 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @MichaGue 

    ClearCollect(itms, {Result:

    "none"});

    Collect(itms:Distinct([@lst_Demo],Countries)

    Put this in the OnVisible property of the screen. Use itms as the dropdown items property.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard