cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
simms7400
Post Prodigy
Post Prodigy

Search Multiple Columns - Text & Choice

Hi Folks -

 

I have a search box and galley set up on one of my form. I've also enabled it where the user can search multple fields as well. Here is my formula:

SortByColumns(
	Filter(rdAssets, 
		StartsWith(Alias, TextSearchBox4.Text) || 
		StartsWith(Name, TextSearchBox4.Text) ||
		StartsWith(Target_x0020_Short_x0020_Name, TextSearchBox4.Text) ||
		StartsWith(Brand_x0020_Name, TextSearchBox4.Text) ||
		StartsWith(PF_Research_Code, TextSearchBox4.Text) ||
		StartsWith(Generic_x0020_Name, TextSearchBox4.Text) ||
		StartsWith(Development_Name, TextSearchBox4.Text) ||
		StartsWith(Alternate_Name, TextSearchBox4.Text) && !(Portfolio_x0020_Status.Value="Terminated")), 
		"Alias", If(SortDescending1, Descending, Ascending)
	)

It's currently sorted by "Alias" (which is a text field), however I need to add one more column to sort by : Portfolio_x0020_Status

The issue is the Portfolio_x0020_Status is a choice field and it's not liking any formula. Can somene give me some pointers on how to add Portfolio_x0020_Status to my above formula?

Thank you!

11 REPLIES 11

@RandyHayes 

 

Randy, please excuse me. My network must have been slow/disconnected as I relaunch the app and now your formula works. Let me add it to the respective Forms and report back if i have issues.

 

Thank you so much!!!

@simms7400 

No problem!  My favorite kind of issue...one that resolves itself!

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,683)