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

KB14135: When using text flags ‘Y’ and ‘N’, the error ‘Invalid element value “Y” for attribute “Attribute Name” (form). Expected value type is numeric’ occurs in MicroStrategy Desktop 8.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


SYMPTOM:
A user creates an attribute using an Apply Simple statement referring to the comparison of two tables in Strategy Desktop 8.x, as shown below:
 
ApplySimple(`case WHEN #0 > #1 THEN `Y` ELSE `N` END`, , )
The following error appears:
 

ka04W000001IqIdQAK_0EM440000002VDL.jpeg

Invalid element value 'Y' for attribute 'LSAT HI Score Different' (form "). Expected value type is numeric.
CAUSE:
The form format in the attribute is not set to TEXT even if the tables contain date or numeric values.
 
ACTION:
Follow the steps below to resolve this issue:
1. Open the Attribute Editor and open the Apply Simple Expression.
2. Edit the Form Format to TEXT, as shown below:

ka04W000001IqIdQAK_0EM440000002boS.gif

 
3. Click Yes and save the attribute when the following window appears:

ka04W000001IqIdQAK_0EM440000002VDH.jpeg

The form selected display type is inconsistent with the data type of the selected column alias. This may result in SQL generation problems when running reports that use this attribute. You may need to use a different column alias to prevent this problem. Do you still want to continue?
For more information about this message, refer to the following Strategy Knowledge Base technical note:
KB14102: ‘The form selected display type is inconsistent with the data type of the selected column alias. … You may need to use a different column ...’ message appears when changing an attribute form expression in MicroStrategy Developer 9.x - 10.x ​
 


Comment

0 comments

Details

Knowledge Article

Published:

July 18, 2017

Last Updated:

July 18, 2017