Forum Discussion

mattsampson's avatar
mattsampson
Icon for Helper I rankHelper I
6 years ago

DateDiff shows different result in Desktop vs web

Hi Guys,

 

I've got a field within a table that stores the date/time a record was created. This is stored in the UK setting - I.e: 24/04/2020 09:15.

I have another field that has a measure applied which calculates the days since the date shown and stores a numerical value - 

Days_since_last_update = DATEDIFF(COVIDStaffList[LastUpdated],TODAY(),DAY).
 
When I'm in the desktop app this works perfectly. The date in the 'LastUpdated' column says 24/04/2020 09:15, and in the "Days_since_last_update" field it says 7 (or whatever is the correct number). This pulls through to the web view fine.
 
However, if the date in the 'LastUpdate' column is today 01/05/2020 13:45, the Desktop app shows "Days_since_last_update" field as 0, which is correct. However when I look at that in the web view it shows it at 117. 
 
Has anyone seen this before??
 
Best wishes
Matt 
 

5 Replies