Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
niha
Creator II
Creator II

calculated dimension

hi,

I have a dimension called task. it has say 12 tasl say a,b,c,d,e,f,g,h,i,j etc. I want to take only imp task for a calculation and say the imp task are a, b, c, d. I want to create a calculate column for that. Please suggest how to create and what will be the logic.

Thanks,

Niha

1 Solution

Accepted Solutions
JordyWegman
Partner - Master
Partner - Master

Hi Niha,

Try:

IF(Task = 'a' OR Task = 'b' OR Task = 'c' OR Task = 'd', 'IMP','Other')

Or in the script:

IF(Task = 'a' OR Task = 'b' OR Task = 'c' OR Task = 'd', 'IMP','Other') as NewDimension

Jordy

Climber

Work smarter, not harder

View solution in original post

2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Niha,

Try:

IF(Task = 'a' OR Task = 'b' OR Task = 'c' OR Task = 'd', 'IMP','Other')

Or in the script:

IF(Task = 'a' OR Task = 'b' OR Task = 'c' OR Task = 'd', 'IMP','Other') as NewDimension

Jordy

Climber

Work smarter, not harder
niha
Creator II
Creator II
Author

Thanks . That really worked and one step ahead. so I have now a new dimension with two field IMP and Other. when I created bar chart, ( custom object- Bar and area chart),

I found like below bar-chart. 

Untitled.png

But the requirements is to see only IMP_TASK as sliced. The IMP WORK only to be sliced like below . IMP_WORK which has been declared has to be shown like stacked bar chart as dimension. Untitled.png