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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

dimension if with variable

i ,

I'm trying to create a calculated dimension using a variable, but I'm not getting it.

In an attachment I send a small application that intends to explain what I intend.

Put in dimension anything like:

= If (Dim1 = $ (vDisplayMaxDim1), 'A',

   If (Dim1 = $ (vDisplayMinDim1), 'B', 'C'))

If i create 1 text field with the variable works fine, but in dimension if no.

some help ?

1 Solution

Accepted Solutions
sunny_talwar

May be look at the attached

UPDATE: For variable, I added = sign in front of the expression in the variable definition

Capture.PNG

For the other method, you need to add TOTAL

=if (Dim1=max(TOTAL Dim1),'A',

  if( Dim1=min(TOTAL Dim1),'B','C'))

View solution in original post

1 Reply
sunny_talwar

May be look at the attached

UPDATE: For variable, I added = sign in front of the expression in the variable definition

Capture.PNG

For the other method, you need to add TOTAL

=if (Dim1=max(TOTAL Dim1),'A',

  if( Dim1=min(TOTAL Dim1),'B','C'))