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 Automate / Help PLEASE! How to co...
Power Automate
Unanswered

Help PLEASE! How to compare string with Lookup variable?? - linked tables

(0) ShareShare
ReportReport
Posted on by 38

Hi,

 

I have 2 tables.. basically 1 table is the Procurements, and the other one is the Projects table.

 

What I am trying to do is to find the amount of Procurements that are related to a Project and update the Project table to add the Total.

aldirjr_0-1646052334900.pngaldirjr_1-1646052519104.png

 

the Procurements table, has a Lookup value that has a link with the name of the project... 

 

aldirjr_4-1646050957831.png

aldirjr_5-1646050983290.png



I tried to compare the Lookup value from the Procurements table, with the Project name of the Project table and I can't find a way to compare both of them!


Basically, I listed the rows for each table, and then I did an "apply to each" within another "apply to each" (a loop inside another loop) to compare values, and "incremented" the total amount of Procurements in the Project table.

aldirjr_0-1646050685298.pngaldirjr_1-1646050714437.png

 

aldirjr_2-1646050836525.png

I dont know what I have to put in the conditions... compare what to what...

 

 

When I do compare, the Project Name (from Projects) come as "Webpage version 2" and the Projects name from Procurements come as 't1d38e52-0c04-ea11-a722-103d3a794413'

 

 

Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at

    Hi @aldirjr ,

     

    What are you trying to accomplish here ?

     

    Thanks

  • aldirjr Profile Picture
    38 on at

    Hi.. I thought I was clear haha, my bad..

     

    To summarize.. I want to see if a project has any procurement associated with it (and the total of associations).

     

    Some records in the Procurement table, has a "link" to the Project table (which is a lookup value, not a name - as you can tell by the pictures)...
    and I have a table called Projects..

     

    but when I get the Projects name in the Procurement table, I get a code, not the project name or the project id... and I want to compare this, to the Project Name from the Project table, but it is a string! so I cant compare both of them

  • MJain Profile Picture
    2,450 on at

    I think you need to have a rollup field created on Project entity and set it as sum of column that you want to aggregate.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard