Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Sumif Table

SergioWW
6 - Meteoroid

Hello,

 

I would like to create a pivot table conditionally summarizing a column in my raw data. Please examples below:

Raw Data:

BlueRedGreenViews
TrueTrueFalse33
TrueFalseTrue4
FalseTrueTrue17
FalseFalseTrue20

  

Desired output table

ColorTrueFalse
RedSum of views if trueSum of views if false
BlueSum of views if trueSum of views if false
GreenSum of views if trueSum of views if false

 

Any insight would be appreciated.

 

Thanks!!

3 REPLIES 3
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @SergioWW,

 

You could do this with a transpose, followed by a crosstab to get the data in the format you are looking for:

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

SergioWW
6 - Meteoroid

Solved, thank you!

SergioWW
6 - Meteoroid

Solved, thank you!!

Labels