Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Stacked bar chart with two dimension and two expression

Hi everyone!

I would like to create a bar chart showing:

1) sales 2015 (ytd)

2) sales 2014 (ytd)

3) sales 2014 (total)

with Month as dimension.

Moreover, sales 2014 ytd and total should be combined in a stacked bar.

I expect that expression 3 (sales 2014 total) will show only the values after ytd; eg. If today is 23/11/15, exp 3 (sales 2014 total) will show only the values which are not considered by exp 2 (sales 2014 ytd), which means all the sales occurred after 23/11/14.

Which is the best way to do?

Two dimensions bar chart? Month and Year?

How would be the expressions?

4 Replies
vikasmahajan

I am not sure but check with this https://community.qlik.com/message/792685#792685

HTH

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
HirisH_V7
Master
Master

Hi ,

I hope you requirement is like this,

Stacked bar.PNG

1) 2 Dimensions

2) 3 Expressions

PFA,

Hope this Helps,

Regards,

HirisH

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Thanks Vikas and Hirish!

Here it is a picture to explain better my requirements.

Blue bar is current year sales YTD, gray bar is past year sales YTD, and yellow is total sales of past year.

Schermata 2015-11-24 alle 08.06.03.png

Not applicable
Author

I finally made it! But still have a visualization problem!

When there is a selection which excludes at least one value of the dimension, the width of the bar chart reduces automatically and the value are near to overlap.


E.g. when I select a customer which did not bought anything in August, all the bar chart shrink as in the picture.

How can I avoid this?


Schermata 2015-11-25 alle 17.28.40.png


Thanks in advance!

T.