Overview
In this article, we will talk about how we can apply conditional formatting using OOTB icons for text column in Power BI.
Example
We have the following data source and the following columns.
- Sales Team
- Project Status
- Profit Status
- Forecast Status
- Budget Status
We need the end result to be something like what is shown in the below screenshot.
We need icons for the different Statuses, as shown in the below table.
|
Status
|
Icon
|
|
Excellent
|
Green
|
|
Average
|
Yellow
|
|
Below Average
|
Red
|
|
No Status
|
(-) Dash |
Download Code
You can download the sample data source file and Power BI file using GitHub.
Now, let’s get started!
Step 1 - Load Power BI Data
Load the data source in Power BI. Add the Status in the tables. The table will look like below.
Step 2 - Add Conditional Columns in PowerQuery
Now as we mentioned in the above table, we need different Icons for different Status Value.
We have Status Value in the Text column. We can’t apply conditional formatting on Text columns in Power BI directly.
In order to apply conditional formatting on text columns, we need to create one numeric column which shows different stages in numeric format.
Let’s create an additional column which will add numeric value.

Soniya JainPosted Apr 22, 2021, 3:58 PM
I think Instead of sum, summarization must be min.