1

I use below code to calculate the difference between two columns from remote tables but the output is all zero!

#+name: tbl1
| x |
| 1 | 
| 2 | 
| 3 |

#+name: tbl2
| y |
| 1 |
| 1 |
| 1 |

#+name: tbl3
| diff |
|    0 |
|    0 |
|    0 |
#+TBLFM: @2$1..@>$1=remote(tbl1,$1) - remote(tbl2,$1)
2
  • 1
    refer to orgmode manual orgmode.org/org.html, search remote(FOO, @@#$1) to see details
    – lucky1928
    Jan 31 '21 at 18:10
  • This seems to indicate that you solved your problem. If so, you should write an answer for it (and note that you can accept your own answer, thereby indicating to future visitors that the problem is solved). BTW, here's a more exact link to the documentation.
    – NickD
    Jan 31 '21 at 20:51
1
#+name: tbl1
| x |
| 1 | 
| 2 | 
| 3 |

#+name: tbl2
| y |
| 1 |
| 1 |
| 1 |

#+name: tbl3
| diff |
|    0 |
|    1 |
|    2 |
 #+TBLFM: @2$1..@>$1=remote(tbl1,@@#$1) - remote(tbl2,@@#$1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.