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!

Brilliant!

 

Thanks for your help!!

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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