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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
spetushigxpa
Contributor
Contributor

Frequency counts of "binary" dimensions

Hello,

I have multiple dimensions in each record with either a 'Yes' or a 'No' value and would like to display a frequency count when 'Yes' appears against a dimensions.

Example:

IndexNumReporterQ1Q2Q3Q4Q5Q6...Qn-1Qn
0001reporter AYesNoYesNoYesYes...NoNo
0002reporter BNoYesYesYesYesYes...YesYes
0003reporter BNoNoYesYesNoYes...NoYes
0004reporter CYesNoNoNoYesYes...NoYes
0010reporter AN/AYesNoN/ANoYes...N/AYes
.................................

I would like to show a horizontal bar chart, where the x-axis has the dimensions: Q1 to Qn and the y-axis shows the counts of 'Yes' against each dimension. some kind of histogram of 'Yes' counts against the corresponding dimensions.

Thank you

Sokol

2 Replies
marcus_sommer

Just transform your data with The Crosstable Load into a "normal" table which will create a dimension-column for your 'Q*' and one Yes/No measure-column and with both you could create your chart whereby the expression might be look like: count({< [measure-column] = {'Yes'}>} [measure-column]).

- Marcus

Anonymous
Not applicable

Hi Sokol,

Please find the below

Tab1:

CrossTable (Quarter, Status, 2)

LOAD IndexNum,

     Reporter,

     Q1,

     Q2,

     Q3,

     Q4,

     Q5,

     Q6

FROM

[..\Desktop\Book1.xlsx]

(ooxml, embedded labels, table is Sheet3);

and create a bar chart with Quarter as dimension and Count({<Status={'Yes'}>} Status) as expression. You will get the below result.

3.JPG