Question

Scheduling alerts for weekends/weekdays

  • 22 November 2021
  • 2 replies
  • 12 views

Hi Looker Community - How could I go about creating a dimension that take sum of amount on weekday orders only, and one for weekends only?


Thanks,

 


2 replies

Userlevel 1

Hi @duncan.anderson-1634140937 ,

Are you trying to create a new dimension in the view file or just on a report with the “custom dimension” ?

If you are writing to the view file, you could write some case statements in the SQL parameter to achieve this.  With the “custom dimension” option, you could write some if statements and add your logic in there.

Hey there - I managed to solve this by using the day of week index for the existing date dimension. Thanks anyways for the response! 

Reply