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 / Comparing 2 columns in...
Power Apps
Answered

Comparing 2 columns in Gallery

(0) ShareShare
ReportReport
Posted on by 95

Hi,

I have a gallery app. Where I have added a button. Now I want to add the functionality to compare col A with col B. After all the comparisons if in any row col A value > col B value then display the text "Change the value of A" otherwise display "All Good".

Categories:
  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @MAli_Ch 

     

    Place a label inside the gallery and try this formula,

     

    If(ThisItem.ColA > ThisItem.ColB, "Change the value of A", "All Good")

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • Verified answer
    charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    charlessexton_0-1700219635205.png

    If(ThisItem.'Col A' > ThisItem.'Col B', "Change the value of A", "All good")

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 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard