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

Filter in Powerapps gallery with Choice column

Hello,

 

I am using Dataverse for teams as database. I have a table with choice column (ex: Red, Blue, green).

I want to filter the gallery for this column. I have created a dropdown for this column. But when i am trying to filter on this column for the gallery i am getting error.(incompatible type conversion)

 

Formula i have used is: Filter(Questions, 'Test1 (Questions)' = Dropdown4.Selected.Value)

 

Please suggest.

 

Regards,

Nilanjan

1 REPLY 1
GarryPope
Impactful Individual
Impactful Individual

Hello @Dronzer10,

You posted this a long time ago, and were you able to get the result you wanted?

I just tested this.

I have a table in Dataverse for Teams called: Stock Location. 

I added a Choice column on it called: AChoiceColumn

It has three choices: Red, Blue, Green.

I created a Canvas App. It has 5 rows. Three of them have a value of: Red.

I filtered the gallery to only show rows with the value of Red in the AChoiceColumn. 

 

Gallery before adding the filter:

GarryPope_0-1640724693801.png

 

Gallery after adding the filter:

GarryPope_1-1640724725786.png

 

The expression I added in the gallery's Item property is:

Filter(
         'Stock Locations',
         AChoiceColumn = [@AChoiceColumn].Red
)

 

So it's:

Filter(
         'Table',
         ChoiceColumn = [@ChoiceColumn].ValueYouWantToFilterOn
)

 

This excellent blog post by Tim Leung provides more information. Hope this helps.

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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,127)