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 Apps / Syntax needed - I am L...
Power Apps
Answered

Syntax needed - I am Lost!!!!

(0) ShareShare
ReportReport
Posted on by 6
Hello
 
I am new to power apps and the power fx language and I am in need of a formula. I hope someone can help. I want to fill this circle with a colour based on conditions. In this case If the value number of welds actually inspected (6) in this case) is greater than or equal to number of items for inspection (2 in this case), I want to turn green if its true and red if it is false. But I keep getting errors. I am pulling my hair out. 
 
 
  • Suggested answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    hey
     
     
    can u try this:
    If(
        Value(DataCardValue12.Text) >= Value(DataCardValue11.Text),
        Color.Green,
        Color.Red
    )
    
    if it was helpful please mark as verified answer
     
     
    cheers
  • KM-25111106-0 Profile Picture
    6 on at
    That works an absolute treat. Thank you so much. One last query. In gallery, I want to add the outcome of that so you can see it at a glance. I try the same formula but it either colours them all red or green and not specific to the record. Any help?
     
  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    hey
     
     
    in a gallery u need the ThisItem reference
     
    so you can try this:
    If(
        Value(ThisItem.NumberOfWeldsActuallyInspected) >= Value(ThisItem.NumberOfItemsForInspection),
        Color.Green,
        Color.Red
    )
    you might need to rename the column name.
     
     
    please also make sure, to mark the answer as verified,
     
     
     
    cheers
  • KM-25111106-0 Profile Picture
    6 on at
    Hello again
     
    Hope I marked this solution correctly for you.
     
    Can I ask another thing?
     
    I wanted to be able to calculate some Sums based on a selection value. In this instance, I want to select the different contract no, the two boxes below populate with adding up the respective values from the galleries for that contract number. I am so new to this. Any help is greatly appreciated. 
     
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    What do you want to sum Here?
     
    I only see one contract Number

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard