I have some columns with Yes/No data and am trying to convert them to 1/0 so I can preform calculations and counts. What formula in calculations will help me perform this swap?
I don't know what calculation formula to use, but I found this one online:
CASE
WHEN [DATASET] in ('Y') THEN '1'
ELSE '0'
END
I get the error message: The expression is not valid. I also tried sorting the DATASET by group, to group Yes to 1 and group No to 0, but then that messed up the visualizations in my dashboard.
What is the best way to go about this?
------------------------------
Kristen Hafford
------------------------------
#CognosAnalyticswithWatson