Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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!

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Add multiple formulas to gallery

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

  • MHSPDev Profile Picture
    65 on at
    Re: Add multiple formulas to gallery

    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.

  • Verified answer
    SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Add multiple formulas to gallery

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard