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 / How to sort and filter...
Power Apps
Answered

How to sort and filter Choice column

(0) ShareShare
ReportReport
Posted on by 70

Hi,

I am looking for the sort and filter option in the Gallery mode. I have created a form and the gallery is only showing items when 'Recruiting Status' is Open Position, Offer preparation etc. Now I want to sort the 'Job type' column in this order: FTE>Temp>Co-op>Intern. When I am sorting the 'Job type' column which is a choice column,it is getting sorted in ascending order. So, how do I sort a choice column in a specific order?

I have tried 'Job type'.Value,["FTE","Temp","Co-op","Intern"] but it doesn't work

ramtas101_1-1668098544982.png

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ramtas101 

    SortByColumns(AddColumns(yourfilteredtable,"JobT",'Job Type'.Value),"JobT", Ascending)

    Replace yourfilteredtable with your filter formula.

  • ratas101 Profile Picture
    70 on at

    Hi,

    I am trying to sort the Job type column in this order:FTE>Temp>Intern>Co-op. the job type column is a choice column

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ramtas101 

    SortByColumns(AddColumns(yourfilteredtable,"JobT",'Job Type'.Value),"JobT", ["FTE","Temp","Intern","Co-op"])

  • Verified answer
    ratas101 Profile Picture
    70 on at

    Thank you very much Sir. This solved my issue!

  • ratas101 Profile Picture
    70 on at

    Hi,

    The formula worked but when I am navigating to my second window, I am not being able to see any data. I see this error (Picture 3). How do I resolve this issue?

     

     

     

     

    ramtas101_2-1668103321493.png

    ramtas101_0-1668103168464.png

  • ratas101 Profile Picture
    70 on at

    DropColumns(SortByColumns(AddColumns(Filter('FDG Personnel Tracker','Recruiting Status'.Value = "Open position" ||'Recruiting Status'.Value = "Offer preparation" ||'Recruiting Status'.Value = "Requesting department approval" ||'Recruiting Status'.Value = "Offer accepted, waiting for onboarding", User().Email in 'Hiring Manager'. Email),"JobT",'Job Type'.Value),"JobT",["FTE","Temp"]),"JobT")

     

    I solved this issue by dropping the column. Thank you very much again!

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 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard