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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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