I am pulling several months worth of data. The data contains multiple rows for each date. One of my objectives is to get a count of the number of Mondays, number of Tuesdays, number of Wednesdays etc. contained in my data.
Since there are multiple rows of data for each date, I tried grouping by date. My thought was if I grouped by date, I could then use dayofweek and weekdayname to determine the count of the different days. However I keep getting an error when I try to create a formula using dayofweek at the group level.
At the detail level both of these formulas work fine:
1. dayofweek({CallArrivalPattern.CallDate})
2. weekdayname(dayofweek({CallArrivalPattern.CallDate}))
However this does not work:
DayOfWeek (GroupName ({CallArrivalPattern.CallDate}, "daily"))
It tells me "a date is required here" and highlights this:
GroupName ({CallArrivalPattern.CallDate}, "daily")
Since what I have rolled up at the group level are dates, I thought the group level data would be recognized as a date. Perhaps I have the syntax wrong?
I would like to understand what I am doing wrong here and how to use dayofweek at the group level. There may also be a much simpler way to try and achieve my objective of counting the days. I'd appreciate any advice you can give me.
Thanks!
Since there are multiple rows of data for each date, I tried grouping by date. My thought was if I grouped by date, I could then use dayofweek and weekdayname to determine the count of the different days. However I keep getting an error when I try to create a formula using dayofweek at the group level.
At the detail level both of these formulas work fine:
1. dayofweek({CallArrivalPattern.CallDate})
2. weekdayname(dayofweek({CallArrivalPattern.CallDate}))
However this does not work:
DayOfWeek (GroupName ({CallArrivalPattern.CallDate}, "daily"))
It tells me "a date is required here" and highlights this:
GroupName ({CallArrivalPattern.CallDate}, "daily")
Since what I have rolled up at the group level are dates, I thought the group level data would be recognized as a date. Perhaps I have the syntax wrong?
I would like to understand what I am doing wrong here and how to use dayofweek at the group level. There may also be a much simpler way to try and achieve my objective of counting the days. I'd appreciate any advice you can give me.
Thanks!