Forum Discussion

some_analyst's avatar
some_analyst
Icon for Helper I rankHelper I
1 year ago
Solved

Changing when 'Today' starts on the server

I have a slicer which shows me the date: Formatted Date Full = VAR SelectedDate = dim_date[PK_date] RETURN IF( SelectedDate = TODAY(), "Today", CONCATENATE( CONCATENATE(dim_dat...
  • danextian's avatar
    1 year ago

    Hi some_analyst 

     

    Use UTCNOW() instead of TODAY() to reflect the current UTC time. Note that UTCTODAY() always returns the UTC datetime at 12:00 AM, regardless of the actual time of day in UTC.  Also, you can simply the date format to just  FORMAT(SelectedDate, "dddd, dd/mm/yyyy") instead of using CONCATENATE.