Hi,
I have a sql statement:
Select count(distinct case when fail_ct > 0 then 1 else 0) as failed,
Count(distinct case when price_ct > 0 then 1 else 0) as Price
From <table_name>;
The output I get is -
Failed 8
Price 10
The input data format is -
Order-id | fail_ct | price_ct
O1 | 0 | 2
O2 | 8 | 0
O3 | 8 | 2
Expected output -
Failed 2
Price 2
How can the same thing be achieved in alteryx?
Thanks!