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 / Setting a button visib...
Power Apps
Answered

Setting a button visibility based on a Excel entry

(0) ShareShare
ReportReport
Posted on by 15

So basically I'm trying to make a button appear if a particular Excel entry is present, and hidden if the entry is absent. For example, let's say if John's name is present in an Excel column named "Name" then the button to navigate to the second page where the list is going to be displayed (as a gallery) appears. If his name is not present in the column, the button stays hidden.

Categories:
  • galos Profile Picture
    256 on at

    if you're using a gallery, make sure you're adding the button into the gallery and then one option you could do, is to go into the Visible property of the button and use code similar to this:

     

    If(IsBlank(ThisItem.'Name'),true,false)

     If the above doesn't work replace IsBlank with IsEmpty and see if that works

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @cfnor,

     

    If you want to check whether the name occurs somewhere in the column 'Name' you could use a CountRows() & Filter() within the Visible property of that button:

    //This will return true if a record with the correct name has been found
    CountRows(
     Filter(
     //Change the datasource and hardcoded value of "John" to you specific case
     Datasource, 
     Name = "John"
     )
    ) > 0

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • cfnor Profile Picture
    15 on at

    When I edit the Visible property from "true" to this formula, a delagation warning appears.

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @cfnor,

     

    Should you use the Excel Business connector, the Filter will be delegable and in this case the filter output should not return more than 2000 records. CountRows() is not delegable, meaning it cannot count 'higher' than 2000. In case of the OneDrive connector you will have to make sure that the Excel table does not contain more records than your Data Row Limit since it does not support delegation - see app settings (max 2000).

     

    Alternatively, you could use:

    !IsBlank( 
     LookUp(
     //Change the datasource and hardcoded value of "John" to you specific case
     Datasource, 
     Name = "John"
     )
    )

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard