cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
KevB
Level: Powered On

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
Super User
Super User

Re: Filtering galleries by current user and list

Hi @KevB,

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
Super User
Super User

Re: Filtering galleries by current user and list

Hi @KevB,

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

KevB
Level: Powered On

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,557)