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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.