Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD stacked bar

Hi,

I am creating a bar chart with no dimension.

So i have 3 expressions to make 3 bars:

  • Sales for current month
  • Year to date sales.
  • Last year to date sales

Next, i'd like to make them as stack-bar, so i can have segments of says- product type in each bar.

But i'm stuck here...

1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached qvw. I use a valuelist to create a calculate dimension with a value for the three different expression. The actual expression is a nested if that uses the value from the valuelist. The Product dimension is used the stack segments.

edit: updated the qvw to add a chart with an ascending sort on the second dimension to sort the stack.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

See attached qvw. I use a valuelist to create a calculate dimension with a value for the three different expression. The actual expression is a nested if that uses the value from the valuelist. The Product dimension is used the stack segments.

edit: updated the qvw to add a chart with an ascending sort on the second dimension to sort the stack.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert ,

Thanks ! smart solution.

Just another question, is there a way i could sort the stack ascending?