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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ÒScar
Frequent Visitor

Predefined numeric formats for the FORMAT function

Good morning to you all,

I have created (in a budget visual of my company) a very simple measure to calculate the expense of my department (Costs) among the total income (Gross Income). It would look like this:

FORMAT Costs / Gross Income= FORMAT([ Costs/ GI,"Percent")

Of course, the result gives me 6.40%, with a dot as a decimal separator...

What other way do I have to make the decimal separator a comma? Do I customize the format string?

I've even changed the locale, and nothing...

Thanks for the help!!!

Sds

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @ÒScar,

DAX Format function will force convert the result to text, so you can't directly use this change display format and keep raw data type.
As amitchandak said, change the numeric symbol in the region setting should suitable for your requirement. (notice: this symbol is related to current system settings so this style and setting not kept if you review this report on another device)

BTW, the measure formula also works with fields custom format string but it seems not able to change the delimiter of percent values to 'comma'. (comma cant be recognized as delimiter when you use in custom format; '00.00%' work, '00,00%' not work)

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@ÒScar , Regional setting should do that -https://docs.microsoft.com/en-us/power-bi/fundamentals/supported-languages-countries-regions

Another place to define the format is  https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings

But will not work for measure

 

I have seen user getting this worked with regional setting

Thanks for the comments, @amitchandak .

I will try as you say, anyway I have to push in another direction in order to get an alternative solution.

Thank you again for your support.

Best, @amitchandak !!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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