cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Filtering galleries by current user and list

My issue is that I am trying to filter an existing data list by a column called "Country".

 

Issue 1

On the edit screen where the in country person adds a new line of data and completes the new data input by pulling down choice fields, I cannot get the pull down for "Country" to only show their Country it shows them all countries in the list. 

 

I have a list of countries and a list of users assigned to the countries so i can build a separate list to contain these if required to do a look up to or link back to?  

 

Issue 2

My master data list is built and linked to a PowerApp and everything works as it should apart form when I try and apply a filter to only show the user their Country data - I either get all the data or nothing at all.

 

Can you help on this at all? I can provide any details required as I have been trying to do this for opver a week.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Filtering galleries by current user and list

Hi @Anonymous,

I suspect that the problem is with the column type being Choice in your list.  Choice, Lookup and Person columns are actually embedded tables that consist of an ID and Value.  Please review this ref: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-choices to better understand how to deal with these complex column types.  The examples with Comboboxes will steer you in the right direction.  

I personally avoid them.  You can change the Choice type column to a a Single line of text (Slot) in Sharepoint without a loss of data.  Lookup type columns are more difficult to change and I simply bring in a second list and reference within Powerapps with the Lookup() function.  

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Filtering galleries by current user and list

Hi @Anonymous,

I suspect that the problem is with the column type being Choice in your list.  Choice, Lookup and Person columns are actually embedded tables that consist of an ID and Value.  Please review this ref: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-choices to better understand how to deal with these complex column types.  The examples with Comboboxes will steer you in the right direction.  

I personally avoid them.  You can change the Choice type column to a a Single line of text (Slot) in Sharepoint without a loss of data.  Lookup type columns are more difficult to change and I simply bring in a second list and reference within Powerapps with the Lookup() function.  

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Filtering galleries by current user and list

Thank you I have taken your advice and I have made the process work.

 

Many thanks

KevB

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,036)