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

Add two formulas in the formula bar

Hello,

 

I am unable to add these two formulas in the formula bar of my powerapps. 

 

In Gallery > Items: 

 

Formula 1: Search('Tax T1', SearchB.Text, "Title")

Formula 2:  Sort('Tax T1', Title, Ascending) 

 

I try adding ;; between the two formulas , but it didn't work. Is there any other options? 

 

Thank you, 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Super User
Super User

Do you want to search and sort? If so, you can use something like this in the Items property of the gallery:

Sort(Search('Tax T1', SearchB.Text, "Title"), Title, Ascending)

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
https://thepoweraddict.com

View solution in original post

4 REPLIES 4
PowerAddict
Super User
Super User

Do you want to search and sort? If so, you can use something like this in the Items property of the gallery:

Sort(Search('Tax T1', SearchB.Text, "Title"), Title, Ascending)

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
https://thepoweraddict.com

View solution in original post

Drrickryp
Super User
Super User

Hi @MiMi_v88 ,

@PowerAddict is correct in how to address your issue.  In order to better understand how PowerApps formulas work, think about wrapping one formula within another.  In PowerApps, the formulas are executed from the inside out.   @PowerAddict 's solution Sorts the results of the Search.  However, you could arrive at the same result by 

Search(Sort('Tax T1',Title, Ascending), SearchB.Text, "Title")

In this case the datasource is sorted first and then searched.  

Thank you it worked!!!

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
https://thepoweraddict.com

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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