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
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

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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 174 members 3,464 guests
Please welcome our newest community members: