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 / Icon visible on last item
Power Apps
Unanswered

Icon visible on last item

(0) ShareShare
ReportReport
Posted on by

I have a icon that should appear on the last item of a gallery but it will only work for the first 2 items. When I click the icon to add patch and add a new item the first time it works as planned but not then I click the icon for a second time.

I added a picture as reference.

kingy61422_0-1676321926261.png

The add icon Visible property is: ThisItem.ID=Last(AllCollection).ID

Is there a way I can have my icon appear only on the last even after adding items?

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @kingy61422 ,

     

    Could you please show me the icon's OnSelect property?(When I click the icon to add patch and add a new item...)

     

    Best Regards,

    Bof

     

  • kingy61422 Profile Picture
    on at

    This is my code to patch:

    kingy61422_0-1676382530253.png

    This is my code to add a new line after the patch:

    kingy61422_1-1676382564732.png

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @kingy61422 ,

     

    Please try this formula to add a new line:

    Set(NewID,Max(AllCollection,ID)+1);
    Collect(
     AllCollection,
     {
     ID:NewID,
     LineChalkNumber:"",
     LnkePass:"",
     LineTOT:""
     }
    )
     

     

    Best Regards,

    Bof

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard