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 / Dynamically Change Ico...
Power Apps
Answered

Dynamically Change Icon Based on Value

(0) ShareShare
ReportReport
Posted on by 20
Hello,
 
I am trying to display an icon based on the value of an item in a table.
 
I am wanting to display either a check, clock, or error icon based on if the status is Completed, InProgress, or Failed respectively.
 
How can I accomplish this? I have tried a switch function, but it would not work. 
 
I have also tried this here but it was also not working:
If(
    "Completed" in cmpALMStatus.LastBuildStatusTest,
    Icon.Check,
    If(
        cmpALMStatus.LastBuildStatusTest = "InProgress",
        Icon.Clock,
        Icon.Error
    )
)
 
Any help would be greatly appreciated!!
Categories:
  • Suggested answer
    CU18061035-1 Profile Picture
    Microsoft Employee on at
    hey
     
     
     
    you can try this with a switch:
    Switch(
        cmpALMStatus.LastBuildStatusTest,
        "Completed", Icon.Check,
        "InProgress", Icon.Clock,
        "Failed", Icon.Error,
        
    )
    
    if it helped please mark as verified,
     
     
    cheers

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard