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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DingbatData
Advocate I
Advocate I

Format string issue - Number in thousands

Let's say I have a measure

Measure = 123456789

 

In a table visual, with only that measure, If I use custom format string of:

#,0 I get 123,456,789 (which I expect)

#,0, I get 123,457 (which I expect)

#,0,k or #,0,\k or #,0,"k" I get 123,456,789k (which I do not expect, I hoped for 123,457k) 

 

Is there a solution to this? or is this a bug?

1 ACCEPTED SOLUTION

HI @DingbatData,

It seem like a custom formatting string issue that I already reported, you can take a look at the following link if it is similar to your scenario.

Possible bug with chart y axis custom number formatting 
Regards,

Xiaoxin Sheng

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

View solution in original post

6 REPLIES 6
DingbatData
Advocate I
Advocate I

Hi Shen @v-shex-msft , Thanks for raising the bug, yes seems to be the same issue. I was acutally able to solve my particular issue by putting the comma last i.e #,0k, I cannot solve the issue by Ben Norris (OP in the link you gave) using this work around as having a decimal stops this work around from working.  

 

Comma after K!!! Lifesaver! Thanks

AG2
Frequent Visitor

This worked! Thank you! This is my custom format with the comma after the "K" like you said and it worked successfully:
$#,##0"K",;($#,##0"K",);$0"K"

amitchandak
Super User
Super User

@DingbatData , refer this how to get various format

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Yes I have read it, not really helpful for this situation. Actually the format strings work as expected in the DAX function FORMAT, however I was hoping to not format numbers as a string. 

The situation I gave in the original post was simplified, the actual format string I want to use is

#,0,;(#,0,);-

but same problem applies (in this case, the last bracket in the negative scenario stop the number being in thousands)

Frankly, I think this is a bug.

HI @DingbatData,

It seem like a custom formatting string issue that I already reported, you can take a look at the following link if it is similar to your scenario.

Possible bug with chart y axis custom number formatting 
Regards,

Xiaoxin Sheng

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.