Hello, I am clocking a number of tasks and need a summary. The functionality provided by the org-clock table is ideal for my use case.
However, the total time summaries use numbers of days when the number of hours exceeds 24. Although this is fine most of the time, I would like to have total hours instead. Is this possible? More importantly, the ":formula %" option does not work as soon as days appear in the summaries! The calculations for the percentages use only the hours in the totals, regardless of the number of days leading to some very interesting results (percentages > 100). I don't know enough emacs calc to start to suggest how this could be fixed unfortunately... :( ECM attached. Any pointers appreciated! Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2-20-gc5f370
* clocking ** task A CLOCK: [2013-09-21 Sat 12:00]--[2013-09-21 Sat 18:00] => 6:00 CLOCK: [2013-09-19 Thu 14:49]--[2013-09-19 Thu 17:50] => 3:01 CLOCK: [2013-09-19 Thu 08:49]--[2013-09-19 Thu 11:50] => 3:01 ** task B CLOCK: [2013-09-20 Fri 08:49]--[2013-09-20 Fri 18:50] => 10:01 CLOCK: [2013-09-19 Thu 11:50]--[2013-09-19 Thu 14:40] => 2:50 ** task C CLOCK: [2013-09-18 Wed 08:00]--[2013-09-18 Wed 14:50] => 6:50 CLOCK: [2013-09-17 Tue 08:35]--[2013-09-17 Tue 18:50] => 10:15 CLOCK: [2013-09-16 Mon 08:45]--[2013-09-16 Mon 16:50] => 8:05 ** Summary #+BEGIN: clocktable :maxlevel 2 :scope file :formula % #+CAPTION: Clock summary at [2013-09-29 Sun 13:29] | Headline | Time | | % | |------------+---------+---------+-------| | *Total time* | *2d 2:03* | | 100.0 | |------------+---------+---------+-------| | clocking | 2d 2:03 | | 100.0 | | \__ task A | | 12:02 | 587.0 | | \__ task B | | 12:51 | 626.8 | | \__ task C | | 1d 1:10 | 56.9 | #+TBLFM: $4='(org-clock-time% @2$2 $2..$3);%.1f #+END: