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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Dates not being recognised correctly in Power BI

Hi folks, 

 

 

I have hit a deadend here while trying to make Power BI (PBI) recognise the dates, and its recognising some, and throwing error for some, specifically, where ever the date is greater than 12. 

 

Dates and errorDates and error

 Here is the full scenario;

I am importing dataset from a SSRS report into PBI using the Desktop application. In the SSRS report, I have set report locale to en-AU.

Locale of SSRS reportLocale of SSRS report

And, have explicitly set the locale, and formatting for the date field

Locale and Format of date field/columnLocale and Format of date field/column

I am importing this particular report as a CSV file into Power BI

Importing from SSRS into PBI as CSVImporting from SSRS into PBI as CSV

I am hoping to resolve this in a way where I can get PBI Desktop to recognise the dates without having to implement any custom DAX and/or M formula, simply to keep the simplicity of importing data into PBI & PQ intact. 

 

Help please!

 

Thanks

Kaz

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

Based on my understanding, you have created a SSRS report and export it to a CSV file. Then you get data from this CSV file in Power BI Desktop, when you convert the [InvoiceDate] values to Date type, the error displays when the first part of the date value is grater than 12, right?

 

Based on my test, the issue can be caused by that the Local for the Power BI Desktop is not corresponding to the converted date value. Suppose the Local is English( United States), the valid date format is MM/dd/yyyy. If the value is 27/06/2014, when it's converted to date type value, as there is no month "27", the error throws out. In your scenario, please change Local value as English(Australia) then click Refresh Preview button in Query Editor.

 

w2.PNGw1.PNG

 

If you have any question, please feel free to ask.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

Based on my understanding, you have created a SSRS report and export it to a CSV file. Then you get data from this CSV file in Power BI Desktop, when you convert the [InvoiceDate] values to Date type, the error displays when the first part of the date value is grater than 12, right?

 

Based on my test, the issue can be caused by that the Local for the Power BI Desktop is not corresponding to the converted date value. Suppose the Local is English( United States), the valid date format is MM/dd/yyyy. If the value is 27/06/2014, when it's converted to date type value, as there is no month "27", the error throws out. In your scenario, please change Local value as English(Australia) then click Refresh Preview button in Query Editor.

 

w2.PNGw1.PNG

 

If you have any question, please feel free to ask.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks @v-qiuyu-msft. For some strange reason, PBI Desktop decided the change the regional setting for this particular PBIX file to English US. If I open a new PBI Deskop instance, its set to English Australia, but opening this particular file changes it back to English US. Changing the Locale back to English Australia explicitly, and then doing the refresh doesn't give me the dates error. 


Thanks for your help, appreciate.

 

Kaz

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.