Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
I have a table showing material utilization percentages over multiple fiscal years. I would like to apply conditional formatting to this table so that if the utilization percentage from one year is greater than the previous year it will show green, and red if it is lower. Below is the table I am working with. Any help you can offer would be greatly appreciated. Thank you in advance for your time!
Solved! Go to Solution.
@Anonymous I got it figured out.
First I created a measure using the SAMEPERIODLASTYEAR function to calculate the average utilization from the pervious year
utilizaiton LY = CALCULATE( [utilization] , SAMEPERIODLASTYEAR( [date] ))
Then I created a measure like you suggested to calculate the difference and eliminate false data caused by blanks
difference utilization = IF( ISBLANK( [utilization LY] ), BLANK(), [utlization] - [utilization LY] )
You can start by creating a measure that calculates the difference between one year and another. When you apply the conditional formatting to the field, you can choose to conditionally format that field by a different field.
Ex: Difference2020 = FY2020 - FY2019
Format --> Conditional Formatting --> Choose field in dropdown --> advanced controls --> select rules under "Format by" dropdown --> select Difference2020 under the "Based on field" dropdown --> set your rules
I hope this helps, let me know if you need clarification.
@Anonymous I got it figured out.
First I created a measure using the SAMEPERIODLASTYEAR function to calculate the average utilization from the pervious year
utilizaiton LY = CALCULATE( [utilization] , SAMEPERIODLASTYEAR( [date] ))
Then I created a measure like you suggested to calculate the difference and eliminate false data caused by blanks
difference utilization = IF( ISBLANK( [utilization LY] ), BLANK(), [utlization] - [utilization LY] )
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 41 | |
| 32 | |
| 18 | |
| 18 | |
| 15 |