Forum Discussion

gprvega's avatar
gprvega
Regular Visitor
6 years ago

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

  • v-lid-msft's avatar
    v-lid-msft
    Icon for Community Support rankCommunity Support

     

    We can use a slicer to control the unit of value to meet your requirement.

    1. Create a new table using Enter data.
     

     

    1. 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__
        )

     

    1. 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's avatar
    v-lid-msft
    Icon for Community Support rankCommunity 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,