web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : CQgu8bnbBHMLpmxkmpFzOr
Power Apps - Building Power Apps
Unanswered

Help with using visible IF function for two values

Like (0) ShareShare
ReportReport
Posted on 15 Mar 2020 03:45:41 by 30

Hello,

 

I have a "choice" datacard value field that has three options. The selectable choices are as follows:

No
Standard Depth/Velocity Confirmation
Full Velocity Profile (Flow >5in / 12.7cm)

 

I am trying to get a portion of my form to visible if EITHER "Standard Depth/Velocity Confirmation" OR "Full Velocity Profile (Flow >5in / 12.7cm)" is selected.

 

I am having trouble getting this functionality. So far I have tried the following:

If((DataCardValue36.Selected.Value = "Standard Depth/Velocity Confirmation") && (DataCardValue36.Selected.Value = Full Velocity Profile (Flow >5in / 12.7cm)), true, false)

 This results in the portion of the form not being visible at all and does not change for either option. Am I doing something obvious wrong? Thanks for any help in advance. 

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    on 16 Mar 2020 at 05:51:29
    Re: Help with using visible IF function for two values

    Hi @SamR ,

    If following your logic, the formula should look something like this, just need to satisfy one of two conditions.

     

    If(DataCardValue36.Selected.Value = "Standard Depth/Velocity Confirmation" || DataCardValue36.Selected.Value = "Full Velocity Profile (Flow >5in / 12.7cm)", true, false)

     

    @Drrickryp's code is more concise, the code self returns a boolean value, so IF function is not required, directly check that the "NO" option is not selected.

    Hope this helps.

    Sik

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 15 Mar 2020 at 19:52:13
    Re: Help with using visible IF function for two values

    @SamR 

    In the Visible property of the items in question, you should be able to dispense with the If() function since the statement

     

    DataCardValue36.Selected.Value <> "No"

     

    reduces to either true or false.   To test  make DataCardValue36.Selected.Value the Text property of a label on the screen and adjust the Visible property accordingly.

  • SamR Profile Picture
    30 on 15 Mar 2020 at 18:53:36
    Re: Help with using visible IF function for two values

    Thanks @Anonymous  for the input! I gave it a try but unfortunately no luck. I will keep looking for a solution. It can't be that complicated haha. 

  • Community Power Platform Member Profile Picture
    on 15 Mar 2020 at 06:48:15
    Re: Help with using visible IF function for two values

    @SamR 

    Try

    If((DataCardValue36.SelectedItem <> "No", 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete