cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ckserra
Helper III
Helper III

Highlight gallery if data appears in separate data source

Hi everyone.

 

I have two data sources, GameLists and TTDDefects.  All my data pulls from GameList and any formdata submitted goes to TTDDefects.  I am trying to shade in an item in a  Gallery once the GameID number appears on both lists.  I have tried "If(ThisItem.GameID = TTDDefects.GameID,Red,Blue)" but get an error saying a number and table cannot be compared.  

 

Thanks in advance!

 

Chris

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Dual Super User
Dual Super User

@ckserra ,

Try this approach:

 

If(
  IsBlank(LookUp(TTDDefects,GameID=ThisItem.GameID)),
  Red,
  Blue
)

 

Depends on number of items in Gallery, this approach can be a little bit slow.

Hope it helps !

View solution in original post

3 REPLIES 3
gabibalaban
Dual Super User
Dual Super User

@ckserra ,

Try this approach:

 

If(
  IsBlank(LookUp(TTDDefects,GameID=ThisItem.GameID)),
  Red,
  Blue
)

 

Depends on number of items in Gallery, this approach can be a little bit slow.

Hope it helps !

@gabibalaban Thats perfect, thank you very much!

 

Chris

ckserra
Helper III
Helper III

@gabibalaban Is there a way to have it do what you suggested and still be able to highlight if selected?  I use this "If(ThisItem.IsSelected , RGBA(233,150,122,1))" in another instance and it works well.

 

Thanks again!

Chris

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,859)