Sum of calculated fields #1350
-
Hello, I want to make a TABLE Query with a sum() of an "calcuated field". The "calculated field" in my case is a product of two fields of each row. It is like a sum of products. My Query
didn't work. I got this error:
This is an sample Vault for my problem: SumTests.zip Is there a way to archive this calculation with dataview? I would be thankful for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hmm, I think this may require DataviewJS currently, since there isn't an operation to zip together arrays. Might be worth adding a |
Beta Was this translation helpful? Give feedback.
-
I think you can use FLATTEN to make your calculated value before grouping - then sum it like any array:
|
Beta Was this translation helpful? Give feedback.
I think you can use FLATTEN to make your calculated value before grouping - then sum it like any array: