cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gabrielrosa94
Helper I
Helper I

If two lookup are found visible = false

Guys, I need a help. 

 

I need to hide a button when two selected values are found at this "EXCESSÕES" list. 

 

I just cant deal with two lookups functions. Is that right to think in lookup function? 

 

 

SETP.png

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@gabrielrosa94 

Sure thing...you can certainly use both lookups in your Visible property.  

Unfortunately, I am not completely following what your condition is.  It seemed at first that you were saying two value in the "EXCESSÕES" list, but then your photo seems to indicate a value in "EXCESSÕES" and a value in Cliente.

 

So...I'll give a generic scenario.  

 

Visible property:

(IsBlank(Lookup(Cliente, ID=someIDReference, ID)) || IsBlank(Lookup("EXCESSÕES", ID=someIDReference, ID))

 

If there is a value in Cliente, the IsBlank will return false.  

If there is a value in "EXCESSÕES", the IsBlank will return false.  

 

We OR (||) the two together and in order for Visible to be true:

    Visible            Cliente Lookup           EXCESSÕES Lookup

        T                          T                                      T

        T                          F                                      T

        T                          T                                      F

        F                          F                                      F

 

 

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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

@gabrielrosa94 

Sure thing...you can certainly use both lookups in your Visible property.  

Unfortunately, I am not completely following what your condition is.  It seemed at first that you were saying two value in the "EXCESSÕES" list, but then your photo seems to indicate a value in "EXCESSÕES" and a value in Cliente.

 

So...I'll give a generic scenario.  

 

Visible property:

(IsBlank(Lookup(Cliente, ID=someIDReference, ID)) || IsBlank(Lookup("EXCESSÕES", ID=someIDReference, ID))

 

If there is a value in Cliente, the IsBlank will return false.  

If there is a value in "EXCESSÕES", the IsBlank will return false.  

 

We OR (||) the two together and in order for Visible to be true:

    Visible            Cliente Lookup           EXCESSÕES Lookup

        T                          T                                      T

        T                          F                                      T

        T                          T                                      F

        F                          F                                      F

 

 

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

Is that what I've been looking for! 

 

Thank you, friend. 

 

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (2,056)