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

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

Reply
Anonymous
Not applicable

change formating based on account name

Hello,

I would like to apply 2 decimals to my table, however, when the account name = "OG" ," RIG", "Price", i would need 4 decimals, is there any formula to apply different formatting? 

akerrout_0-1685437124977.png

 

for all the account that are in % i would like to change the formating.
I have tought about using an IF foncion + related formula for the formatting condition.


Best regards.


Anis Kerrout

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I think new dynamic format string can help

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-the-new-dynamic-format-strings-for-measures/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , I think new dynamic format string can help

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-the-new-dynamic-format-strings-for-measures/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

THank you@amitchandak ,
I am trying to set my  formating referring to a column which is " Account " and not a measure.
And i wasnt able to find a way in using the dynamic formating.

akerrout_0-1685457237092.png

thank you for you help

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors