Skip to content
Discussion options

You must be logged in to vote

I think you can use FLATTEN to make your calculated value before grouping - then sum it like any array:

TABLE sum(rows.Calculation) AS "ECTS Sum", 
            sum(rows.Calculation) / length(rows) AS "grade average"
FROM outgoing([[#]])
FLATTEN (ECTS * default(grade, 0) AS Calculation
GROUP BY ...

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@BaumiCoder
Comment options

Comment options

You must be logged in to vote
1 reply
@BaumiCoder
Comment options

Answer selected by BaumiCoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants