Hi,
Hopefully this isn’t too convoluted.
Each tiddler has a field containing the week number (‘week’) and the first table groups the calculations according to the week number
<table>
<tr>
<td> week</td>
<td> A</td>
<td> B</td>
</tr>
<$list filter="[tag[current]field:Y[1]get[week]unique[]!sort[]]" variable="week">
<tr>
<td> <<week>> </td>
<$list filter="[tag[current]field:week<week>get[week]count[]] "variable="A">
<td> <<A>> </td>
<$list filter="[tag[current]field:week<week>] :filter[get[r]compare:number:gt[0]]:and[count[]] " variable="B">
<td> <<B>> </td>
</$list>
What I’d also like to have is the calculations grouped by the day of the week. I used the created date, and much to my surprise, the first line does seem to convert this to the days and then group them, but the rest of the calculations don’t work - probably because it’s the completely wrong approach
<table>
<tr>
<td> Day</td>
<td> A</td>
<td> B</td>
</tr>
<$list filter=" [tag[current]field:Y[1]get[created]format:date[DDD]unique[]sort[]] " variable="day">
<tr>
<td> <<day>> </td>
<$list filter="[tag[current]field:created<day>get[created]count[]] "variable="A">
<td> <<A>> </td>
<$list filter="[tag[current]field:created<day>] :filter[get[r]compare:number:gt[0]]:and[count[]] " variable="B">
<td> <<B>> </td>
Any pointers much appreciated.
Thanks
Jon