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 / Visible if statment no...
Power Apps
Answered

Visible if statment not working

(0) ShareShare
ReportReport
Posted on by 301

Hi i have a forms app where i have a If Statement on the visible function of several datacards.

 

On the start page of the app the users select the vehicle and the service type 250, 500, 1000 or 2000 and that number is displayed on a label on the following screen, so i set the following if statement on the visible part of the datacard as if they select 2000 they should see all the datacards and if they select 500 for example they should only see the 250 and 500 parts, however it is not working,

 

To show all i would use

 

If(Value(DCVSMUTop.Text) = 250 || 500 || 1000 || 2000, true,false)

 

To show just 500 i would use

 

If(Value(DCVSMUTop.Text) = 250 || 500, true,false)

 

PS. DCVSMUTop is the name of the label on the top part of the screen

 

Could someone tell me where im wrong?

 

Thanks

 

 

Categories:
  • pat_aus Profile Picture
    25 on at

    Hi ShareITAutomate,

     

    Try the following

     

    If(Value(DCVSMUTop.Text) = 250 || Value(DCVSMUTop.Text) = 500 || Value(DCVSMUTop.Text) = 1000 || Value(DCVSMUTop.Text) = 2000, true,false)

     

    If(Value(DCVSMUTop.Text) = 250 || Value(DCVSMUTop.Text) = 500, true,false)

     

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ShaneITAutomate Try this,

    With({varDCVSMUTop:Value(DCVSMUTop.Text)},
     varDCVSMUTop = 250 || varDCVSMUTop = 500 || varDCVSMUTop = 1000 || varDCVSMUTop = 2000
    )
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ShaneITAutomate 

    As @CNT shows in his formula, it is almost never necessary to use an If() statement with Visible when the formula by itself reduces to either true or false. 

  • ShaneITAutomate Profile Picture
    301 on at

    ignore first thing monday had a brain fart

  • ShaneITAutomate Profile Picture
    301 on at

    ignore first thing monday had a brain fart

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard