cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Distinct and filter from one gallery to the other one

Hi!

 

I am new to PowerApps and I would like to get some help..

 

So I have a sharepoint database where I store the submission for my 5 departments.

Now the problem is in my SP there are a lot of duplicates records each line for example

 

Department NameProject NameStatus
Team Axyon going
Team Bvbon hold
Team Aghin progress
Team Adfon going
Team Cadon hold

 

What I want to achieve in powerapps I've created 2 galleries one is on the left and right sides.

On the left side, I only can see the department name listed and If I click one of the departments then I will see the details on the right hand side gallery project name status.. 

 

The problem is on the left hand side gallery there are so many duplicates such as below table for example Team A.

 

I know I may need to use the distinct with the filter but it doesn't work to me

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

On the first Gallery1 Items:

Distinct(Datasource,Department)

 

On the second Gallery items:

Filter(Datasource,Department=Gallery1.Selected.Result)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
Super User III
Super User III

On the first Gallery1 Items:

Distinct(Datasource,Department)

 

On the second Gallery items:

Filter(Datasource,Department=Gallery1.Selected.Result)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

You saved the day!! thank you!!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (14,701)