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

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

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