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
Anonymous
Not applicable

Conditional format: This Year vs Last Year

Hi Guys,

 

I have a matrix table (see link attached) showing the values this year and values for the same period last year. What is the best way to include green, amber or red arrows next to this year's figures. So it should be green if the figure is greater than the previous year, amber if the figure is the same and red if this year's figure is less than last year's.

 

https://1drv.ms/u/s!AhEw68UYqcc6gxh5JbUie_w1e52L?e=y4k7tb

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi All,

I managed to sort it out by intially creating a calculated field using a switch statement and then using the outcome values of the switch statement to create a conditional format using icon arrows only.conditional formatconditional formatswitch statementswitch statement

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi All,

I managed to sort it out by intially creating a calculated field using a switch statement and then using the outcome values of the switch statement to create a conditional format using icon arrows only.conditional formatconditional formatswitch statementswitch statement

Anonymous
Not applicable

Hi @Anonymous ,

It's glad to hear that your problem has been resolved. And thanks for sharing your solution here. Could you please mark your post as Answered if there is no anything else need to help about this thread? It will help the others in the community find the solution easily if they face the same problem as yours.  Thank you.

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.