Jorge Daniel Atuesta
Jorge Daniel Atuesta

Reputation: 89

Tableau Calculation

I am wondering if it's possible to merge the "completed" column with the "Paid" column. So it would show "Completed/Paid' enter image description here

I tried the IFNULL([Completed],[Paid]) but it didn't work since they are in the same column [Payment Status].

I tried IF ZN(Completed) = 0 THEN Paid ELSE Completed END But it says there is an error in the code.

Thank you

Upvotes: 0

Views: 44

Answers (1)

Jorge Daniel Atuesta
Jorge Daniel Atuesta

Reputation: 89

This solved it. If you have any other code that would be useful that would be great.

Thanks!

IF [Payment status] in ("Completed", "Paid")

THEN "Completed/Paid"

ELSE [Payment status]

END

Upvotes: 1

Related Questions