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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,163)