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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,855)