Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
manojkulkarni
Partner - Specialist II
Partner - Specialist II

Stacked Bar Chart with Line

Hi Friends,

I have one requirement, in which i am displaying stacked bar chart for 2 dimensions. Now user wants to add Line to show the trend of same data. How should we achieve ?

Attached the expected output

13 Replies
PrashantSangle

USe combo chart..

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
PrashantSangle

Hi,

In expression tab add 1 expression > Select Display Option > Bar

In expression tab add 2 expression > Select Display Option > Bar

In Style > SubType > select stack.

In expression tab add 3 expression > Select Display Option > Line

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

I have 2 dimensions  & single expression to be used

manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

Below is the sample data. Using Month & Priority as dimension & Value in expression. Priority values are not fixed, so cann't hard code the expression as well.

MonthPriority
Feb-16Low28
Mar-16High1
Mar-16Low33
Apr-16Low16
May-16Low16
Jun-16Medium1
Jun-16Low18
Jul-16Low7
Anil_Babu_Samineni

Manoj, Can i know what is your Dimensions and can you please share me the Sample App which demonstrates to understand the problem. Here, The best way to achieve is Combo Chart only. If your dimensions are Month and Priority what is the expression you are trying to show

What exactly your Req?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

My Dimensions will be MonthYear & Priority, expression will be sum of Values.

Would like to see Stacked bar chart per month and along with the bars there should be a line to show the trend. Trend line is nothing but the total value of the corresponding month.

danansell42
Creator III
Creator III

Hi Manoj

is the attached what you are looking for?

Dan

Not applicable

Hi Manoj

You need to create 3 bar expressions for priorities using set analysis and one line expression for total value.

See attached for details

Regards, VJ

rubenmarin

Hi Manoj, one option is overlapping two charts:

- One for stacked bars in upper layer to make selections. Transparent background (in color tab). Using CTRL+MAYS to fix the legend area so it doesnt' moves.

- The 2nd with the trend line in a lower layer, removing axes, legends and everything else and place it where it fits with the chart area of the upper chart.

It's supposed that two charts will have the same axis values, if not you'll need to fix them using the max and min in the axis tab to keep the same range in both charts.