The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
The old SSRS supported custom type and that could be used to do the localization on dates and currencies.
But Power BI has been more difficult.
Here is one case example attached, please instruct how to get this working as planned.
Desktop versions used: 2019-09 (English) and 2019-12 (Finnish).
Target: I want to have dates in fi-FI locale settings, for example "31.12.2020" or "31. joulukuuta 2020".
Done:
1) I have changed File -- > Options and Settings -- > Options -- > Current file -- > Regional Settings to Finnish (Finland)
2) I get similar results with English and Finnish versions of Desktop: Finnish version changes automated heading, but not the actual content itself:
3) Localization settings are used when the data is being read. My data is not in database, so perhaps this is a problem, but at least I have pressed successfully Refresh button.
4) Ideally that should be enough to change the results, but I have also manually localized the column in Powerquery side to Finnish locale:
(with UI: select edit queries, right click column, chage type, using locale...)
#"Changed Type with Locale" = Table.TransformColumnTypes(Result, {{"Local timestamp with offset", type datetimezone}}, "fi-FI"),
#"Changed Type with Locale1" = Table.TransformColumnTypes(#"Changed Type with Locale", {{"Local timestamp without offset", type datetime}}, "fi-FI"),
#"Changed Type with Locale2" = Table.TransformColumnTypes(#"Changed Type with Locale1", {{"UTC date", type date}}, "fi-FI"),
#"Changed Type with Locale3" = Table.TransformColumnTypes(#"Changed Type with Locale2", {{"UTC timestamp", type datetime}}, "fi-FI")
But still the end result is in English.
What to do?
This file is public, so I can upload it if you instruct me how.
Solved! Go to Solution.
Maybe it is against the rules to answer to my own question, but I found the solution:
- The actual report shows properly either English or Finnish depending on the personal server settings: General -- > Language -- > <your locale>
(see https://app.powerbi.com/groups/me/settings/general )
- Desktop perhaps sometimes uses the locale from Windows and sometimes the locale I have defined to Desktop, so if this would trouble me, I could try to change my Windows locale.
Example link: https://app.powerbi.com/groups/me/settings/general?redirectedFromSignup=1
For English speakers I recommend that you change the model language only.
Non-English speakers may use the same or if they wish to see inconsistent translations then they could use the settings on below:
Example case “Latest UTC date” looks good heading in English, but bad in Finnish “Viimeisin UTC date”
Note: This setting only affects new reports, not existing reports!
Select File -- > Options and Settings -- > Options -- > Current file -- > Regional Settings -- > Locale for import -- > <your locale>
#"Content" = Table.TransformColumnTypes(#"Localized content", {{"Local timestamp without offset", type datetime}}, "fi-FI"),
I wrote this as a blog article to here:
https://community.powerbi.com/t5/Community-Blog/Localization-in-Power-BI/ba-p/952439
I wrote this as a blog article to here:
https://community.powerbi.com/t5/Community-Blog/Localization-in-Power-BI/ba-p/952439
Example link: https://app.powerbi.com/groups/me/settings/general?redirectedFromSignup=1
For English speakers I recommend that you change the model language only.
Non-English speakers may use the same or if they wish to see inconsistent translations then they could use the settings on below:
Example case “Latest UTC date” looks good heading in English, but bad in Finnish “Viimeisin UTC date”
Note: This setting only affects new reports, not existing reports!
Select File -- > Options and Settings -- > Options -- > Current file -- > Regional Settings -- > Locale for import -- > <your locale>
#"Content" = Table.TransformColumnTypes(#"Localized content", {{"Local timestamp without offset", type datetime}}, "fi-FI"),
Maybe it is against the rules to answer to my own question, but I found the solution:
- The actual report shows properly either English or Finnish depending on the personal server settings: General -- > Language -- > <your locale>
(see https://app.powerbi.com/groups/me/settings/general )
- Desktop perhaps sometimes uses the locale from Windows and sometimes the locale I have defined to Desktop, so if this would trouble me, I could try to change my Windows locale.
User | Count |
---|---|
78 | |
77 | |
36 | |
32 | |
29 |
User | Count |
---|---|
91 | |
79 | |
57 | |
48 | |
48 |