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 / Using conditional filter
Power Apps
Answered

Using conditional filter

(0) ShareShare
ReportReport
Posted on by 120

Hi,

 

I am using this formula for one of gallery items:

 

Filter('[dbo].[Note]',

Aid=ComboBox1.Selected.AID,

Bid=ComboBox2.Selected.BID,

Cid=ComboBox3.Selected.CID)

 

But I want to include these where type conditions only in the case when the left-hand side values are not null/blank.

 

Please suggest what can I do here.

 

Thanks in advance

 

 

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

    @beniwal 

    What you'll want to do is check the column to be blank or not and if not, then use the conditional statement on it, otherwise it is true (record is valid).

    Consider using this formula to achieve what you want:

    Filter('[dbo].[Note]',
     If(!IsBlank(Aid), Aid=ComboBox1.Selected.AID, true),
     If(!IsBlank(Bid), Bid=ComboBox2.Selected.BID, true),
     If(!IsBlank(Cid), Cid=ComboBox3.Selected.CID, true)
    )

    I hope this is helpful for you.

     

  • beniwal Profile Picture
    120 on at

    Hi @RandyHayes ,

     

    Thanks, it worked 🙂

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard