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 / Gallery Unique Combina...
Power Apps
Unanswered

Gallery Unique Combination selection

(0) ShareShare
ReportReport
Posted on by 42

I have 6-7 columns in a list with Unique ID column : IDs.

Now, my question is if we have more than one record of IDs with same value, then gallery should show only the one with suffix User().email and not _Blank .. 

Can anyone please help me with the same ? 

List 2 :

UIDs  Status Edited By
 Ex 1 : 11_Open BID _ BLANK

 Ex 2  : 11_Ongoing BID_User().email

 

Categories:
  • v-yangar-msft Profile Picture
    Microsoft Employee on at

    Hi @TanviMehta ,

     

    Thanks for your information.

    Based on your description, whether you want to filter the column 'Status Edited By', if IDs have the same value, just remove duplicate records, then show the record which the column 'Status Edited By' has suffix User().email. If i didn't have any misunderstanding, you can try to do as below:

     1.You should use distinct function to remove duplicate records of Column 'IDs' :

    Distinct(SuffixUser,IDs)

    //SuffixUser is my SharePoint list name

     

    2.Use ForAll function to get the table which includes the Unique IDs and judge if the rows are more than one, filter the "Blank" in Column 'Status Edited,otherwise, don't filter the "Blank" in column 'Status Edited By' :

    ForAll(Distinct(SuffixUser,IDs),If(CountRows(Filter(SuffixUser,IDs=Result))>1,Filter(SuffixUser,IDs=Result,!("Blank" in 'Status Edited By')),Filter(SuffixUser,IDs=Result)))

     

    3. Use Ungroup to get the final result:

    Ungroup(ForAll(Distinct(SuffixUser,IDs),If(CountRows(Filter(SuffixUser,IDs=Result))>1,Filter(SuffixUser,IDs=Result,!("Blank" in 'Status Edited By')),Filter(SuffixUser,IDs=Result))),"Value")

    //Because the value of ‘Filter(SuffixUser,IDs = Result,!("blank" in 'Status Edited By'))’ include multi tables, I use Ungroup function to put them in one table.

    Finally, you can the result as below:

    List in my side:

    v-yangar-msft_1-1612511050388.png

     


     

     

    And the result in my gallery:

    v-yangar-msft_0-1612511029269.png

     


     

     

    Hope it helps!


    BR,

    Arrow

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard