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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter into an OR stat...
Power Apps
Answered

Filter into an OR statement

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is there a way to turn this Filter into an OR statement on the criteria ?

DUNS_NAME =TextInput21.Text && SELLER_NAME = ComboBox4_1.Selected.Result

 

 

Current Filter :

Filter('[dbo].[Entity_Location_Facility_Emp_Base]', DUNS_NAME =TextInput21.Text && SELLER_NAME = ComboBox4_1.Selected.Result)

 

Thanks

Dave

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Please consider changing your Formula to the following:

    Filter(
     '[dbo].[Entity_Location_Facility_Emp_Base]', 
     DUNS_NAME =TextInput21.Text || SELLER_NAME = ComboBox4_1.Selected.Result
    )

    I hope this is helpful for you. 

  • Pstork1 Profile Picture
    69,647 Most Valuable Professional on at

    To switch it to an 'OR' you just need to change the && to a ||.

    Filter('[dbo].[Entity_Location_Facility_Emp_Base]', DUNS_NAME =TextInput21.Text || SELLER_NAME = ComboBox4_1.Selected.Result)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    When i add the  ||  it is bring back the whole dataset ?

    Dave

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Can you provide a sample of a record that you know should not be returned?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     Randy, I guess what i'm trying to say is if i make a choice in the first dropdown, filter the records...after i make a choice in the second dropdown , filter again..

     

    Dave

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Okay, but your original post mentioned a ComboBox and a TextInput control.  So if it is two ComboBoxes you are working with, then your formula would be more like this:

    Filter(
     '[dbo].[Entity_Location_Facility_Emp_Base]', 
     DUNS_NAME =TextInput21.Text || 
     (
     (IsBlank(ComboBox4_1.Selected.Result) || SELLER_NAME = ComboBox4_1.Selected.Result) &&
     (IsBlank(yourOtherCombo.Selected.Result) || AnotherColumn = yourOtherCombo.Selected.Result)
     )
    
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks Randy, exactly what I needed.

    Dave

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard