Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hi Power BI Community,
I have a table visual in Power BI where one of the columns contains text data. I would like to highlight specific text in different rows, where the text to be highlighted changes per row. For example:
I understand that Power BI’s native conditional formatting allows for entire cells or rows to be highlighted, but I am looking for a way to apply different text-based rules to highlight specific values in different rows of the table visual. Is there a method or workaround that would allow me to achieve this level of granularity?
Here’s what I’ve tried so far:
Is there a way to highlight only the relevant text within a cell or apply cell-level conditional formatting differently per row?
Thanks for any guidance or suggestions!
Solved! Go to Solution.
Hi @AzarShaik-8386 ,
I create a simple table as you mentioned.
Then I create a calculated column and here is the DAX code.
HighlightedText =
SWITCH(
TRUE(),
'Table'[RowID] = 1, SUBSTITUTE('Table'[TextColumn], "urgent", "<span style='background-color:yellow'>urgent</span>"),
'Table'[RowID] = 2, SUBSTITUTE('Table'[TextColumn], "critical", "<span style='background-color:red'>critical</span>"),
'Table'[RowID] = 3, SUBSTITUTE('Table'[TextColumn], "info", "<span style='background-color:green'>info</span>"),
'Table'[TextColumn]
)
So I think you can use the visual named HTML Content.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @AzarShaik-8386 ,
I create a simple table as you mentioned.
Then I create a calculated column and here is the DAX code.
HighlightedText =
SWITCH(
TRUE(),
'Table'[RowID] = 1, SUBSTITUTE('Table'[TextColumn], "urgent", "<span style='background-color:yellow'>urgent</span>"),
'Table'[RowID] = 2, SUBSTITUTE('Table'[TextColumn], "critical", "<span style='background-color:red'>critical</span>"),
'Table'[RowID] = 3, SUBSTITUTE('Table'[TextColumn], "info", "<span style='background-color:green'>info</span>"),
'Table'[TextColumn]
)
So I think you can use the visual named HTML Content.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Use SVG to achieve that.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!