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 / Change Icon color base...
Power Apps
Answered

Change Icon color based on a choice value

(0) ShareShare
ReportReport
Posted on by 16

Hi

I have dropdown called as Financial Impact with values - Low, Medium, High & Very High in SP List

I have a clearcollect on my gallery screen and collection name is germcollection

In Gallery screen, i have a search button referencing the collection and fields are displayed in Gallery, based on search provided.

In the Gallery view, where i have the value of Financial Impact displayed as Text (Low), i want to display a icon instead of text for the Financial Impact. If the value is Low, icon color should be Green, Medium - Brown, High - Red & Very High - Dark Red.

 

I tried adding an icon circle & gave the following in the Fill properties of Circle:

If(ThisItem.'Financial Impact'.Value="Low",Color.Green,Color.Red)

This doesnt work...

Can someone please help me in getting this achieved. 

 

Thank you.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @saialkesh ,

    You do not need the Value.

    If(
     ThisItem.'Financial Impact'="Low",
     Color.Green,
     Color.Red
    )

     

    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.

     

  • saialkesh Profile Picture
    16 on at

    Dear @WarrenBelz 

     

    Thank you for the quick revert.

    The reason i included Value is 'cos the field is a dropdown set of values. If i type the syntax without values, it still doesnt work.

    I also tried the following:

    If(

    "Low" in ThisItem.'Financial Impact'.Value, Green,

    "High" in ThisItem.'Financial Impact'.Value, Red,

    Black

    )

     

    but same result....it doesnt work. I apply the following expression in the fill property of the icon

     

    Appreciate your help

  • Verified answer
    WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    OK Thanks @saialkesh ,

    If you put in a label with

    ThisItem.'Financial Impact'.Value

    do you see the value you are expecting? You could also try

    Switch(
     ThisItem.'Financial Impact'.Value,
     "Low", Green, 
     "Medium", Brown, 
     "High", Red
     "Very High", DarkRed
    )

    Your code should work although Fill is not the colour of the icon, it is the background.

     

    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.

  • saialkesh Profile Picture
    16 on at

    Thank you. This works 🙂

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard