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

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 downward arrow color from Red to Green.

ayush_mriti_0-1732047760045.png

ayush_mriti_1-1732048056774.png

 

thanks,

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @ayush_mriti ,

You can make the following adjustment to get it, please find the details in the attachment.

1. Update the formula of measure [fmm] as below

Conditional formatting =
SWITCH (
    TRUE (),
    [Current] > [Prior], 1,
    [Current] < [Prior], 2,
    [Current] = [Prior], 3
)

2. Change the conditional formatting configuration

vyiruanmsft_0-1732073033836.png

Best Regards

View solution in original post

Jai-Rathinavel
Super User
Super User

Hi @ayush_mriti , Replace your dax with the below one.

fmm = SWITCH(
             TRUE(),
             [Current] > [Prior],"ColoredArrowUp",
             [Current] > [Prior],"ColoredArrowDownGreen",
             [Current] = [Prior],"TriangleMedium")

 

Did I answer your question ? Please mark this post as a solution.

 

Thanks,

Jai 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
ayush_mriti
Helper I
Helper I

Both the solution worked. Thanks a lot!

Jai-Rathinavel
Super User
Super User

Hi @ayush_mriti , Replace your dax with the below one.

fmm = SWITCH(
             TRUE(),
             [Current] > [Prior],"ColoredArrowUp",
             [Current] > [Prior],"ColoredArrowDownGreen",
             [Current] = [Prior],"TriangleMedium")

 

Did I answer your question ? Please mark this post as a solution.

 

Thanks,

Jai 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Hi @ayush_mriti ,

You can make the following adjustment to get it, please find the details in the attachment.

1. Update the formula of measure [fmm] as below

Conditional formatting =
SWITCH (
    TRUE (),
    [Current] > [Prior], 1,
    [Current] < [Prior], 2,
    [Current] = [Prior], 3
)

2. Change the conditional formatting configuration

vyiruanmsft_0-1732073033836.png

Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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