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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
MCacc
Helper III
Helper III

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.