cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gazzo1967
Impactful Individual
Impactful Individual

HELP what am i missing?? Visible label Condition

Hi All

I have a label that i would like to appear based on a condition

so my scenario is

i have to people selection Comboboxes

if they contain duplicate names the label should appear but it is appearing when both fields are empty.

my formula is

If(
DataCardValue8.Selected.DisplayName = DataCardValue7.Selected.DisplayName,true,
IsEmpty(DataCardValue8.Selected.DisplayName = DataCardValue7.Selected.DisplayName),false)

 

Is my logic flawed?

Help Gratefully received 🙂
Gary

12 REPLIES 12
gazzo1967
Impactful Individual
Impactful Individual

@BCLS776 
it looks like its a circular formula

if box A is blank and Box B is blank then the formula is correct they are both blank so its true
but i am trying to say if they are blank that is false
HEADACHE beginning lol

I have done a very nasty hack but it works
I have just created another label that covers the original with same colour as background and used it to cover if the fields are blank

Gary



Hi Gary, I got this version to work on a test app - order of operations was biting us:

If(
    IsBlank(DataCardValue8.Selected.DisplayName) && IsBlank(DataCardValue7.Selected.DisplayName),
    false,
    DataCardValue8.Selected.DisplayName = DataCardValue7.Selected.DisplayName,
    true,
    false
)
_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
gazzo1967
Impactful Individual
Impactful Individual

@BCLS776 

DOH!!!!!!!
Of course
you have to follow the logic of what you want to achieve!!!
Unbelievable how sometimes we look for the complex solution!!

thank you for the help
that gave me the basis to complete the whole form (5 more fileds to compare)
All working now 🙂

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,636)