cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SumanthDundi7
Helper V
Helper V

Distinct filter item

Hi,

I am using SharePoint list with PowerApps with Parent Gallery and Child Gallery to show items as in the screenshot below. 

Items property of the ParentGallery is set to Distinct('Amazon Audit',Region)

Items property of the ChildGallery is set to Filter('Amazon Audit',Region=ThisItem.Result)

Output of my above logics are as in the screenshot. 

 

I would also like to avoid duplicates of Locker IDs. Please help me on how can I achieve this.

SumanthDundi7_0-1664188053227.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Drrickryp
Super User
Super User

@SumanthDundi7 

I suggest using GroupBy('Amazon Audit',"Region", "DATA") as the Items for the outer gallery.

For the subgallery Items property: Sort(Distinct(ThisItem.DATA,LockerID),Result)

and for the individual labels in the subgallery:

  • ThisItem.Result, (which would show the LockerID)
  • LookUp('Amazon Audit',Result=LockerID, Visits) and
  • LookUp('Amazon Audit',Result=LockerID, Market) 

 

An alternative without using GroupBy() would be to set your subgallery items property to 

Distinct(Filter('Amazon Audit',Region=ThisItem.Result),LockerID) and the individual labels would be the same as above.

View solution in original post

SumanthDundi7
Helper V
Helper V

Thank you so much @Drrickryp . 

View solution in original post

2 REPLIES 2
Drrickryp
Super User
Super User

@SumanthDundi7 

I suggest using GroupBy('Amazon Audit',"Region", "DATA") as the Items for the outer gallery.

For the subgallery Items property: Sort(Distinct(ThisItem.DATA,LockerID),Result)

and for the individual labels in the subgallery:

  • ThisItem.Result, (which would show the LockerID)
  • LookUp('Amazon Audit',Result=LockerID, Visits) and
  • LookUp('Amazon Audit',Result=LockerID, Market) 

 

An alternative without using GroupBy() would be to set your subgallery items property to 

Distinct(Filter('Amazon Audit',Region=ThisItem.Result),LockerID) and the individual labels would be the same as above.

SumanthDundi7
Helper V
Helper V

Thank you so much @Drrickryp . 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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