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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.