web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add multiple formulas ...
Power Apps
Unanswered

Add multiple formulas to gallery

(0) ShareShare
ReportReport
Posted on by 65

Hello everyone,

 

I'm currently building an app for a Risk Register using a SharePoint list.

 

I posted yesterday as I was struggling to figure out how to get two combo boxes to work for filtering my gallery but that was sorted.

 

However I have now realised that fixing the combo boxes has broken the Search Input, which I now need help with.

 

Here is my current formula in the gallery:

 

Filter(
     'Risk Register',
     (IsBlank(ComboBox1.SelectedItems) || IsEmpty(ComboBox1.SelectedItems) ||
     RiskOwner.DisplayName in ComboBox1.SelectedItems.DisplayName) &&
     (IsBlank(ComboBox2.SelectedItems) || IsEmpty(ComboBox2.SelectedItems) ||
     RiskStatus.Value in ComboBox2.SelectedItems.Value)
)

 

That formula allows me to filter my gallery using two combo boxes either independently of each other or simultaneously.

 

I now need to incorporate this formula but cannot figure out how to do it:

 

Search([@'Risk Register'], SearchInput1.Text, "RiskDescription", "RiskDescription")

 

Any help is greatly appreciated!

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @MHSPDev 

     

    You can combine both formulas:

    Search(
     Filter(
     'Risk Register',
     (IsBlank(ComboBox1.SelectedItems) || IsEmpty(ComboBox1.SelectedItems) ||
     RiskOwner.DisplayName in ComboBox1.SelectedItems.DisplayName) &&
     (IsBlank(ComboBox2.SelectedItems) || IsEmpty(ComboBox2.SelectedItems) ||
     RiskStatus.Value in ComboBox2.SelectedItems.Value)
     ),
     SearchInput1.Text, 
     "RiskDescription"
    )

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • MHSPDev Profile Picture
    65 on at

    SpongYe this is twice now you've saved me after hours of googling.

     

    I'll have to start paying you soon!


    Thank you very much, all working now.

  • SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @MHSPDev 

     

    I don't mind 😊

    Good luck further!

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard