cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Using conditional filter

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

@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.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

@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.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Highlighted

Hi @RandyHayes ,

 

Thanks, it worked 🙂

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (2,065)