Forum Discussion
gprvega
6 years agoRegular Visitor
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...
v-lid-msft
Community Support
6 years ago
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,