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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
pbirookie
Frequent Visitor

Conditional Formatting Only Part of A string based on applied slicer

Hello fellow PowerBI users!

 

I`m working on a request and the task is to only color code a part of a string that matches a slicer that has been applied on the page.

 

I`m including attached below a desired result. Can you advise if this can be achieved?

 

My efforts so far only result in color coding the entire row which is not my purpose. Appreciate your ideas.

 

pbirookie_0-1656339416081.png

 

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

Such a decorative task is for VBA, to be exact, Range.Characters property.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

amitchandak
Super User
Super User

@pbirookie , I doubt that is possible as of now. You can color complete value.

 

refer if needed

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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