cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Sort by and Search with Single Line Values and Choice Values

Hi PAC, looking for some keen eyes to help me with the below formula.

 

Goals:

 

  1. Sort SharePoint list by columns "DI_ID", descending and ascending. (This is working in the formula below)
  2. Utilize "TextSearchBox1" to search 'Digital Idea Intake' SharePoint list with
  • single values "DI-ID" and "Title" (working in syntax below)
  • choice value (people lookup connected to Enterprise from SP List) "Choices('Digital Idea Intake'.Idea_x0020_Submitted_x0020_by)" <<<--- ding ding ding, this is what I need help with!

Current Formula in BrowseGallery1 Items (working):

SortByColumns(Search('Digital Idea Intake', TextSearchBox1.Text,"DI_ID", "Title"), "DI_ID", If(SortDescending1, SortOrder.Ascending, SortOrder.Descending))

 

Additional Info

TextSearchBox1: Mode(TextMode.SingleLine); Format(TextFormat.Text)

 

 

Looking for help in adding the choice value into the above formula but am struggling. I've tried several different suggestions.... and none have worked thus far.

 

Thanks in advance for all responses!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Sort by and Search with Single Line Values and Choice Values

Hi @JanaCVX ,

 

So far Search function doesn't work with choice column. You might need to use Filter instead.

Please try with below formula:

SortByColumns(Filter('Safety Concentration Time Tasks', Or(TextSearchBox1.Text in DI_ID,TextSearchBox1.Text in Title,TextSearchBox1.Text in Idea_x0020_Submitted_x0020_by.DisplayName)), "DI_ID", If(SortDescending1, SortOrder.Ascending, SortOrder.Descending))

You could search with person and group's display name in the search box.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Frequent Visitor

Re: Sort by and Search with Single Line Values and Choice Values

Additional properties on the choice value....PAC_GD.PNG

Highlighted
Community Support
Community Support

Re: Sort by and Search with Single Line Values and Choice Values

Hi @JanaCVX ,

 

So far Search function doesn't work with choice column. You might need to use Filter instead.

Please try with below formula:

SortByColumns(Filter('Safety Concentration Time Tasks', Or(TextSearchBox1.Text in DI_ID,TextSearchBox1.Text in Title,TextSearchBox1.Text in Idea_x0020_Submitted_x0020_by.DisplayName)), "DI_ID", If(SortDescending1, SortOrder.Ascending, SortOrder.Descending))

You could search with person and group's display name in the search box.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: Sort by and Search with Single Line Values and Choice Values

Thanks Mona, this worked great. I updated the dataset as well to the filter location to 'Digital Idea Intake'

 

SortByColumns(Filter('Digital Idea Intake', Or(TextSearchBox1.Text in DI_ID,TextSearchBox1.Text in Title,TextSearchBox1.Text in Idea_x0020_Submitted_x0020_by.DisplayName)), "DI_ID", If(SortDescending1, SortOrder.Ascending, SortOrder.Descending))

Appreciate the assist Woman Very Happy

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (10,282)