Introduction
In a previous article, I have explained what condition formatting is.
Here in this article you will see how to apply conditional formatting by font color.
To do this, I have imported an Excel sheet having employee data. Conditional formatting by font also has three types, just like background color,
- Color Scale
- Rules
- Field Value

To apply this font formatting please follow the below steps.
Step 1
Import your data into Power BI. I have imported excel data. See the below image.
Step 2
To open conditional formatting right click on the column where you apply the condition and click on ‘Conditional Formatting’ and further click on ‘Font color’.
Color Scale
First I am using the ‘Color Scale’ and showing the employee name in a different color as per their salary.
So, right click on ‘ename’ and open conditional formatting by font color.
Once you click on ‘Font color’ a new window will be opened. Select ‘Color Scale’ in ‘Format by’ in the drop down menu. For ‘Based on field’ option select salary column; i.e. ‘Sal’ in my case, as I would like to show the employee name in different color as per their salary. Apply on ‘Values only’, Choose ‘Sum’ in summarization and default formatting ‘As zero’. Also you can select any color as per your choice for lowest and highest value.
You can also add color for middle value by clicking on ‘Diverging’ check box.
Click on ‘OK’ to apply formatting. Your data will be shown like in the below image.

Join the conversation! Your thoughts help the community grow.