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 III
Super User III

@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

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@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

View solution in original post

Brilliant!

 

Thanks for your help!!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (75,740)