Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ayush_mriti
Helper I
Helper I

conditional formatting with Icons to show different colors

Hi All,

I am creating a report containing conditional formatting with Icons. 

In the screenshot, I am comparing prior Vs current. If the current is less than prior then M/M trend would show Green down arrow,  instead of Red arrow. In the calculation I used predefined icons name and convert then to Icon (screenshot attached). Can someone help me to change the arrows to different colors beside Red, Green or Grey. Or just have white color with a black boarder of arrow symbol.

ayush_mriti_0-1734622226226.png

 

thanks.

 

 

 

1 ACCEPTED SOLUTION
Bibiano_Geraldo
Super User
Super User

Hi @ayush_mriti ,

Update your measure for something like this:

Trend Value = 
SWITCH(
    TRUE(),
    [Current] < [Prior], -1,   -- Return -1 if Current is less than Prior
    [Current] > [Prior], 1,    -- Return 1 if Current is greater than Prior
    [Current] = [Prior], 0     -- Return 0 if Current equals Prior
)

 

Now select your desired measure in field pane to format, and choose Icons as conditional formatting:

Bibiano_Geraldo_0-1734626818759.png

Format style: Rules
Field based on: Trend value.
Icon layout: choose your prefered

Alignement: choose your prefered

Style: As shown bellow

Bibiano_Geraldo_1-1734627257237.png

 

Now let set the rules as bellow:

Bibiano_Geraldo_2-1734627349945.png


Now click on dropdown icon and choose the desired icon as shown bellow:

Bibiano_Geraldo_3-1734627490626.png

 

My rules look like this:

Bibiano_Geraldo_4-1734627535537.png

 

Now click on ok, and your will achieve your goal.

 

 

 



 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @ayush_mriti ,

Is this issue solved now? If you have any questions, please feel free to share with us.

And don't forget to accept the answers if they helped. Your action would be helpful to other users who encounter the same issue and read this thread. 🙂

Thanks for your understanding!

Best regards,

Lucy Chen

Uzi2019
Super User
Super User

Hi @ayush_mriti 

 

For conditional  and border color formatting try this video this might help you

 

https://www.youtube.com/watch?v=XYJJgwDVVAQ

https://www.youtube.com/shorts/AXyVldDPgKU

https://www.youtube.com/watch?v=o2jSUHU722w

https://www.youtube.com/watch?v=Moxktpv4z7E

 

I hope above videos would help you to create conditional on arrow formatting!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Bibiano_Geraldo
Super User
Super User

Hi @ayush_mriti ,

Update your measure for something like this:

Trend Value = 
SWITCH(
    TRUE(),
    [Current] < [Prior], -1,   -- Return -1 if Current is less than Prior
    [Current] > [Prior], 1,    -- Return 1 if Current is greater than Prior
    [Current] = [Prior], 0     -- Return 0 if Current equals Prior
)

 

Now select your desired measure in field pane to format, and choose Icons as conditional formatting:

Bibiano_Geraldo_0-1734626818759.png

Format style: Rules
Field based on: Trend value.
Icon layout: choose your prefered

Alignement: choose your prefered

Style: As shown bellow

Bibiano_Geraldo_1-1734627257237.png

 

Now let set the rules as bellow:

Bibiano_Geraldo_2-1734627349945.png


Now click on dropdown icon and choose the desired icon as shown bellow:

Bibiano_Geraldo_3-1734627490626.png

 

My rules look like this:

Bibiano_Geraldo_4-1734627535537.png

 

Now click on ok, and your will achieve your goal.

 

 

 



 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors