Would someone know how to write a GREL expression to get the combined total for each record.
I have a dataset that looks like this. It’s okay if each row in the Combined Total column shows the sum.
| Name | Grant Amount | Combined Total |
|---|---|---|
| A | 1000 | |
| 22326 | ||
| B | 10615 | |
| 16250 | ||
| C | 3000 | |
| 3000 | ||
| D | 78050 | |
| 1500 | ||
| E | 4055 | |
| 18979 | ||
| F | 5000 | |
| 12000 | ||
| 13000 | ||
| G | 6000 |
--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
value.toNumber()
row.record.cells["Grant Amount"].value.sum()
--
Thanks John, point noted.Thank you Owen, that worked perfectly!I also found an old post by Tom tackling the issue a different way: https://groups.google.com/d/msg/openrefine/WDhF6ZnF61o/Hdcc1O5hhJoJ
with(row.record.cells.Col2.value, vRs, vRs.sum() / vRs.length())

--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openrefine/a2fbd556-3e46-49b0-ab84-57d32037aa25%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openrefine/CAChbWaMjBaY%2BHMCA-BbEE3dwOXqn%2BPPhk_p0fNoezYGfYC_KgQ%40mail.gmail.com.
This is a great opportunity to ask again: will OR ever get the "pivot table" feature?
I use OR a lot for "exploratory" purposes, because Facets are great and just one click.I get to see easily which values are more frequent, get a sense of my dataset.Often, I want to sum up data attached to those values (the exact purpose of a pivot table, sorry I can't explain myself better).I know this is a long awaited request (I filed myself an issue on Github 9 years ago!¹), but I wanted to ask again because maybe you can tell me why it's not in the works.
--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openrefine/CAE9vqEFyXsdD_uJtVBsN0YT4oGBvV14nfM0kh16N%2BiW9TtUEhQ%40mail.gmail.com.