cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kosenurm
Post Partisan
Post Partisan

URGENT - Concat and distinct in gallery

Hi there, 

 

I have a gallery whereby for the gallery Items I am using

 

 

GroupBy('DVTableName', "new_rolename", "otherdata")

 

 

In one of the labels in the gallery, I am then using 

 

ThisItem.new_rolename

 

 

What I now need to do is show another column's data based on this GroupBy in a label in the gallery. I can get some values by using the below in this label

 

 

Concat(ThisItem.otherdata, 'Centre')

 

 

But what I want is the distinct values in this Centre column (there are three unique values, but across hundreds of rows).

 

I am trying 

Concat(Distinct(ThisItem.otherdata, 'Centre'), Result & ";")

 

and this 'works, but is only bringing back one of the values in the Centre column, where there are actually three distinct values.

 

Any help please to get the other two values in this label?

 

Thanks

K.

 

1 ACCEPTED SOLUTION

Accepted Solutions

@Kosenurm ,

That is the piece of missing information - GroupBy is subject to Delegation limits, so it will only act on the first xxxx (delegation number) of records.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Kosenurm ,

I just ran this on a test list here - Items of the Gallery

WarrenBelz_0-1656675534148.png

and the Label Text - both are exactly the same as yours

WarrenBelz_1-1656675550398.png

and get the expected result. 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

Thanks. When I do exactly this, it is only brining back 1 value in the second screenshot. 

 

There are just over 15k rows in the Dataverse table. 

 

Any suggestions? Thanks for your help so far.

 

K.

@Kosenurm ,

That is the piece of missing information - GroupBy is subject to Delegation limits, so it will only act on the first xxxx (delegation number) of records.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,086)