Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Calculated Dimension

I am struggling creating a simlpe calculated dimension in a straight table

Basically all I want is a list box that would take the "ZONE" field below and create a "SEGMENT" field that would have the following criteria  ..if begins with "USA" than "USA", otherwise "NON-USA"

ZONE

USA - NE

USA - SW

USA - SE

CANADA - W

CANADA - E

MEXICO - W

MEXICO - E

What my calculated dimension (in a list box) would be:

SEGMENT

USA

NON - USA

Labels (1)
2 Replies
zagzebski
Creator
Creator
Author

apologize not trying to do it in a straight table... wabt to do it in a LIST BOX for selection by the end user

swuehl
Champion III
Champion III

From the field selection drop down in list box properties, select <Expression> and enter

=if(Left(ZONE,3)='USA','USA','Non USA')

Hope this helps,

Stefan