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
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 (3,075)