Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Gallery Filter Not Working

Posted on by 1,311
A new requirement isnt working for me.
The customer wants to filter by the SharePoint ID number.
The below FX logic works to filter by the ID number but the other filter doesnt work.

If(

    IsBlank(txtSearchID),
    Filter(
        'Regional Bank Execution Team Intake - DEV',
        BusAlignment.Value = cboBusAlignment.Selected.Value || IsBlank(cboBusAlignment.Selected.Value),
       
        ExeTeamMember.DisplayName = cboExecTeamMember.Selected.Value || IsBlank(cboExecTeamMember.Selected.Value),
        StartsWith(
            'Request Title',
            txtSearchBox.Text
        )
    ),
    Filter(
        'Regional Bank Execution Team Intake - DEV',
        ID = Value(txtSearchID.Text) || IsBlank(txtSearchID.Text)
    )
)
 
The below works fine but I dont have the ID filter.

    Filter(
        'Regional Bank Execution Team Intake - DEV',
        BusAlignment.Value = cboBusAlignment.Selected.Value || IsBlank(cboBusAlignment.Selected.Value),
       
        ExeTeamMember.DisplayName = cboExecTeamMember.Selected.Value || IsBlank(cboExecTeamMember.Selected.Value),
        StartsWith(
            'Request Title',
            txtSearchBox.Text
        )
    )
 
Any Suggestions?
Categories:
  • golfnutt82 Profile Picture
    golfnutt82 1,311 on at
    Gallery Filter Not Working
    Wow, I that was perfect.
    Thank you!
  • Verified answer
    jpespena Profile Picture
    jpespena 294 on at
    Gallery Filter Not Working
    Hi,
     
    Try this:
    Filter(
         'Regional Bank Execution Team Intake - DEV',
        Or(
            IsBlank(txtSearchID.Text),
            ID = Value(txtSearchID.Text)
        ),
        Or(
            IsBlank(cboBusAlignment.Selected.Value),
            BusAlignment.Value = cboBusAlignment.Selected.Value
        ),
        Or(
            IsBlank(cboExecTeamMember.Selected.Value),
             ExeTeamMember.DisplayName = cboExecTeamMember.Selected.Value
        ),
        StartsWith(
                'Request Title',
                Trim(txtSearchBox.Text)
        )
    
    )
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard