Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with dimension

Hi, I want to create a bar chart and my source data looks like presented below :

ProjectTask
A1
A2
A3
B4
B5
C6
C7

The problem is that from Project C i want just one Task '6' and i don't want to see others from this project.

Any idea how to do this ?

7 Replies
MK_QSL
MVP
MVP

Temp:

LOAD Project,

     Task

FROM

[http://community.qlik.com/thread/126410]

(html, codepage is 1252, embedded labels, table is @1)

Where Project <> 'C';

Concatenate

LOAD Project,

     Task

FROM

[http://community.qlik.com/thread/126410]

(html, codepage is 1252, embedded labels, table is @1)

Where Project = 'C' and Task = 6;

Not applicable
Author

Is there any way to do this not on a scrip level ?

Jason_Michaelides
Luminary Alumni
Luminary Alumni

LOAD

  Project,

  Task

FROM Data....

WHERE Project <> 'C'

OR (Project = 'C' AND Task = 6);

hope this helps,

Jason

Anonymous
Not applicable
Author

Use a Calculated Dimension on your Chart :

=if ( not ( Project='C' and Task=7) , Project )

..and tick the 'Suppress When Value is Null' with this Calculated Dimension.

Jason_Michaelides
Luminary Alumni
Luminary Alumni

If you wanted to do this in the UI you should probably create a third field in the script that joins project and task, something like:

Project & ':' & Task AS ProjectTask

Then you can select the values you want and lock the field to exclude any tasks other than 6 for project C.

Hope this helps,

Jason

amit_saini
Master III
Master III

Jakub,

Please see the attachment.

Thanks,

MK_QSL
MVP
MVP

Like this ?