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

View solution in original post

rampprakash
Community Champion
Community Champion

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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,457)