My case statement in Information design tool is throwing me error, Please help me in correcting it.
Error:
Syntax
CASE "MeasureList"."Select_a_Measure"
WHEN 'Commission' THEN @catalog('Y800')."OPH"."TRADEFACT_V"."REVENUE"
WHEN 'Concession' THEN @catalog('Y800')."OPH"."TRADEFACT_V"."QUANTITY"
ELSE 0
END
Please help out with this syntax in IDT. I am not sure this works with Information Design tool
CASE "MeasureList"."Select_a_Measure"
WHEN 'Commission' THEN @catalog('Y800')."OPH"."TRADEFACT_V"."REVENUE"
WHEN 'Concession' THEN @catalog('Y800')."OPH"."TRADEFACT_V"."QUANTITY"
ELSE 0
END
This may be trivial: Why do I see double quotes (" ") around Quantity & Revenue in the then part when the result values’ datatype is Integer? Double Quotes do not belong there.
That double quotes are displaying by default for any object irrespective of measure or dimension. In the original syntax i think he provided the object names not values thatswhy seeing those double quotes.
I am getting Unsupported signature ‘IFELSE(BIT, INTEGER, DOUBLE)’ error in my IDT multi source universe.
The syntax i am using for the calculation is:
Sum(Case when (MeasureA/MeasureC) =0 Then 0 Else ((MeasureA*MeasureB)/(MeasureA/MeasureC)) End).
With out case statement the syntax is parsing but giving Division zero error. If i use case statement i am getting above error. If i dont use else condition in the case statement then the syntax is parsing and getting all zero values.
Can anyone through some light on how to resolve this issue? I appreciate your help.