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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.