Hi everyone,
I have properties project:: projectName and duration:: 2 per day and I would like to have for each week a list of the project and the total duration spent on each of them.
I would like to end up with a table that has 2 columns project and duration where each project name would appear only once and the duration is the sum of the duration for a particular project.
thank you for the quick reply. if the content of the project is a string this does not seems to work, however this works with if the projects are references.
I still encounter a major bug: if 2 occurences of the same project with the same duration appears, then only one is summed leading to the wrong sum. If the duration are different then the sum is calculated properly. Does someone know how we could fix the query proposed by @mentaloid to end up with the proper sum all the time?
EDIT/NOTE: this also does not seems to work with fractional number. for one project I have 4 entries, 8,7,1,8 he sums up to 16 instead of 24. If I change one of the 8 to 8.0 he sums to 88.07 ??!!??
I found the solution already proposed by @mentaloid in another post: Add decimal values
we need to add :with ?b in order to fix the proper counting.
we need to multiply by 1 to force the duration being interpreted as a number (* 1 ?sdur) ?duration)