In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
Top Solution Authors