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 / Error comparing label ...
Power Apps
Answered

Error comparing label and datacardvalue (blank information)

(0) ShareShare
ReportReport
Posted on by 105

Hi,

I'm trying to compare a label with a datacardvalue, with the following scenario:

 

Gallery1 - Label1
Form1 - Datacardvalue1

Label2: If (Label1.Text = Datacardvalue1.Text; true; false)

 

"IF" command (label 2) works fine, if Label1 and / or Datacardvalue1 contain information. But if both are blank, the formula returns false.
Label1 indicates that the value is blank, but even though Datacardvalue1 is also blank, it indicates without value (empty).
Is there any way for Datacardvalue1 to indicates a blank value and therefore the command "IF" will be true?

 

Thanks,

Categories:
I have the same question (0)
  • Verified answer
    cds Profile Picture
    1,001 on at

    If(Label1.Text = Datacardvalue1.Text Or (IsBlank(Label1) && IsBlank(Datacardvalue1)), true, false)

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard