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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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
Partner - Master II
Partner - Master II

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
Partner - Master II
Partner - Master II

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 ?