Power Bi dates not translating - date

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!

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.

A new column is needed in this situation, because the MonthYear column is a text column.
Create a new month column - example below.
Create a Year column from the date column in your dataset (Year = FORMAT([Date], "yyyy"))
Merge the new month column and the Year column (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

Related

Apps Script: How to convert English date format to German date format?

I am pretty sure this is a small issue, but I just can´t figure out how to solve it, as I am new at using Apps script :(.
ISSUE:
I have a sheets consisting of 2 columns: A and B. The column A contains dates written in German format (Day/Month/Year). Example: October 18th, 2021 is written 18/10/2021. Now all I want to do is increment each day from column A by 1 day and write the outcome (so, the incremented days) in column B.
ATTEMPTED SOLUTION:
I´ve figured out how to increment the days and write the outcome in column B. But I am struggling to add the second part of my script, so that the incremented dates are written in German in column B (See scripts below).
QUESTION:
How and where can I include the “Utilities.formatDate()” into my code, so that the dates in column B are formatted in German? (So, DAY/MONTH/YEAR instead of MONTH/DAY/YEAR)?
Thank you so much in advance for your help.
// Increment dates in colum A by 1 day and write this incremented date in colum B
function incrementDateInGermanFormat() {
var ss = SpreadsheetApp.getActiveSheet();
var date = new Date(ss.getRange(1, 1).getValue());
ss.getRange(1, 2).setValue(new Date(date.setDate(date.getDate() + 1)));
}
// This is the line I´m having trouble to include in the script above
Utilities.formatDate(date, Session.getScriptTimeZone(), "dd/MM/yyyy")
It is bad practice to convert date to strings. In this case, a better alternative is to simply change column B's date format to german in the spreadsheet user interface or use .setNumberFormat("dd/mm/yyyy") on column B.

Power BI How to extract month and year from a date

I have a column containing dates in the following format: "28-SEP-2018 12.40.00", does anyone know how to extract the month and year from the date in a new column (i.e. Sep- 2018), via producing a measure.
#navee1990 the measure to extract the date and year is as follows
= MONTH([date] & YEAR([date])
Or the long way
CONCATENATE(MONTH([date]),YEAR([date]))
Assuming the type of the column is Text and you want the new values to be displayed as SEP-2018 rather than 09-2018:
You would need to create a new column with DAX as c1 = MID(Table2[Column1],4,8)
In case if the column is of type: DateTime ; then use the below DAX for new column :FORMAT(Table2[Column1],"MMM-YYYY")
New Date =FORMAT([date], "MMM") & "-" & YEAR([date])
This would give you a column with text data type. You can further create a column to sort the New Date column as per calendar chronology.

How to convert a specific text string to today's date in Power BI

I have a table with a column called that contains text. Most of the values are years. However, some have the value "present" to represent groups that are still currently active. I want to convert those values to today's year, and convert the column type to date (specifically year type). I want to avoid creating a new column if possible.
Please see below for the DAX language that worked.
= Table.ReplaceValue(#"Extracted Year2",null,DateTime.LocalNow() ,Replacer.ReplaceValue,{"Disbanded"})

Power BI Week Visual Filtering

Power BI novice here. I have multiple reports which require date filtering by week. I can sometimes get the data to display with my Week column using dates from a column in the same table.
I thought building a Week column based on the date column would result in an easy to use visual. The week column is calculated by:
WeekYear = IF(
FORMAT(WEEKNUM(START.[Date],1)-1,"00"="00",
"Wk53-" & YEAR(START.[Date])-1,
"Wk" & FORMAT(WEEKNUM(START.[Date],1)-1,"00") & "-" & YEAR(START.[Date]))
This results in an x-axis displaying weeks in this format: Wk52-2019. If the underlying data of column STARTis in the proper datetime format, what could be the issue?
I noticed data on the visual which is not filtered for a date range display without issue. Trying to filter with DATESINPERIOD or other DAX date filters caused calculated measures to not display or break the model. I know a lot of references state having a separate calendar table is critical and I suppose I don't fully understand. Thanks in advance.
If you are trying to create the week in date format, then you can use the following calculation:
Week = Table[Start] - WEEKDAY(Table[Start],2)+1
This returns the Monday date of the week, if you want other days you can adjust the calculation accordingly.
If this is not what you are looking for, then you might have to clarify your requirements a bit more.

How to calculate first day of Due date based on frequency in Microsoft Infopath Designer

I am trying to calculate due dates based on the description of the frequency in another field on my form. So I have 3 fields , "Frequency" which contain the description, "Annually", "Semi-annually", "Quarterly".
Then I have "Last Date" where there is a date that someone enters. and then "Due Date". I would want the first day of the selected month be the calculated due date to be in that field.
I have tried to use the "Rules" and set the condition to , when "Frequency" is equal to "Annually" then I did the set field's value, I selected the "Due Date". For the formula I wrote addDays("Last Date", 365). I was wondering if there is a way to select it to be the first day of the month?
Thank you!
Sure, use the concat/substring functions and format it like a date:
concat(substring(addDays("Last Date", 365), 1, 4), "-", substring(addDays("Last Date", 365), 6, 2), "-01")
I was able to fix the error that I was receiving after the value was being calculated. Within the new text box I created, I changed the control to date. Then as a default value, I used this formula msxsl:format-date(Last Date, "MM/dd/yyy"). And the function to use the calendar was there as well! Everything works now! Thank you #user2051770 for guiding me! Much appreciated!