cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors