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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering duplicatish ...
Power Apps
Answered

Filtering duplicatish items

(0) ShareShare
ReportReport
Posted on by 46

Hi community. 

 

in my app i got a gallery displaying items from a sharepoint list. in my sharepoint list i got columns like MachineType, MachineId and Cycle and want to filter the data that way, that only 1 item of each MachineType-MachineId-Cycle Combination is displayed, ideally the last one added. do you have any idea how to accomplish that?

 

Help much appreciated, thanks in advance ❤️

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,737 Most Valuable Professional on at

    Hi @KAdler ,

    Try

    GroupBy(
     Sort(
     SPList,
     ID,
     SortOrder.Descending
     ),
     MachineType,
     MachineId,
     Cycle,
     Grouped
    )
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Kai Adler Profile Picture
    46 on at

    @WarrenBelz: Thanks for your quick reply. Looking good so far, but i can't group by Cycle. I guess it's related to it being at selection type column in the SP list. Neither Cycle not Cycle.Value got accepted. Is there any workaround?

  • Kai Adler Profile Picture
    46 on at

    Found a workaround by using AddColumns to add the Value of the choice column to the data. Afterwards i can GroupBy that new column. 🙂

  • WarrenBelz Profile Picture
    153,737 Most Valuable Professional on at

    Hi @KAdler ,

    Yes that is exactly the workaround - you can only group by Text columns.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 248 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 209 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard