cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Channah
Helper III
Helper III

Visible Function help

Hi there 

 

I have an app where parts are placed damaged from tools. 

 

I have set up the lines as shown in picture. 

 

I would like to set each item to be visible based on what number is shown in the drop down menu highlighted yellow. 

 

the menu shows '1' only line 1 available. menu shows '3' then line 1,2 & 3 is available. 

 

Current code: 

If(DataCardValue344.Selected.Value = "1" ,true)

This works to hide line and only show it when value selected = 1

 

How do I make this work to show lines 1,2,3 when value selected = 3 ? 

 

example I want something like this.... 

If(DataCardValue344.Selected.Value = "1" Or "2" Or "3",true)

 

Thanks in advance

 

CH

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Channah 

You might want to consider do a little compare on the value.

 

So, for items that should be visible for 1, set your visible property to:

   Value(DataCardValue344.Selected.Value) > 0

And for items that should be visible for 2, set it to:

   Value(DataCardValue344.Selected.Value) > 1

Etc...

That should give you what you are looking for.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@Channah 

You might want to consider do a little compare on the value.

 

So, for items that should be visible for 1, set your visible property to:

   Value(DataCardValue344.Selected.Value) > 0

And for items that should be visible for 2, set it to:

   Value(DataCardValue344.Selected.Value) > 1

Etc...

That should give you what you are looking for.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Brilliant!

 

Thanks for your help!!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,065)