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 / Need help on Items pro...
Power Apps
Unanswered

Need help on Items property formula to use filters and search box on Gallery of canvas app...

(0) ShareShare
ReportReport
Posted on by 20

Hi everybody,

 

I'm still trying to write to successfully write a formula to filter and search the gallery in my employer's canvas app. My research says there IS a way to filter and search in one function, but when I try to replicate the function, mine doesn't work. I need help from a more experienced user. Below is screenshot of my gallery showing the formula I have written. Can someone let me know what I'm doing wrong? Thank guys... I appreciate it. NOTE: I realize narrative is spelled incorrectly, but I didn't create the Sharepoint list, I'm just in charge of making changes to the existing app.

 

Here is what I have in my Items property: 

Search(
AddColumns(Filter('Weekly Digest', Created >= Date(2021, 1, 12), Group = GroupDD, AppropriateAudienceforContent = AudienceDD, SearchBox.Text, Category, Narative, Group, Title)
)

PowerApps Screenshot of Gallery Items Property 101022.jpg
Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @TMaith 

    The syntax of your formula is way off!  

    What is the need for AddColumns?  What is your Filter criteria? What are the columns you want to search?

     

    My assumptions in looking at your Formula are that you want to search  Category, Narative, Group, and Title with the SearchBox.Text

     

    But I cannot figure out why you have an AddColumns function in there.

     

  • TMaith Profile Picture
    20 on at

    Morning Randy! I just copied that formula from someone online and tried to update it with my values. I really don't know if the addcolumns is necessary. I have a search box and two different dropdowns on my gallery screen. Your assumption is correct. I need my users to be able to use the search box and/or the two dropdowns. Thank you for responding...

     

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

    @TMaith 

    No problem...let's get it fixed up!

     

    Need some info though:

    What kind of column is Group, AppropriateAudienceforContent, Category, and Narative?

    What is GroupDD, and AudienceDD?  And, if the DD means they are dropdowns, then what is the Items property of them?

     

  • TMaith Profile Picture
    20 on at

    Randy Hayes, here are the details... And yes, GroupDD and AudienceDD are dropdown boxes.

     

    Group: choice column which allows multiple selections => DEI, Environmental Dredging & Restoration, Environmental Operations, Finance, Human Resources, IT, Safety & Compliance, Technical Environmental Services, W/WW Operations, W/WW Engineering

     

    *The items property is currently set to: SortByColumns(Distinct('Weekly Digest', Group),"Result") 

     

    Category: choice column which allows multiple selections => Awards, Client/Customer Service, DEI, Education/Training, Employee Spotlight, General, Project Spotlight

     

    *The items property is currently set to: SortByColumns(Distinct('Weekly Digest', AppropriateAudienceforContent),"Result") 

     

    Appropriate Audience for Content: choice column that allows one 1 selection => Internal Newsletter, External Newsletter, External Website, Social Media

     

    Narrative: Multi-line text column (where users actual type up the story)

     

    Thank you for your help!!

  • TMaith Profile Picture
    20 on at

    Hi guys, below is my final formula and it works like a dream.

     

    Filter('Weekly Digest',StartsWith(Category,SearchBox),Group=GroupDD.Selected.Result, 'Appropriate Audience for Content'=AudienceDD.Selected.Result)

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