cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Field
Helper V
Helper V

Filter using YES/NO column

Hello,

 

I'm having a huge problem with my gallery. 

I made a simple filter that will only get items if the YES/NO choice type is the column is true (yes).

The problem is, the filter will only get false. 

 

image.png

 

Even if i put the following code:

 
 
 
 

Filter('Reunião de Agência'; Rascunho = false)

 

It will also get me all the falses.

 

If i don't put any filter at all, i get all the items.

How do I fix this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

Try one of these

Filter('Reunião de Agência'; Rascunho.Value = 0)

 

Filter('Reunião de Agência'; Rascunho.Value = 1)

 

Filter('Reunião de Agência'; Rascunho= 0)

 

Filter('Reunião de Agência'; Rascunho= 1)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

4 REPLIES 4
KrishnaV
Super User III
Super User III

Hi @Field ,

 

Filter on top of a choice works little differently if you see choice always returns a table of content. so, please change your formula as below:

Filter('Reunião de Agência'; Rascunho.Value = "false")

OR

Filter('Reunião de Agência'; Rascunho.Value = false)

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Hi @KrishnaV ,

 

I actually add the .Value, but for some reason it gives me this error:

 

 

image.png

 

Saying the "." is invalid.

 

Edit: I got mistaken by the column. The column is YES/NO column, NOT a choice column

eka24
Super User III
Super User III

Try one of these

Filter('Reunião de Agência'; Rascunho.Value = 0)

 

Filter('Reunião de Agência'; Rascunho.Value = 1)

 

Filter('Reunião de Agência'; Rascunho= 0)

 

Filter('Reunião de Agência'; Rascunho= 1)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Hey @eka24 ,

 

This actually worked. Thank you.

I don't think it makes sense putting a 1 and 0, but it worked. 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (24,023)