Forum Discussion
STS_Joshua
Helper II
7 years agoUTC time zone work around help
Hi all, I have a report that uses the TODAY() function to calculate a few things such as sales made today: today = CALCULATE(SUMX('Open','Open'[Quantity]*'Open'[Price]*'Open'[DocRate]),'Open'[DocDa...
- 7 years ago
Hi STS_Joshua
Please check if below formula could help.
today = SUMX ( FILTER ( 'Open', 'Open'[DocDate] = LASTDATE ( 'Open'[DocDate] ) ), 'Open'[Quantity] * 'Open'[Price] * 'Open'[DocRate] )Regards,
STS_Joshua
Helper II
7 years agoI'm going to try replacing TODAY() with NOW()-(6/24) which should hopefully subtract 6 hours from UTC and make the times match at least online. On desktop the report will think it's 6 hours prior but I don't think I'll have many reasons to run this report at 5am...
I do hope doing it this way won't just attempt to subtract 6 hours from UTC at midnight in this sort of fashion:
NOW(): 5/24/2019 00:00 = NOW()-(6/24): 5/24/2019 00:00
NOW(): 5/24/2019 01:00 = NOW()-(6/24): 5/24/2019 00:00
NOW(): 5/24/2019 02:00 = NOW()-(6/24): 5/24/2019 00:00
...
NOW(): 5/24/2019 07:00 = NOW()-(6/24): 5/24/2019 01:00