Forum Discussion

mork's avatar
mork
Helper V
10 years ago

Group By month

Hello all,

I have a table of my Resources work per week that I'm trying to group by month. How can I do that? Example table bellow.

 

 

ResourceName                   Week#                 WeekStartDate              WorkInHours

resource 1                               1                             1/1/16                            40

resource 1                               2                              8/1/16                           32

resource 2                               1                              1/1/16                           32

resource 2                                2                             8/1/16                           40

.

.

.

.

etc.

 

I want to group By month and resource, That way I will have on row for each resource's and month's work. I want something similar to bellow:

 

 

 

ResourceName                   Month#                MonthStartDate              WorkInHours

resource 1                               1                             1/1/16                            160

resource 1                               2                              1/2/16                           152

resource 2                               1                              1/1/16                           160

resource 2                                2                             1/2/16                           152

14 Replies