web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Distinct a GroupBy on ...
Power Apps
Unanswered

Distinct a GroupBy on one dropdown

(0) ShareShare
ReportReport
Posted on by

I got a GroupBy on my OnStart:

GroupBy( TableWithTheDataSource; "a";"b";"c";"d";"e";"NameOfTheColumn")

 

So I want to Distinct(NameOfTheColumn;Choices)

 

How I can do that?

 

Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Put something like this into your dropdown Items:

     

    Distinct(myGroupedTable, NameOfTheColumn).Result

     

    myGroupedTable can be a collection resulting from your GroupBy, or it can be the return from the GroupBy itself.

  • Gorilla_8 Profile Picture
    on at

    @BCLS776 

     

    Thanks for the help!

    I got this:

    Gorilla_8_0-1628181473649.png

     

    And this on my "Items":

    Gorilla_8_1-1628181500574.png

     

    So, why he didn't show:


    123.gif





  • BCLS776 Profile Picture
    8,994 Moderator on at

    @Gorilla_8 wrote:

    @BCLS776 

     

    Thanks for the help!

    I got this:

    Gorilla_8_0-1628181473649.png

     

    And this on my "Items":

    Gorilla_8_1-1628181500574.png

     

    So, why he didn't show:


    123.gif






     

    That issue is probably to do with grouping by five different columns (a,b,c,d & e in your example). Try grouping by one column to start, so you can see if you are getting the collection you want.

  • Gorilla_8 Profile Picture
    on at

    @BCLS776 

     

    The same result with one or two columns

  • BCLS776 Profile Picture
    8,994 Moderator on at

    When grouping by one column, can you view the collection and verify that the column named NameOfTheColumn contains values that are not nested records? See example:

     

    BCLS776_0-1628183301100.png

    Distinct on this collection produces this:

    BCLS776_1-1628183443598.png

     

     

     

  • Gorilla_8 Profile Picture
    on at

    @BCLS776 

     

    Yes, I can  see this:

    All the column have multiple names, but one column has two differents values

    Gorilla_8_1-1628183741486.png

     

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    I'm on my phone, so it's tough to see, but that does not look like a collection grouped by a single column. Are you using the right one?

  • Gorilla_8 Profile Picture
    on at

    @BCLS776 

     

    Yes, I put this on my OnStart:

    ClearCollect(ColecaoGSL;GroupBy( TabelaAuxiliar; "COORD_x002e__x0020_ADILIS";"TST_x0020_ADILIS";"AUDITOR_x0020_01";"AUDITOR_x0020_02";"AUDITOR_x0020_03";"NomeDoAvaliadorGSLTST"))
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Can you please modify your GroupBy so it groups by only one column? The collection will look much different (and work better) if you can do that. 

  • Gorilla_8 Profile Picture
    on at

    @BCLS776 

     

    Same result:

    123.gif

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard