Open In App

Case Function in Tableau

In this article, we will learn about aggregate functions, their types and uses in Tableau.

How CASE function works:

Syntax of CASE Function:

This function finds the first that matches the given <expression> and returns the corresponding value as a result.



CASE [<expression>]
    WHEN <expression> THEN <expression>
    WHEN <expression> THEN <expression>
    ELSE <expression>
END

Example:



Advantages of using CASE Function:

Disadvantages of using CASE Function:

Article Tags :