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: 
Not applicable

Multiple columns with 1 or 0 as value as dimensions in bar chart

Hi!

I have data in the following format:

Record IDAccess level 1Access level 2Access level 3Access level 4Access level 5Access level 6
65111101
66100000
67110010
68110100
69101000
70101111
71111111

I would like to use this data in a bar chart with one bar for each Access level, with the number of distinct record IDs with the value 1 for that access level. This is to answer the question "How many records had access level 1, 2, 3 and so on?". The value "1" means that the record had the access level, and "0" means it did not.

In other words, something like this:

Capture2.PNG.png

I would greatly appreciate some help with how to do this, preferably with set analysis. I'm guessing I need a calculated dimension, but I don't know what it should be. I've been thinking about using the aggr() funktion, but I can't think of a good expression.

Thanks in advance.

1 Solution

Accepted Solutions
MarcoWedel

Hi,

one solution might be:

QlikCommunity_Thread_137377_Pic1.JPG.jpg

QlikCommunity_Thread_137377_Pic2.JPG.jpg

QlikCommunity_Thread_137377_Pic3.JPG.jpg

QlikCommunity_Thread_137377_Pic4.JPG.jpg

tabAccess:

CrossTable ([Access Level], Access)

LOAD *

FROM [http://community.qlik.com/thread/137377] (html, codepage is 1252, embedded labels, table is @1);

hope this helps

regards

Marco

View solution in original post

4 Replies
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

Do you mean something like this?

check the attached example,

regards

Not applicable
Author

Hi Jaime and thank you for your response,

That is the kind of graph I am looking for. However, is it possible to enable selections from this graph? That is, I click on a bar and it updates my selection. I'm guessing I need a dimension for this to be possible?

MarcoWedel

Hi,

one solution might be:

QlikCommunity_Thread_137377_Pic1.JPG.jpg

QlikCommunity_Thread_137377_Pic2.JPG.jpg

QlikCommunity_Thread_137377_Pic3.JPG.jpg

QlikCommunity_Thread_137377_Pic4.JPG.jpg

tabAccess:

CrossTable ([Access Level], Access)

LOAD *

FROM [http://community.qlik.com/thread/137377] (html, codepage is 1252, embedded labels, table is @1);

hope this helps

regards

Marco

MarcoWedel

Hi,

are there any further questions?

regards

Marco