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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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