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 / Create filtered dropdo...
Power Apps
Answered

Create filtered dropdown for SharePoint List

(0) ShareShare
ReportReport
Posted on by 34

I'm running into an issue creating a dropdown field for a SharePoint form. Here is some example data:

 

trandallvermont_1-1593549365771.png

 

When a new item is entered, I would like to set the Hub Site field to be a dropdown that lists only the sites where the Hub Site Status is Hub Site. I can't seem to get the right formula.

 

The closest answer I found online was using this formula where IsHubSiteLookup is a calculated field that shows the title when Hub Site Status is Hub Site.

Filter('AHS SharePoint Sites', IsHubSiteLookup<>"").Title

 

trandallvermont_0-1593550419277.png

 

 

This results in a dropdown menu with blank options (although this list is roughly as long as I would expect if the hub sites were showing).

 

trandallvermont_0-1593550298805.png

 

Anyone doing something similar find a way to make it work?

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @trandallvermont 
    Please remove the calculated column from SharePoint.  You don't need it.

    Then create a dropdown and use this code in the Items field.  My assumption is 'Hub Site Status' is a single line text field.

     

    Filter('AHS SharePoint Sites', 'Hub Site Status'="Hub Site").Title

     

    Now the dropdown will only show relevant results.

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at

    Hi @trandallvermont ,

    Something like

    Filter(
     'ABS SharePoint Sites',
     'Hub Site Status' = YourHubStateStatusdd.Selected.'Hub Site Status'
    ).Title

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @trandallvermont ,

    According to the issue that you mentioned, please make sure that you have set the "Title" column as Display column value in your "Hub Site" Dropdown box/ComboBox.

     

    Actually, I think it is not necessary to add a Calculated field in your SP List to achieve your needs, simple Filter function could achieve your needs. Please consider take a try wit the following workaround:

    Set the Items property of the "Hub Site" Dropdown box/ComboBox to following:

    Distinct(
     Filter('AHS SharePoint Sites', 'Hub Site Status'.Value = "Hub Site"),
     Title
    )

    Then set the "Result" column as Display column value in your "Hub Site" Dropdown box/ComboBox.

    Then set the Update property of the "Hub Site" field data card to following:

    HubSiteDropdownBox.Selected.Result

    Note: I assume that the 'Hub Site' column is a Text type column in your SP List, and the 'Hub Site Status' column is a Choice type column in your SP List.

    8.JPG

     

    9.JPG

     

     

    Best regards,

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
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard