Deduct `datediff('week'...)`? Not sure how Tableau works but I think that would count the number of week transitions (where week starts on Sunday anyway.)
– shawnt00Aug 02 '21 at 02:51
Offset by week transitions. In case first day is Sunday start range one day earlier: `- DATEDIFF('week', MIN([Date]-1),MAX([Date]), 'sunday')`
– shawnt00Aug 02 '21 at 02:57
Hi! @shawnt00. Additional question though. What if I want the complete days in a month to appear since in my raw data for some categories has no date entry for example:
Agent A January 1
Agent A January 1
Agent A January 3
So it only count 2 days (jan 1 & 3).
I will be using this as a divisor to get the average that's why I needed the complete days.
– COCOAug 02 '21 at 06:42
I don't know enough about your problem or Tableau to answer. Often this is a join against a calendar table. Try searching for "densification".
– shawnt00Aug 02 '21 at 07:13