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 / Sort by column button
Power Apps
Unanswered

Sort by column button

(0) ShareShare
ReportReport
Posted on by 232

I have three icons that I'm trying to use to filter these columns, but it isn't filtering. Here's my formula: Screen Shot 2022-07-20 at 3.23.57 PM.png

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

    @Dknight7 

    The sort would occur in your Items property of the gallery...not the button.  So what is the Items property of the Gallery and how are you using the variables in it?

     

    You are only showing the Icon property, not the OnSelect of the Icon - which is where you would be setting the variable, and in the Gallery Items property is where you would be using the variables in your formula.

     

    I hope this is helpful for you.

  • Dknight7 Profile Picture
    232 on at

    This is the items property of my table. How can I add this formula to it?

    Screen Shot 2022-07-21 at 1.46.57 AM.png

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dknight7 

    Your formula in the Items is only dealing with sorting the SubmissionDate column.  None of the rest of your formulas will have any impact.

     

    I would suggest setting your Items property formula to the following to utilize your variables for the columns and sort direction.

    SortByColumns(
     Filter('Employee Activity List', 
     Employee.DisplayName = User().FullName,
     Status.Value = "Needs Approval"
     ),
     Coalesce(varSortColumn, "SubmissionDate"),
     Coalesce(varSortDirection, Descending)
    )
  • Dknight7 Profile Picture
    232 on at

    My data disappears:Screen Shot 2022-07-21 at 4.40.50 PM.pngScreen Shot 2022-07-21 at 4.40.58 PM.png

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dknight7 

    How big is your list? (number of records) and what is your Record Limit set to in your app?

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

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard