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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.