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
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

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors