Forum Discussion
Format thousands, millions, billions
I'm working with a cube, with defined number formats, when I configure a chart or table, I can choose the format that I want for the numbers, but I don't need the letters behind the numbers (K, M, Bn, etc.). Is it possible to have this kind of structure? These letters make my reports need columns wider than I really want.
Thanks,
3 Replies
- amitchandak
Super User
You can do a custom formatting
https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings
- v-lid-msft
Community Support
We can use a slicer to control the unit of value to meet your requirement.
- Create a new table using Enter data.
- Then we can create a measure,
Measure = VAR sum__ = CALCULATE ( SUM ( 'Table'[value] ) ) RETURN SWITCH ( SELECTEDVALUE ( 'Slicer'[Unit] ), "K", sum__ / 1000, "M", sum__ / 1000000, "Bn", sum__ / 1000000000, sum__ )- At last we can get the result like this,
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?
BTW, pbix as attached.
Best regards,
- v-lid-msft
Community Support
Hi gprvega ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,