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
Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,427)