Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
apthansh
Creator
Creator

Bar chart help.

I have the data as below Sample

ID  Lend   Borrow   Spend    

1     Yes     No         Yes

2     No      Yes        No

3     No      Yes        Yes

I need to create a stacked bar chart where each bar will represent the type of Expense and it will show the count of Yes and no in the stacked bar.

How can I do this ?

Thanks much.

1 Solution

Accepted Solutions
sunny_talwar

Try CrossTable load:

Table:

CrossTable(Type, Flag)

LOAD * Inline [

ID,  Lend,   Borrow,   Spend   

1,     Yes,     No,         Yes

2,     No,      Yes,        No

3,     No,      Yes,        Yes

];


Capture.PNG

View solution in original post

3 Replies
migueldelval
Specialist
Specialist

Hi  AnsH

Maybe you can use "count" at the expression definition (=count(Lend).

Good Luck

sunny_talwar

Try CrossTable load:

Table:

CrossTable(Type, Flag)

LOAD * Inline [

ID,  Lend,   Borrow,   Spend   

1,     Yes,     No,         Yes

2,     No,      Yes,        No

3,     No,      Yes,        Yes

];


Capture.PNG

apthansh
Creator
Creator
Author

Awesome Sunny. Thank you very much. Appreciate your time and help.