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 / Select Record, THEN al...
Power Apps
Answered

Select Record, THEN also Include all previous records in Gallery

(0) ShareShare
ReportReport
Posted on by 39

Hello All, 

 

I am trying to use this concept for a lot more than just highlight cells, but this is the best way to get the basics of it. 

 

So this picture shows the Sharepoint list I am displaying in a Gallery. 

 

How do I show the Selected record as I do currently (In orange), but then also Highlight all the Records prior to it in yellow? This would be a little bit like a timeline. 

 

Thanks!

Forum 1.PNG
Categories:
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @MaxEgn 

     

    Use If(ThisItem.IsSelected,Orange,If(ThisItem.ID<Gallery19.Selected.ID,Yellow,White))

     

    assuming items are sorted based on ID

     

    You can replace ID with your unqiue number field

     

    adjust the colors

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard