Ratio between Aggregated Columns #2994
Unanswered
momed-sakka
asked this question in
Q&A
Replies: 1 comment
-
You may use a pivoted const table = await worker.table(superstore_arrow);
const view = await table.view({ group_by: ["State"] });
const table2 = await worker.table(view, { index: "State (Group by 1)" });
await viewer.load(table2);
await viewer.restore({
"filter": [["State (Group by 1)", "is not null", null]],
"expressions": {
"\"Sales\" / \"Profit\"": "\"Sales\" / \"Profit\""
},
"group_by": [
"State (Group by 1)"
],
"columns": [
"\"Sales\" / \"Profit\""
],
}) This doesn't work well with real-time data yet, you must be careful to hook up both |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
is it possible to create a column as a ratio between two columns (post aggregation) in pivot mode ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions