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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors