pivot with sum

Comments

2 comments

  • Official comment
    Joel Stewart

    I would accomplish this particular use case using a GROUPBY and GROUPSUM function with a conditional statement to sum the members value if na_group is true or 0 if it is false:

    GROUPBY(#MySheet!year)
    GROUPBY(#MySheet!month)
    GROUPSUM(IF(#MySheet!na_group;#MySheet!members;0))
    GROUPSUM(IF(#MySheet!asia_group;#MySheet!members;0))

    For the global_total_members, I would just add the partial columns together: i.e. #C + #D

    Comment actions Permalink
  • Benjamin Runnels

    Yes, that worked. Thank You! I know I was trying that as well but I think I keep messing up the syntax with commas instead of semicolons.

    0
    Comment actions Permalink

Please sign in to leave a comment.