Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
new2qlik2
Contributor II
Contributor II

Chart with multiple dimensions

Hi,

My data is set up in the following format

Task A          |    Team A-Yes  | Team B - NULL |  Team C-Yes  |    Team D - NULL |     Team E - NULL

Task B          |    Team A-NULL  | Team B - NULL |  Team C-Yes   |   Team D - NULL |     Team E - NULL

Task C          |    Team A-Yes  | Team B - Yes  |  Team C-Yes  |    Team D - NULL |     Team E - Yes

Task D          |    Team A-NULL  | Team B - NULL |  Team C-NULL|   Team D - Yes|     Team E - Yes

I would like to set up a bar chart such that Team A, B, C, D, E are the X Axis and a count of (task) is the Y axis. I cannot get more than 2 dimensions in a bar chart though?

Labels (4)
6 Replies
anat
Master
Master

may be this is not the exact solution ,but we can get the desired results.

attached the qvw file.

hanna_choi
Partner - Creator
Partner - Creator

Hello New2qlik2.

could you are changing your table like below pictures?

multi dim.png

The X-axis is Team and Y-axis is count(Task).

multi dim bar chart.png

 

Best Regard

hanna.choi

Ravi_Nagmal
Contributor III
Contributor III

@new2qlik2 Try unticking show legend option under Appearance

Ravi_Nagmal_0-1703836054476.png

 

vinieme12
Champion III
Champion III

use CrossTable Load to unpivot your Dataset

CrossTable(TeamNumber, TeamName, 1)
temp:
load * Inline [
Task | Team1 | Team2 | Team3 | Team4 | Team5
Task A          |    Team A-Yes  | Team B - NULL |  Team C-Yes  |    Team D - NULL |     Team E - NULL

Task B          |    Team A-NULL  | Team B - NULL |  Team C-Yes   |   Team D - NULL |     Team E - NULL

Task C          |    Team A-Yes  | Team B - Yes  |  Team C-Yes  |    Team D - NULL |     Team E - Yes

Task D          |    Team A-NULL  | Team B - NULL |  Team C-NULL|   Team D - Yes|     Team E - Yes
]
(delimiter is '|');

Load *
,subfield(TeamName,'-',1) as new_teamName
,subfield(TeamName,'-',2) as new_teamYesNo
Resident temp;

drop table temp;

 

vinieme12_0-1704178125334.png

 

Then use   new_TeamName as X-Axis and 

Count(Task) as Y-axis

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Ahidhar
Creator III
Creator III

try this

tab:
CrossTable(Task1,Team1)
load * Inline
[
Task|Team A|Team B|Team C|Team D|Team E
Task A | Team A-Yes | Team B - NULL | Team C-Yes | Team D - NULL | Team E - NULL

Task B | Team A-NULL | Team B - NULL | Team C-Yes | Team D - NULL | Team E - NULL

Task C | Team A-Yes | Team B - Yes | Team C-Yes | Team D - NULL | Team E - Yes

Task D | Team A-NULL | Team B - NULL | Team C-NULL| Team D - Yes| Team E - Yes
]
(delimiter is '|');

tab1:
load Task,Team,"Yes/No" where not isnull("Yes/No");
load Task,Team,if("Yes/No"='NULL',null(),"Yes/No") as "Yes/No";
load
Task,
Task1 as Team,
trim(SubField(Team1,'-',2)) as "Yes/No"
resident tab; drop table tab;

Ahidhar_0-1704192499056.png

 

new2qlik2
Contributor II
Contributor II
Author

I was doing this with a powerquery in excel prior to loading data to Qlik. I am not trying to do away with the powerquery. Thank you for your suggestion though!