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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Date data/datetype changes on refresh in PowerBI service

Hi all,

 

I have a situation where I need some help with, I hope someone has a solution for it.

 

I have created a report based on a date type DD-MM-YYYY.


Sidenote:
and change this to a different format "WK"&

WEEKNUM('dDate Report'[Date],21)&
FORMAT('dDate Report'[Date],"YY") which gives me for example WK 01 2021.
 
When I create my column chart on the PowerBI desktop I get the result below, which is correct.
desktop data.PNG
 
When I publish my report on PowerBI service then it still shows the same/ the correct way.
But when I refresh my report in PowerBI service it somehow changes date types and some dates get "shuffled" as bellow:
Web data.PNG
Here you can see that week 5,6&9 are gone and week 40 and 41 have much greater value, so it looks like week 5 & 6 or 9 are added to week 40 and 41..

To investigate my issue I have added a date filter to my report to check how the dates are calculated:
 datefields.PNG

What I can see is that dates like 19-2, 26-2,19-3 and 26-3 are correct, and 5-2,5-3,12-2 and 12-3 are "shuffled" during the refresh in the PowerBI service.

Anyone have a clue how this is possible/ how I can solve this?
 
Thank you in advance!
 
Kind Regards,
Ramon
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

I solved my issue....

From PowerQuery I had transported the date as a text value and transformed the text value to a date in PowerBi desktop. which caused that in some cases the day and month where swapped.

Right now I have set the field type to date in PowerQuery and my issue is solved.

 

Kind Regards,

Ramon

View solution in original post

4 REPLIES 4
MyriamW
Frequent Visitor

I have a similar problem. I have a date value coming from an Azure SQL DB. I want to force a specific date format (dd.mm.yyyy) in PBI Service, so I load the dates into Query Editor and afterwards convert them into Text in Power BI Desktop. Publishing to the service gives me the right result, but when the dataset is refreshed, it changes to english format ("mm/dd/yyyy).

Why does this happen and what can I do? I really don't want to write a DAX FORMAT Measure for all my date columns! But at the moment I do not see some other solution...

Anonymous
Not applicable

I solved my issue....

From PowerQuery I had transported the date as a text value and transformed the text value to a date in PowerBi desktop. which caused that in some cases the day and month where swapped.

Right now I have set the field type to date in PowerQuery and my issue is solved.

 

Kind Regards,

Ramon

Anonymous
Not applicable

@amitchandak ,

Thank you for your fast response, I have checked the link and tried to setup de right settings. But it didn't solve my issue:
I have checked the PowerBi service setting its on Default (browser language)
The Chrome settings are on Englisch (UK) which should have DD/MM/YYYY
And I have cleared cache and published/ tried again.

Any other ideas?
See images bellow:

UK language chrome.PNGcache.PNGPBI lang settings.PNG

amitchandak
Super User
Super User

@Anonymous , Have you changed any date setting like -https://nform.com.au/how-to-change-the-date-format-in-the-power-bi-service/

 

Also, Clear cache and try again

or

Republish, clear browser cache, refresh and check

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.