EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB12968: CASE or CASEV functions generate errors when used in attribute forms in MicroStrategy


Community Admin

• Strategy


This article describes limitations of the case and casev functions in MicroStrategy.

Symptom

If a CaseV statement is used within an attribute form, an error is encountered when a report containing the Attribute is executed in Strategy.
For example, an attribute may be created using a the CaseV function:

ka04W000000OdPiQAK_0EM440000002Faz.jpeg

A report containing this attribute produces the following error:

ka04W000000OdPiQAK_0EM440000002Fb6.jpeg


Status: Execution failed
Error: SQL Engine got an Exception from DFC: [DFCENGINE]Engine Logic: Generate SQL for attribute form 
expression failed, please check if the expression is valid.Error in Process method of Component: 
SQLEngineServer, Project1, Job 1527, Error Code= -2147212800.

 

Cause

The Strategy CASE and CASEV functions are designed to evaluate in the Analytical Engine over metric result data. Attribute form expressions must be rendered into SQL and cannot use any Strategy functions specific to the Analytical Engine.
 

Action

If the CASE expression has only one branch -- i.e., one condition, a true expression and a false expression -- the Strategy IF function may be used instead.
IF(condition, true- expression, false-expression)
Note that the IF function cannot be nested. If multiple branches are required, users should write the exact CASE statement syntax for the database platform using ApplySimple.
For more information regarding Case statements, refer to the following Strategy Knowledge Base document:
 
KB7127: Case and CaseV functions in the MicroStrategy Analytical Engine
 


Comment

0 comments

Details

Knowledge Article

Published:

May 11, 2017

Last Updated:

May 11, 2017