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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Ronak_1
Frequent Visitor

How to apply icon conditional formatting on text fields

I have one text field which have some score (1,2,3) and date (23-Dec,24-Jan) as below, I want to display icon for value 1, 2 & 3 and same text for remaining values. Is it possible?

Ronak_1_0-1691573258926.png

 

Output

Ronak_1_3-1691571997239.png

 

1 ACCEPTED SOLUTION
SamInogic
Super User
Super User

Hi @Ronak_1 ,

 

We can add a Icon formatting by clicking on column name >> select Conditional Formatting option and click on Icons option as shown in the below screenshot,

 SamInogic_0-1691576235050.png

  

This will open the dialog to set values-based conditions to display icons, where we need to add value conditions for 1, 2 and 3 with required icons as shown in the below screenshot,

SamInogic_1-1691576257931.png

 

 This will show the icons along with data as shown in below screenshot,

 

SamInogic_2-1691576273468.png

 

 In Power BI, Icon Formatting we have 3 options for displaying Icons that are icons left to the data, right to the data and Only icon without data in each cell. So, if you want only icons without 1, 2 ,3 value and other cell should display text as it is then we need to do a workaround by creating a Column to define font colour of text to be white in case values are 1, 2, 3.

DAX for column will be as follows,

 

DataColor = IF('Table'[B] = "1" || 'Table'[B] ="2" || 'Table'[B] = "3", "White","")

 

Now will use this colour column for font Color conditional formatting as shown below

SamInogic_3-1691576282660.png

 

The output will be as follows, 

 

SamInogic_4-1691576310203.png

Thanks!

 

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

2 REPLIES 2
Ronak_1
Frequent Visitor

Thanks @SamInogic for solution.
I have used alernating rows (white & grey) in my table repot. But will change it to all white.
Any idea if this can also be hanldle?

SamInogic
Super User
Super User

Hi @Ronak_1 ,

 

We can add a Icon formatting by clicking on column name >> select Conditional Formatting option and click on Icons option as shown in the below screenshot,

 SamInogic_0-1691576235050.png

  

This will open the dialog to set values-based conditions to display icons, where we need to add value conditions for 1, 2 and 3 with required icons as shown in the below screenshot,

SamInogic_1-1691576257931.png

 

 This will show the icons along with data as shown in below screenshot,

 

SamInogic_2-1691576273468.png

 

 In Power BI, Icon Formatting we have 3 options for displaying Icons that are icons left to the data, right to the data and Only icon without data in each cell. So, if you want only icons without 1, 2 ,3 value and other cell should display text as it is then we need to do a workaround by creating a Column to define font colour of text to be white in case values are 1, 2, 3.

DAX for column will be as follows,

 

DataColor = IF('Table'[B] = "1" || 'Table'[B] ="2" || 'Table'[B] = "3", "White","")

 

Now will use this colour column for font Color conditional formatting as shown below

SamInogic_3-1691576282660.png

 

The output will be as follows, 

 

SamInogic_4-1691576310203.png

Thanks!

 

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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