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

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,944)