Building_Logical_Statements
Building_Logical_Statements
For example, you might want to quickly see if profit for each region is
above or below a certain threshold.
Tests a series of expressions returning the <then> value for the first true <expr>.
If there is no true <exp> including ELSE, then Null is returned.
BUILDING LOGICAL STATEMENTS
CASE <expression>
WHEN <value1> THEN <return1>
WHEN <value2> THEN <return2> ...
ELSE <default return>
END
BUILDING LOGICAL STATEMENTS
Description of CASE Function:
Step 4: The new calculated field appears under Measures in the Data pane.
Just like other fields, we can use it in one or more visualizations.
STEPS TO CREATE IF THEN ELSEIF CALCULATION
Step 5: To confirm if the calculated condition is working correctly create the
below mentioned Viz
Rows Shelf: Sub-Category, IF THEN ELSEIF Cond (New Calculated Field)
Label of Marks Card: Profit
Color of Marks Card: IF THEN ELSEIF Cond (New Calculated Field)
Sort descending by SUM of Profit
STEPS TO CREATE CASE CALCULATION