cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patricia_r
Helper I
Helper I

Trying to filter based on a yes/no field

Hi everyone, I'm trying to filter dropdown items based on Yes/No field from dataverse,  if the field is false then the item should not be available in the dropdown selection choices. I have a column template Id as the primary name column and the yes/no column name Is Active. 

I have try this formula with no luck. 

patricia_r_0-1635428467804.png

 

I am getting this error too: 

patricia_r_0-1635430236369.png

 

Any idea how to go about this issue? 

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @patricia_r 

To filter by a yes/no column, you would set the items property of the dropdown to this:

Filter(YourTable, 'Is Active'= 'Is Active (YourTable)'.Yes)

If you want to display the 'template id' value in the dropdown, you can set the Value property of the dropdown to 'template id'.

View solution in original post

2 REPLIES 2
timl
Super User
Super User

Hi @patricia_r 

To filter by a yes/no column, you would set the items property of the dropdown to this:

Filter(YourTable, 'Is Active'= 'Is Active (YourTable)'.Yes)

If you want to display the 'template id' value in the dropdown, you can set the Value property of the dropdown to 'template id'.

rampprakash
Super User
Super User

hello @patricia_r,

 

Try using this

 

Filter(AddColumns('Template markets',"hidenotactive",'Is Active'= 'Is Active (YourTable)'.Yes),hidenotactive).'Template ID'

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PWREduCon768x460.png

Join us at PWR EduCon - A Power Platform Conference

Learn from the top Power BI, Power Apps, Power Automate & Power Virtual Agents experts!

Users online (3,020)