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
Anonymous
Not applicable

Format string in Tabular Editor in Thousands

Hi ,

 

Can someone help me to figure out the format string ot use for the below :

Current Format : 

$8,255,064

Desired Format : 

8,255 K

 

Thanks,

 

Deevs

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

You may need to modify you date type in your model ,then try this in tabular editor:

v-janeyg-msft_0-1602665799390.png

v-janeyg-msft_2-1602666001964.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

11 REPLIES 11
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

You may need to modify you date type in your model ,then try this in tabular editor:

v-janeyg-msft_0-1602665799390.png

v-janeyg-msft_2-1602666001964.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That's what I assumed but can't get it to work in March 2021 version

 

RobertSlattery_0-1617355284906.png

When I add the K at the end, the thousands format no longer works and I get the actual value, not in thousands.

Hi, @RobertSlattery 

 

Try this: #,##0,.K.

 

Best Regards

Janey Guo

Hi Janey, thanks for the lightning response but, unfortunately, same result: 

1,000,000 -> 1,000,000 K

@RobertSlattery  #,##0,.K

Still the same.  In the service as well as desktop.  And Analise in Excel.

Apologies: it does work.  For some reason the visual doesn't refresh when I make the change. When I change the formatting in desktop, I need to refresh the visual in the performance analyser (I don't want to wait for the ables to refresh).  This is true if I do it in Tabular Editor or directly in the pbix.  When I use Tabular Editor to change the published version, I need to shift-refresh the browser (which I should have realised!).

 

Thanks!

Anonymous
Not applicable

@v-janeyg-msft ,

 

You are a Legend it did work :). Really appreciate your help.

Is there a document somewhere I can refer to figure out such formats?

 

Thanks,

 

Deevs

darentengmfs
Post Prodigy
Post Prodigy

Hi @Anonymous 

 

Rather than changing it in Editor, you could do it at the visual level.

 

darentengmfs_0-1602639399588.png

 

 

However, if you want to do it in Editor, you can try to do the following steps:

  1. Create a new column, divide it by 1000
  2. Round up/down your new column
  3. Change the data type to text
  4. Concatenate the new column with " K"

If you want to do it in DAX, use the create a new column using the following formula:

  1. New Format = 'Table'[Value] /1000 & " K"
Anonymous
Not applicable

Hi @darentengmfs 

Thanks for that but i really don't want to create whole bunch of measures as I got 20 plus measures that I have to apply that.

I really need to figure out updating it in the Tabluar Editor.

Thanks,

Deevs

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.