in reply to Jonathan Lamothe

Yeah, I'd love to show you! I keep meaning to write a blog post.

In summary, table references are updated when that table's cells are reordered.

If another table refers to a cell in this table, that reference is not updated when the cell moves.

You can name a field! I was able to decipher this confusing illustration after an hour of staring: orgmode.org/org.html#Advanced-…

I'd already decided to do each tax form as its own spreadsheet: gist.github.com/shapr/84e37fdf…

Does the gist help?

in reply to Shae Erisson

@Shae Erisson A pivot table essentially takes values from a source table and sorts them into buckets. Here's a simple example I built manually.
#+NAME: source
| Bill | Account  | Amount |
|------+----------+--------|
| foo  | chequing |  13.50 |
| bar  | savings  |  22.75 |
| baz  | chequing |   9.50 |
| quux | savings  |  11.15 |

#+NAME: pivot
| Account  | Total |
|----------+-------|
| chequing | 23.00 |
| savings  | 33.90 |
#+TBLFM: @2$2=remote(source,@2$3)+remote(source,@4$3);%1.2f::@3$2=remote(source,@3$3)+remote(source,@5$3);%1.2f
in reply to Jonathan Lamothe

Hi @me
If you insert a formula in a table cell #orgmode will put it after the table in a special line (so you can see and edit it after) and insert the result in place. Of course, it can be recalculated anytime you want to.

But for a picot table, maybe you can also use org-aggregate? > github.com/tbanel/orgaggregate

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.