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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Drop-down List

(0) ShareShare
ReportReport
Posted on by 125

1000047901.jpg

Hi. I have a application which has a drop-down. Connected with a SharePoint list.

It has a 8 9 values .

I used this below code in item of drop-down

 

ForAll(Distinct(Filter('CT_Personas Matrix', Role=DataCardValue11.Selected.Result).OL1, OL1),fResult:ThisRecord.Value])

 

Now how to set a specific value like Global on top. As you can see in the image. Like global at bottom. How to make it on the top .

Rest random.

 

 

Please help anyone if aware 

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Ali_sam - below is a basic example, but I do not quite understand your syntax. Could you confirm what you have in the Items property of DataCardValue11?

     

     

    Sort(
     Ungroup(
     Table(
     {
     DropdownOptions: Distinct(
     'CT_Personas Matrix',
     Role = DataCardValue11.Selected.Result
     )
     },
     {DropdownOptions: ["#Global"]}
     ),
     "DropdownOptions"
     ),
     Value
    )

     

  • Ali_sam Profile Picture
    125 on at

    Hi @Amik . Thanx for your reply

    I attached the list screenshot below

    Dropdown11 value contains role. What we will select in dropdown 11 as role. Respective to that value will come in the next dropdown. That's what i filtered.

    1000047982.jpg

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Ali_sam sorry I do not understand your response.

     

    Please could you answer my earlier question and I may be able to provide some support.

  • Ali_sam Profile Picture
    125 on at

    Hi @Amik 

     

    In Items property of dropdown 11 is : - 

    ForAll(Distinct('CT_Personas Matrix', Role), {Result: ThisRecord.Value}).

     

     

    I hope this was your question & it's clear to you now.

  • Ali_sam Profile Picture
    125 on at

    Please reply if you have any other query.

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Ali_sam please change the Items property of DataCardValue11 to:  

     

     

    Sort(
     Distinct(
     'CT_Personas Matrix',
     Role
     ),
     Value,
     SortOrder.Ascending
    )

     

     

    For the dropdown control you want to include "Global" onto, use:

     

     

    Sort(
     Ungroup(
     Table(
     {
     DropdownOptions: Distinct(
     Filter(
     'CT_Personas Matrix',
     Role = DataCardValue11.Selected.Value
     ),
     'The name of the field you want to display'
     )
     },
     {DropdownOptions: ["#Global"]}
     ),
     "DropdownOptions"
     ),
     Value
    )

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard