Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Spacing between values

Hey, 

I have some values ​​like 13000 14500 12400, I'd like to have spaces between the values. So that those values ​​appear 13 000, 14 500, 12 400. Initially, I have a table visalization, but if I have another visalization later on, can i format the values with a space there to?

Is it a dax formula or something that can be used here?


Hope this was clear to understand

thank you in advance

14 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous,

    You can change region or your computer to France, this way, after you turn on thousands separator in Power BI Desktop, you will get space between numbers as you expect.



    Regards,
    Lydia

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hey, 

      Thanx alot for your help. This works great. But a problem, when I am uploading the pbix file in the power bi service, the values have a comme istead of space? 


      • Anonymous's avatar
        Anonymous
        Not applicable

        Anonymous

  • Anonymous's avatar
    Anonymous
    Not applicable

    hey, 

    Is there no one out there who has a solution? 

    • Thejeswar's avatar
      Thejeswar
      Super User

      Anonymous,

      I think changing location in desktop is not a right solution.

      Because eventually as Anonymous stated, when published to service, the setting of the service will take over.

       

      Setting location inside PBIX File, might help. But not sure.

       

      Anonymous, please change the location in Regional Settings of your PBIX file and try publishing in service. 

       

      PFB the image

       

       

       

      Regards,

      Thejeswar

      • Anonymous's avatar
        Anonymous
        Not applicable

        Thejeswar Thanx for your effort, but it didnt unfortunately work. I get the same result

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hey, 

      I have read through the thread, thanx.  But as I see the end result did not get any different for her there too. Are you sure that there is no dax formula to solve this?

      Anonymous

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous

      Or any other way to solve this issue? Greatly appreciated

       

      • ChrisMendoza's avatar
        ChrisMendoza
        Resident Rockstar

        Anonymous,

         

        I converted the values to TEXT and then formatted the space in a calculated column as:

        Formatted Space = 
        VAR NumText = FORMAT(TableName[Values],BLANK())
        VAR Right3 = RIGHT(NumText,3)
        VAR LeftNums = SUBSTITUTE(NumText,Right3," ")
        VAR SpacedNumText = COMBINEVALUES(" ", LeftNums, Right3)
        
        RETURN SpacedNumText

        And then applied similar to a MEASURE as:

        Formatted Sum of Values = 
        
        VAR measureSum = SUM(TableName[Values]) 
        VAR NumText = FORMAT(measureSum,BLANK())
        VAR Right3 = RIGHT(measureSum,3)
        VAR LeftNums = SUBSTITUTE(measureSum,Right3," ")
        VAR SpacedNumText = COMBINEVALUES(" ", LeftNums, Right3)
        
        RETURN SpacedNumText

        To achieve what I believe you are after, see below:

         

        Does that work for your needs?