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, Microsoft Certified Trainer
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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,253)