cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JanaCVX
Level: Powered On

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 Team
Community Support Team

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
JanaCVX
Level: Powered On

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

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

Highlighted
Community Support Team
Community Support Team

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

JanaCVX
Level: Powered On

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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