Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Valuta decimal separator changing from comma to point

Hi,

I want to change the local decimal separator voor Valuta in our dutch version being changed from comma to a point.

 

I tried to do it by change the reginonal settings to English (VS) and to make an advanced setting in the value of ###.##

Still it shows as in the picture's

In table view

In the visual

  • Anonymous's avatar
    Anonymous
    6 years ago

    Jimmy801 

    It finally worked.

    I'd used the following formula:

    EnglishFormat = SUBSTITUTE(FORMAT('Table'[Collumn],  "#####0.00") ,",",".")

     

    This makes the dutch format to English now. so the separator is changed from comma to point .

    Thanx for you help 🙂

     

15 Replies

  • Jimmy801's avatar
    Jimmy801
    Community Champion

    Hello Anonymous 

     

    i suppose that you are reading from a non structured datastructure and therefor you get text in. Afterwards Power BI tries to apply a automatic type identification. As you have in english setting, but the text format shows a different culture. Therefore you have to apply a TransformColumns and forse Power BI to use a culture that has the #.###,00. (example de-DE). Here an example how it looks like

    let
        Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQ1MNAxM1CK1QGyLZDYRkC2OZAdCwA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [mBedragBetaald = _t]),
        Transform = Table.TransformColumns
        (
            Source,
            {
                {
                    "mBedragBetaald",
                    each Number.From(_,"de-DE"),
                    type number
                }
            }
        )
    in
        Transform

    Copy paste this code to the advanced editor in a new blank query to see how the solution works. If this solution fits your need, copy and past a part of it and implement it in your query.

    If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
    Kudoes are nice too

    Have fun

    Jimmy

    • Anonymous's avatar
      Anonymous
      Not applicable

      Jimmy801 

      It seems this makes a comma "," instead of a point "." thats excatly the opposite i'm trying to achieve

       

      What do i have to change in the query to make 

      • Jimmy801's avatar
        Jimmy801
        Community Champion

        Hello Anonymous 

         

        my solution forces Power BI to format a number written in a different culture into a number in terms of power bi. So the change you want is not a formatting of number from text, applying a culture, but only that a real number in Power BI is shown with .00 instead of ,00. 

        Power BI takes your local settings to show a number. So this hasn't to do anything with Power BI but with you Windows installation. To change this goto control panel -> region --> advanced setting and change the format there. Here a screenshot from my local german installation 


        If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
        Kudoes are nice too

        Have fun

        Jimmy