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 / Hide Icon When column ...
Power Apps
Answered

Hide Icon When column chart is visible

(0) ShareShare
ReportReport
Posted on by 522

I would like to hide the + icon when column chart has bars  and show when column chart is empty. Similarly, I would like to show edit icon when bars are visible on column chart and hide when column chart is empty.

 

I tried using this code on Visible property. If(IsBlank(DataCardValue41.Text),true,false) but did not succeed.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Nikhil2 

    What is the significance of DataCardValue41 ??

    Also, what is the Items property of your chart?

  • Nikhil2 Profile Picture
    522 on at

    @RandyHayes  Datacardvalue41 is my form which i am using as New Form when i click on +. I have three fields 41,42,43

    Items Property : LastN(Filter(SharePoint List ,Title=variable.Title)). SharePoint List 

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Nikhil2 

    Doesn't really explain the significance of the datacard in relation to the formula you provided.

    However, your Visible property for the Icon should be based on the chart, and thus the formula should be:

    CountRows(Filter(SharePoint List ,Title=variable.Title) > 0

     

    Not entirely clear why you have a LastN function but are not providing the number of records for the function either.

  • Nikhil2 Profile Picture
    522 on at

    @RandyHayes 

    Significance of Datacard is basically to check if value is empty or not, if empty show + else edit icon.

    But if possible to check directly the chart is empty would be useful.

     

    I tried using the above formula the Visible property of icon 

     

    CountRows(Filter(SP List,Title=variable.Title) > 0)

     

     Not working, Invalid argument type expecting number, date time and The function countrows has some invalid arguments.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Nikhil2 

    You typed it incorrectly, and I omitted a closing paren as well...the formula should be:

    CountRows(Filter(SharePoint List ,Title=variable.Title)) > 0

     

  • Nikhil2 Profile Picture
    522 on at

    @RandyHayes I tried so it applying in the opposite way like when chart is empty, the icon is hidden and chart is visible the icon is shown.

    Nikhil2_0-1660832793870.pngNikhil2_1-1660832824046.png

     

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Nikhil2 

    Just adjust the formula to meet your logic.

     

    i.e.

     

    CountRows(Filter(SharePoint List ,Title=variable.Title)) = 0

     

    The above will be true when there are no records.

     

     

     

    CountRows(Filter(SharePoint List ,Title=variable.Title)) > 0

     

     The above will be true when there are records.

  • Nikhil2 Profile Picture
    522 on at

    @RandyHayes That worked as expected ! Thank you.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard