Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
MCacc
Helper IV
Helper IV

Format with date languages

Hello, 

 

In my dataset I have a column Date wich needs to be formatted as follows: yyyy-MMMM. 

 

The problem is that the month values are written in many languages (mostly in English and Italian). 

 

The format is applied in my PowerQuery with the expression DataFormat. 

 

I noticed that it works fine when months are in Italian, but it returns the following error when the months are in English: 

"We couldn't parse the input provided as a Date value".

 

Thing is, I can't change the locale date settings in my Transform Data exactly because my months can be in many languages.

 

Do you guys know a good workaround?

 

Thank you.  

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

Take a look at the USERCULTURE() function - https://learn.microsoft.com/en-us/dax/userculture-function-dax and 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-format-visual-titles#c... are good places to start. I think one solution would be load the data in as a standard date format (i.e dd-mm-yyyy) and then use two separate measure(s) to display them in either English or Italian depending on what you need.

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

Take a look at the USERCULTURE() function - https://learn.microsoft.com/en-us/dax/userculture-function-dax and 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-format-visual-titles#c... are good places to start. I think one solution would be load the data in as a standard date format (i.e dd-mm-yyyy) and then use two separate measure(s) to display them in either English or Italian depending on what you need.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.