Alteryx Designer Desktop Discussions

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

Formulas based on Cross Tab Results

jackchoy
7 - Meteor

I'm using a Cross Tab tool to create pass/fail metrics.

 

TrueFalse
105

 

TrueFalsePass/Fail %
105True/(True + False) = 66.66%

 

However, because there can be cases where there are no True or no False values in the underlying data, the Cross Tab does not always create both columns.  So I sometimes get compilation errors where either the True or False column name is not found by the Formula tool.  Is there a way to always pass the column header so that it will always run successfully?

1 REPLY 1
Christina_H
14 - Magnetar

Set up a text input with True/False columns, no data.  Union to your cross-tab output to force both columns to exist.

Christina_H_0-1665761245689.png

Deleting the False column from your data gives this output

Christina_H_1-1665761278745.png

 

Labels