cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MaxEgn
Level: Powered On

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
Dual Super User

Re: Select Record, THEN also Include all previous records in Gallery

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
Dual Super User

Re: Select Record, THEN also Include all previous records in Gallery

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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,641)