Skip to content

Using filter in rollup? #272

Answered by jheer
stas-sl asked this question in Q&A
Apr 17, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Hmm, it looks like pivot is not handling count() as expected. I'll need to look into that.

In the meantime, here is an alternative that works using sum:

t.groupby('group')
 .pivot('answer', { value: () => op.sum(1) })

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@stas-sl
Comment options

@stas-sl
Comment options

@mhkeller
Comment options

@stas-sl
Comment options

Answer selected by jheer
Comment options

You must be logged in to vote
2 replies
@mhkeller
Comment options

@stas-sl
Comment options

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