cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Custom sort combobox

I need to custom sort by combobox. This is what I have in my onvisible for the combobox ollect(
coll,
Sort(
Distinct(
GUAT2,
Scenario
),
Result
)
). This isn't working because one it gets to Scenario 10 it puts it at the top but it needs to be in order or ascending numbers. I was trying something like this but couldn't get it to work. SortByColumns(GUAT2, Scenario, [ Scenario 1, Scenario 2, Scenario 3]). I have 14 scenarios.

1 REPLY 1
Erlandcrf
Microsoft
Microsoft

Hello @powerapps890 

I understand that you are looking to have a type of "Sort order", have you tried to add the SortOrder.Ascending function to your formula?

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort#syntax

 

If I misunderstood, could you please elaborate more in your question? How does the list is displaying if you enter the 14 scenarios? Could you post an screenshot?

 

Thanks.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (83,952)