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
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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
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.