Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
s10157754
Creator III
Creator III

Display 2 expression values in a stacked bar chart

Dear Qlikview Experts,

I had created a stacked bar chart with multiple expressions.

E.g. 1) Count(A)/Count(Result)

        2) Count(B)/Count(Result)

        3) Count(C)/Count(Result)

Now I would like to add 3 expressions to display numerical values beside the respective % in the segment.

E.g. 1) Count(A)

        2) Count(B)

        3) Count(C)

May I know is it possible for me to achieve it? Thanks a lot in advance!

Capture.PNG

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Zhang,

You can use Dual function in this case. Try something like,

1) Dual(Num(Count(A)/Count(Result), '#,##0%')& ' (' & Count(A) & ') ' ,Count(A)/Count(Result) )


2) Dual(Num(Count(B)/Count(Result), '#,##0%') & ' (' & Count(B) & ') ' ,Count(B)/Count(Result) )


3) Dual(Num(Count(C)/Count(Result), '#,##0%') & ' (' & Count(C) & ') ' ,Count(C)/Count(Result) )

View solution in original post

3 Replies
tamilarasu
Champion
Champion

Hi Zhang,

You can use Dual function in this case. Try something like,

1) Dual(Num(Count(A)/Count(Result), '#,##0%')& ' (' & Count(A) & ') ' ,Count(A)/Count(Result) )


2) Dual(Num(Count(B)/Count(Result), '#,##0%') & ' (' & Count(B) & ') ' ,Count(B)/Count(Result) )


3) Dual(Num(Count(C)/Count(Result), '#,##0%') & ' (' & Count(C) & ') ' ,Count(C)/Count(Result) )

s10157754
Creator III
Creator III
Author

Dear Tamil,

Once again, thank you so much for your help! It works like a charm!

Best Regards,

QianNing

tamilarasu
Champion
Champion

Great. Have a great day, Zhang!