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 / Make icon visible base...
Power Apps
Answered

Make icon visible based on value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello All,

 

Trying to make an icon only visibile if it meets certain criteria using the Visible function - but appears something is wrong with my syntax - anyone able to help? Not sure what im doing wrong there.

 

If( LookUp(
 '374 Staged',
 Track = "B211-1",
 Status.Value = "FULL"),
 If( ! IsEmpty(B211INBOUND) && IsEmpty(B211OUTBOUND),
 true,
 ),
 ),
 false
)

 

Categories:
  • WarrenBelz Profile Picture
    156,732 Most Valuable Professional on at

    @Anonymous ,

    All of that has to equal something - are you looking to see if at least one record matches? Something like this will return true or false depending if there is a matching record

    !IsBlank(
     LookUp(
     '374 Staged',
     Track = "B211-1" && 
     Status.Value = "FULL" &&
     !IsEmpty(B211INBOUND) && 
     IsEmpty(B211OUTBOUND)
     ).Track
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi - so your snip gets no error but it does not enable the icon to visible

     

    Currently i want it to check if B211-1 has a railcar on it that is "FULL" and if B211INBOUND has a selection but B211OUTBOUND does not - have the icon display ( an alert icon ) - hopefully all that makes sense?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Would this solution work?  

     

    if(
     LookUp(
     '374 Staged',
     Track = "B211-1", 
     Status.Value = "FULL") &&
     !IsEmpty(B211INBOUND) && 
     IsEmpty(B211OUTBOUND),
     DisplayMode.Edit,
     DisplayMode.Disabled
    )
  • Verified answer
    WarrenBelz Profile Picture
    156,732 Most Valuable Professional on at

    @Anonymous ,

    No - you are making a statement that results in a possible Record content (it will find and returnthe  first matching record with this criteria - hence testing if what it found is blank or not) - you need a statement that has to be either true or false - the other way is

    If(
     CountRows(
     Filter(
     '374 Staged',
     Track = "B211-1" && 
     Status.Value = "FULL" &&
     !IsEmpty(B211INBOUND) && 
     IsEmpty(B211OUTBOUND)
     )
     >=0
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

    Note you do not have to split the && here - all conditions need to be met before the button is enabled.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • WarrenBelz Profile Picture
    156,732 Most Valuable Professional on at

    Hi @Anonymous Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard