Skip to main content

StateName - chart function

This chart function returns the state name of the object in which it is used. The QlikView developer can use this function to have dynamic text and colors when an object’s state is changed. It is important to note that this function works on objects only. It cannot be used in a chart expression to determine the state that the expression refers to.

Syntax:  

StateName ()

Information noteAlternate states can be defined under Settings > Document Properties > General > Alternate States.

Example 1:  

Dynamic Text

='Region - ' & if(StateName() = '$', 'Default', StateName())

Example 2:  

Dynamic Colors

if(StateName() = 'Group 1', rgb(152, 171, 206),

if(StateName() = 'Group 2', rgb(187, 200, 179),

rgb(210, 210, 210)

)

)

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com