web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / compare a record value...
Power Apps
Unanswered

compare a record value form another sharepoint list and use that in IF function

(0) ShareShare
ReportReport
Posted on by 291

Hi Folks,

Using the below formula, in gallery item to fill color:

If(Filter(SPList1, ProjectName) = Filter(SPList2, ProjectName) && LookUp(SPList2, ThisItem.DataDeleted = "false", true), RGBA(255, 0, 0, 1), RGBA(141, 198, 63, 1))

 

Gallery is made using SPList1, and sequenced using ProjectName column.

I am not sure, what is going wrong here, please help.

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @IMathur 

    You cannot compare records in PowerApps.  You will need to compare to a column within each record.

    However, your formula is actually comparing a table to a table because you are using the Filter function for this, which returns a table.

    Is there a specific column you need to compare within each record, or perhaps you are just looking to see if a record exists?

  • IMathur Profile Picture
    291 on at

    Hi @RandyHayes 

     

    Thanks for the reply,

     

    Let me explain the scenario:

    List 1:

    Project Name | Project start Date | Project End Date | Project Status

     

    List 2:

    Project Name | Data Deleted

     

    Gallery uses List 1:

    Project 1  , Project 1 status, now i want the red/green dots based on data deleted column from List 2

       

    IMathur_0-1620937206355.png

     

     Please let me know if this helps to understand the issue

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @IMathur 

    Is Project Name the unique keys between the two lists, or is there some other identity that connects them?

  • Neha Profile Picture
    30 on at

    Hi @IMathur , 

     

    You can write this formula in the fill property of your circle icon -

    If(LookUp(SPList2, ProjectName =ThisItem.ProjectName).DataDeleted = false, red, green)

    Here LookUp will help to retrieve the first matching record from list 2 and .DataDeleted will fetch the value of DataDeleted column. ThisItem will get the current Row's record.

    You can also store project id column in list 2, it will make sure the data is unique and help you compare IDs in your lookup instead of project name.

     

    Thanks,

    Neha

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard