Scheduling alerts for weekends/weekdays

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,

0 2 133
2 REPLIES 2

Hi @duncan_anderson ,

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! 

Top Labels in this Space
Top Solution Authors