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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Data is offset by 1 day from the Excel data source

Good morning,

I'm having an issue with date being offset by 1 day less on PBI compared to my data source in excel,

Example is that in Excel EE A have test done on 24th, 25th and 30th. PBI is showing those tests being done on 23rd, 24th and 29th.

 

Date formula:

Date = ('INF - Infinity Data'[F_CRTM]/86400)+(25569)-(.20833333)-(.21875)

 

Does anyone know what is the paremeter to change in order to match one day?

Thanks 😃

 

Leo

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the support, the solution was super simple.

 

I justhad to add 1 day in the formula. I found the parameter related to it.

 

Before:

Date = ('INF - Infinity Data'[F_CRTM]/86400)+(25569)-(.20833333)-(.21875)

After adjusted:

Date = ('INF - Infinity Data'[F_CRTM]/86400)+(25570)-(.20833333)-(.21875)

 

Kind Regards

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

Can you try like

Date = ('INF - Infinity Data'[F_CRTM]/86400.0)+(25569)-(.20833333)-(.21875)

 

 

Can you share sample data and sample output. that will to understand issue well

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
Anonymous
Not applicable

I can't share the whole file, but I put in Excel with the formulas used and if I changed them or not. The interesting thing is that the value is correct. It match perfectly, but with 1 day offset.

 

PBI EXCEL       
MonthDayTimeEmployeeDays/NightsShiftValue DateTimeEmployeeValue       
March231899-12-30 04:50:54Brett NightsD265 3/30/20204:12:47 AMBrett 868       
March291899-12-30 04:12:47Brett NightsD868 3/25/20204:42:44 AMBrett 1309       
March241899-12-30 04:42:44Brett NightsD1309 3/24/20204:50:54 AMBrett 265       
March261899-12-30 04:51:31Phillip NightsB833 3/27/20204:51:31 AMPhillip 833       
March251899-12-30 05:05:25Phillip DaysA2514 3/26/20205:05:25 AMPhillip 2514       
March301899-12-30 16:20:22Rodrigo DaysA554 3/26/20204:48:14 PMRodrigo 827       
March261899-12-30 16:48:14RodrigoDaysA827 3/25/20204:51:59 PMRodrigo1621       
March251899-12-30 16:51:59RodrigoDaysA1621            
                   
Date = ('INF - Infinity Data'[F_CRTM]/86400)+(25569)-(.20833333)-(.21875) - (Not modified)          
Days/Nights = if('INF - Infinity Data'[Time]< 'INF - Infinity Data'[Morning],"Nights",IF('INF - Infinity Data'[Time]>'INF - Infinity Data'[Afternoon],"Nights","Days")) - (Not Modified)
Time = TIMEVALUE('INF - Infinity Data'[Date]+.26042) - (I had to modify this formula in order to match the time btw source and PBI)      
Morning = TIME(5,0,0) - (Modified in order to match shift time)             
Afternoon = TIME(17,0,0) - (Modified in order to match shift time)             
Anonymous
Not applicable

Thanks for the support, the solution was super simple.

 

I justhad to add 1 day in the formula. I found the parameter related to it.

 

Before:

Date = ('INF - Infinity Data'[F_CRTM]/86400)+(25569)-(.20833333)-(.21875)

After adjusted:

Date = ('INF - Infinity Data'[F_CRTM]/86400)+(25570)-(.20833333)-(.21875)

 

Kind Regards

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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