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 / Problem with a Sort/Fi...
Power Apps
Answered

Problem with a Sort/Filter

(0) ShareShare
ReportReport
Posted on by 10

I have a powerapp I want to modify slightly to reuse for a Thanksgiving recipe app.  I have the following working in my original app

 

Search( 
 Sort(
 Filter( 'Share Your Recipe', DropdownRecipeType.Selected.Value = "All" Or 'Type of Dish'.Value = DropdownRecipeType.Selected.Value)
 , Modified, Descending),
 
 searchName.Text, "Tags"
 )
 

 

 

I added a new "number" column in my 'Share Your Recipe' list - "Thanksgiving" -- and when I add a "1" in that column, I want it to be what shows up in my gallery.

I have tried multiple ways to modify my formula, but all of them aren't working.

The logic here is - Gallery will show "All" or what is chosen in the dropdown -- but only when Thanksgiving is "1"

Any ideas how to modify my formula?

Thank you for your time!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,957 Most Valuable Professional on at

    Hi @AngieH ,

    Assuming "1" is textg

    Search( 
     Sort(
     Filter(
     'Share Your Recipe',
     Thanksgiving = "1" &&
     (
     DropdownRecipeType.Selected.Value = "All" Or 
     'Type of Dish'.Value = DropdownRecipeType.Selected.Value
     )
     ), 
     Modified, 
     Descending
     ),
     searchName.Text, 
     "Tags"
    )

     

    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

  • AngieH Profile Picture
    10 on at

    Thank you, this works perfectly!

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

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard