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 Platform Community / Forums / Power Apps / dropdowns in galleries...
Power Apps
Unanswered

dropdowns in galleries to auto select random items from dropdown options

(0) ShareShare
ReportReport
Posted on by 17

Hi All

 

I currently have a process where an excel list is uploaded, to a PowerApps a flow runs which adds all the users into a SharePoint list.

I have another SharePoint list that has all the asset number, Status and role :

 

Asset IdStatusRole
0001Assigned Grad
0002UnassignedManager
0003AssignedManager

 

I currently have a form setup for single users, and depending on the role selected and whether the status is available it only returned those assets.

 

This is on the select asset box of the form: Distinct(Filter('Asset List',Role = Dropdown1.Selected.Result && Status.Value = "Unassigned"),Title) 

 

What I then want to do is bring all the items uploaded into a gallery so that assets can be auto assigned, which would have dropdown in each record and depending on their record and the above formular would automatically select an asset for them.

 

I believe there is a shuffle function but not had great success so any help is appreciated 

 

Thank you

 

 

 

 

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    If you are in PowerApps, wrap your Gallery Items in

    Sort(AddColumns(/* Put your list name here */, "randomizer", Rand()), randomizer,SortOrder.Ascending)

    then the top item in the gallery will br random every time and you can just assign it. or can even have the assignment be that formula wrapped in a First() which will just give you a random record every time

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard