Reputation: 165
I am translating a Power Bi report to Russian and the dates are persistently showing in English.
I have set the report locale to Russian and changed the Date column type to Russian.
I have created a new column to sort data by month, but the months still show in English.
Could someone please explain my error? As we want to translate to more languages I do not want to have to rebuild the entire project each time!
Many thanks for advice on this!
Upvotes: -1
Views: 6756
Reputation: 21
You could use the location identifier in the month column using the FORMAT statement:
MonthYear = FORMAT([Date], "mmm yyyy", "ru-RU")
Details of the optional argument that specifies the locale identifier for the FORMAT statement taken from here: https://dax.guide/format/
Upvotes: 0
Reputation: 165
A new column is needed in this situation, because the MonthYear column is a text column.
Year = FORMAT([Date], "yyyy")
)RUS_Month_Year = COMBINEVALUES(" ", [RussianMonth], [Year])
Example of new month column (Russian):
RussianMonth = SWITCH(MONTH([Date]),1, "Янв", 2, "Фев", 3, "Мар", 4, "Апр", 5, "Май", 6, "Июн", 7, "Июл", 8, "Авг", 9, "Сен", 10, "Окт", 11, "Ноя", 12, "Дек", "Unknown month number" )
With thanks to discussion in Change month name language
Upvotes: 0
Reputation: 1791
You need to change the default language in your Windows settings. The same applies to Power BI Service.
Locale is just to import the data in the correct format.
If I set my default language to Spanish
And if I go back to English
You need to reopen the Power BI workbook to see the changes.
Upvotes: 1