Forum Discussion
Valuta decimal separator changing from comma to point
- Anonymous6 years ago
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 🙂
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
TransformCopy 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
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
- Jimmy8016 years agoCommunity 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- Anonymous6 years agoNot applicable
That youre right,
Only the thing in our company is that is isn't allowed to change these settings.
That the reason why i'm trying to solve this in PowerBI.
- Jimmy8016 years agoCommunity Champion
Hello Anonymous
you could format it again as text, and format as you need it to, but this for sure not the goal, to have numbers formated as text in your data model.
Question: Why is even needed to have the setting like this in a data table?
Because when you are writing a dax-measure or use the formated data in your visualization, this is for sure not and issue to convert it back to a text again.
Hope it helps
Jimmy