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 / Checking which record ...
Power Apps
Unanswered

Checking which record was first, and next in turn

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey, I'm trying to create a logic in the application that would show if a record has the same title as another, which of these records was first, which was second, and so on for more than one record. I have a question, can I somehow mark it in the gallery?

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Anonymous ,

    You can add a TextInput field onto your screen that will capture Title column name.

    Besides the text input field you can add a button that will show gallery with filtered items from the list. On Select property of this button you can set a variable - Set(varGalShow, true)

    OnChange/OnSelect property of TextInput add - Set(varGalShow, false)

    Below that add a gallery with visibility = varGalShow and items property -

    Sort(Filter(SPList, Lower(Title) = Lower(TextInput1.Text)), ID, Ascending) -> This will show previously created entries first.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I already have a gallery created, I just want to mark in the gallery next to the title that this record was added first, and the next one was added, for example, the second one. I just want to mark it somehow

  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @Anonymous ,

    I assume you are using SharePoint here - try this in the Items of the gallery

    With(
     {
     wFirst: 
     AddColumns(
     GroupBy(
     Sort(
     SPListName,
     ID,
     Descending
     ),
     "Title",
     "Data"
     ),
     "ID1",
     First(Data).ID
     )
     },
     AddColumns(
     SPListName,
     "FirstItem",
     !IsBlank(
     LookUp(
     wFirst,
     ID = ID1
     )
     )
     )
    )

    and put a checkbox in the Gallery with the Default

    ThisItem.FirstItem

     

    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

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey, thanks for your answer, but I have a question, because this way I can only show which item was first, right? and I would like to display next to each record which item in turn.

  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @Anonymous ,

    It will be the ones directly underneath the item with the checked value (they are all sorted in creation date descending within each group of matching Title values). 

     

    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

     

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard