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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sanc_152
Helper I
Helper I

Conditional Formatting to half of string

Hi ,

I have a dax expression where I am concatenating strings with other dax measures.Is it possible to chnage only part of the string in mtraix visual.

 

measure_1="hi Welcome to"
measure-2=names of differnt countries 

So the final result I would be  the country color in "red"

result =Concat(measure_1 ,measure-2)
Final output: "hi Welcome to india.

@Ahmedx ,
@amitchandak 
@NotGregDeckler 

 

Could you guys Please help on this scenario.

 

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @sanc_152 

This string is a whole, there is no way to color one part separately, the best way is to put both measure 1 and measure 2 into the value of the matrix, and then set the color of measure 2 separately.You cna refer to the following link.

powerbi - Is it possible to change font color for only a part of the string in card power bi? - Stac...

Part of text to be bold using DAX - Microsoft Power BI Community

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @sanc_152 

This string is a whole, there is no way to color one part separately, the best way is to put both measure 1 and measure 2 into the value of the matrix, and then set the color of measure 2 separately.You cna refer to the following link.

powerbi - Is it possible to change font color for only a part of the string in card power bi? - Stac...

Part of text to be bold using DAX - Microsoft Power BI Community

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.