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

PBI doesn't load the right date from Power Query

Hi all,

 

In my Power Query I have a project showing the Date as 01/08/2020 after all modifications (first parsing date (because somehow it avoided some date errors with other datetime columns) and later transformed it to Date). That date is fine. But If I go to the Table view, the same project shows as 31/07/2020. The data base is up to date.

 

The original date is 2020-08-01T00:00:00+01:00, then I have two steps resulting in 01/08/2020, but in desktop the result is 31/07/2020. Why? Here the two steps in PQuery.

1) = Table.TransformColumns(#"Expanded PreawardLiaison1",{{"FunderDeadline", each Date.From(DateTimeZone.From(_)), type date}, {"BidSubmittedDate", each Date.From(DateTimeZone.From(_)), type date}, {"BidAwardedDate", each Date.From(DateTimeZone.From(_)), type date}}). Gives as result 01/08/2020.

2) = Table.TransformColumnTypes(#"Renamed Columns",{{"ProjectID", Int64.Type}, {"ProjectTitle", type text}, {"Status", type text}, {"ProjectType", type text}, {"Funder", type text}, {"HESAFunderCategory", type text}, {"NameofCall", type text}, {"FunderDeadline", type date}, {"BidSubmittedDate", type date}, {"BidAwardedDate", type date}, {"ProjectLead.Login", type text}, {"ProjectLead.Display", type text}, {"CoInvestigators.Login", type text}, {"CoInvestigators.Display", type text}, {"LeadOrganisation", type text}, {"Collaborators", type text}, {"Subawardees", type text}, {"Partners", type text}, {"OtherOrganisations", type text}, {"LeadOrgUnit", type text}, {"Themes", type text}, {"ResearchCentresGroups", type text}, {"PreAwardLiaison", type text}, {"BusinessLiaison", type text}, {"PricetoFunderexPartnerCosts", type number}, {"LeadSubproject", type text}, {"OrgUnit", type text}, {"PricetoFunder", type number}}). Keeps the result as 01/08/2020.

 

Thanks.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, finally I found the problem.

The problem was that the data published on PBI Service didn't refresh properly the date (refreshing every day). 

So, I did download the lastest PBIX file from the PBI Service, refreshed the data on PBI Desktop, and the date updated. Then I published back the whole data again to PBI Service.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi, finally I found the problem.

The problem was that the data published on PBI Service didn't refresh properly the date (refreshing every day). 

So, I did download the lastest PBIX file from the PBI Service, refreshed the data on PBI Desktop, and the date updated. Then I published back the whole data again to PBI Service.

v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

Please review the solution in the following threads with same problem, hope they can help you resolve the problem.

Table content different in Query Editor and Table View

Why I get different data in Power Query and Table View for the same field?

Difference between data in Query Editor and Data View

Best Regards

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

Sorry, didn't help. I updated cache and have latest version. Any guidance?

DataZoe
Employee
Employee

@Anonymous I find having dates with the timezone part can lead to unwanted results sometimes. Have you tried removing the timezone and working with it instead just as a datetime?

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Anonymous
Not applicable

Hi,

 

Thanks for your response. Is not what I did in the first step? In that step, the resulting value is 01/08/2020 with no time or zone. Or maybe you refer to something else?

 

Thanks.

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.