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 / Avoid a duplicate colu...
Power Apps
Answered

Avoid a duplicate column in sharepoint list and countRows of their values need to display into a gallery

(0) ShareShare
ReportReport
Posted on by 599

Hi all,

I have a doubt. I have a SP List with three coulmns RecipientName , Function and Type.

Here, ReciepientName is Single line of Text, Function is Lookup and Type is Single line of Text.

 

Now what i want is, i get a values from sp list and display on gallery.

In that gallery i need to do a Avoid duplicate Recipient Value and want to show thier function and Countrows of Type column.

 

This is my SP List,

RecipientNameFunctionType
DhineshSharepointHelpful resource
DhineshSharepointInnovative
SureshJavaHard Worker
SureshJavaNew Perspective
DaniMobile BankingHelpful resource
Rajan.netHard Worker

Now i want to get a details from this list and need to display into a gallery.

 

i want a gallery like this,

Recipient NameFunctionCountRows(Type)
DhineshSharepoint2
SureshJava2
DaniMobile Banking1
Rajan.net1

This is what i need a Result.

 

In my gallary i want to avoid a duplicate values and then their Function finally i need a count of how many types they have.

This is possible? 

 

Thanks,

Dhinesh

Categories:
I have the same question (0)
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    Hi @Dhinesh28R 

     

    You can do this by having a GroupBy function add a gallery and have the

    Items = AddColumns(GroupBy(YourDataSource,"RecipientName","Details"),"Count",CountRows(Details))

     

    add three labels

    Label1 = ThisItem.RecipientName

    Label2 = First(ThisItem.Details).Function

    Label3 = ThisItem.Count

     

     

    rubin_boer_0-1613028713560.png

     

    Hope this is what you looking for

     
  • Dhinesh28R Profile Picture
    599 on at

    Thanks @rubin_boer Now its working man.

     

     

    Thanks,

    Dhinesh

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard