cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Select Record, THEN also Include all previous records in Gallery

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User II
Dual Super User II

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.

View solution in original post

1 REPLY 1
Dual Super User II
Dual Super User II

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.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,289)