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 Apps
Answered

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:
  • 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

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard