Hello Looker community,
I'm working on a project where I need to count the unique working days based on data in a Google Sheet. The Google Sheet has the following structure:
A - Name B - Date C - GT Type (LD\SR\OD\else) D - Images E - Boxes F - Set Name (could be many) G - Task Type (tagging\fixing\ filtering\other) H - Notes (anything they want to add)
I have created several parameters in Looker, including a "working days" parameter. The current formula I'm using is COUNT(DISTINCT(date))
. However, this counts the working days twice if there are two reports a day, while it should count it as only one working day.
Unfortunately, I haven't been able to find a solution for this issue using Looker's built-in functions. I tried using TRUNC_DAYS
, but it's not supported in Looker.
I'm looking for a solution that allows me to count distinct working days using the existing parameters in Looker without modifying the underlying Google Sheet data. If anyone has encountered a similar problem or knows a solution, your help would be greatly appreciated!
Thank you in advance!