Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Add 'Other" to Dropdown list based on SharePoint column

(0) ShareShare
ReportReport
Posted on by 240

Hello,

 

I have what seems to be a simple request. My 'items' formula for dropdown is coming from SP data source and it is  

Distinct(AutoData,ParentCode)

- which works fine(to get values from 'ParentCode' SP column). User needs to be able to select 'Other' at the bottom and I am struggling to add this option to the formula above. Updating SP list is not an option as list is dynamic and then I have to worry about sorting so that 'other' appears at the end of all options.

 

Thank you for your help.

 

 

Categories:
  • nemanjasovic011 Profile Picture
    nemanjasovic011 240 on at
    Re: Add 'Other" to Dropdown list based on SharePoint column

    This worked exactly as I intended. Thank you both.

  • Verified answer
    RandyHayes Profile Picture
    RandyHayes 76,287 on at
    Re: Add 'Other" to Dropdown list based on SharePoint column

    @nemanjasovic011 

    Please consider changing your Formula to the following:

    Ungroup(
     Table({Items: Distinct(AutoData,ParentCode)},
     {Items: Table({Result: "Other"}) }
     ),
     "Items"
    )

    This will provide you with a more dynamically changing dropdown based on your AutoData source.

     

    I hope this is helpful for you.

  • WarrenBelz Profile Picture
    WarrenBelz 145,495 on at
    Re: Add 'Other" to Dropdown list based on SharePoint column

    Hi @nemanjasovic011 

    Do a collection for the Items

    ClearCollect(
     colDD,
     Distinct(
     Autodata,
     ParentCode
     ),
     {Result: "Other"},
    )

     

    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.

    Visit my blog Practical Power Apps

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard