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
Tiger_an
Frequent Visitor

Is it possible to use Dynamic format string to change the font color in Calculation group?

Hi everyone,

I want to use Dynamic format string to change the font color in Calculation group, seached  a lot on the internet, but without good luck, anybody has suggestion for this?

Thanks in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Tiger_an ,

As I know, dynamic format strings primarily focus on formatting numerical data types and do not directly support changing font colors.  The functionality is designed to conditionally apply numeric and date formats based on the context of the data being displayed. This includes specifying different number formats, currency symbols, and date formats, but does not extend to visual styling attributes such as font color. This blog may let you know more about it: Creating Value Dynamic Formatting using Calculatio... - Microsoft Fabric Community

vyilongmsft_0-1711333252654.png

If you want to change the font color in the Calculation group, I think you can change the font color directly in Format visual in Visualizations.

vyilongmsft_1-1711333600759.png

vyilongmsft_2-1711333622086.png

 

 

 

Best Regards

Yilong Zhou

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

2 REPLIES 2
Tiger_an
Frequent Visitor

Hi Yilong, 

Thanks for your reply, I also leared that this is not possible. While I learned a workaround, which is using conditional formating with a based measure, which can realize my requirment, thanks again for your response.

Anonymous
Not applicable

Hi @Tiger_an ,

As I know, dynamic format strings primarily focus on formatting numerical data types and do not directly support changing font colors.  The functionality is designed to conditionally apply numeric and date formats based on the context of the data being displayed. This includes specifying different number formats, currency symbols, and date formats, but does not extend to visual styling attributes such as font color. This blog may let you know more about it: Creating Value Dynamic Formatting using Calculatio... - Microsoft Fabric Community

vyilongmsft_0-1711333252654.png

If you want to change the font color in the Calculation group, I think you can change the font color directly in Format visual in Visualizations.

vyilongmsft_1-1711333600759.png

vyilongmsft_2-1711333622086.png

 

 

 

Best Regards

Yilong Zhou

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.