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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Gallery duplicates

(0) ShareShare
ReportReport
Posted on by 162

Good day!

 

asking for help regarding to display gallery .

 

scenario: What I want to do is to count duplicate year with the same person and make as one(1) . please see image below.

 

gAL.png

 

thank you and advance

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @DHAGZ ,

     

    Please try:

    ForAll(Distinct(Table({LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2023"},
    {LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2022"},
    {LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2023"},
    {LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2023"},
    {LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2022"})
    ,YEAR),{LASTNAME:"A",FIRSTNAME:"B",MI:"S",YESR:Result,COUNT:CountIf(
     Table({LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2023"},
    {LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2022"},
    {LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2023"},
    {LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2023"},
    {LASTNAME:"A",FIRSTNAME:"B",MI:"S",YEAR:"2022"}),YEAR=Result
    )})

    vdezhilimsft_0-1673504364934.png

     

    Best Regards,

    Dezhi

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard