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

ONE linear trendline, for bar chart

Is it possible to have one linear trendline, for a bar chart with 3 dimensions?

If I tick the 'Linear' box i get a trendline for each value, which I do not want. I only want one one trendline for the total

multiple trendlines.png

The only way I can see to do this is to remove the 3rd dimension, but i do not want to do this!

linear trendline.png

How can i retain the stacked bar chart and also only have one trendline for the total?

My expression is very simple:

=SUM(Revenue/1000)

1 Solution

Accepted Solutions
rubenmarin

You can try to create an expression, unchecking 'Bar' and checking 'Values on data', in this expression is where you have to check the linear trendline.

The expression should be something like:

Sum(TOTAL <Week> Revenue/1000)

View solution in original post

5 Replies
rubenmarin

You can try to create an expression, unchecking 'Bar' and checking 'Values on data', in this expression is where you have to check the linear trendline.

The expression should be something like:

Sum(TOTAL <Week> Revenue/1000)

Not applicable
Author

I get the error message 'Drawing of chart failed internally' when I tried to do this

Not applicable
Author

Is it possible to use a Reference Line? I can't figure out what the formula would be though

rubenmarin

I have done this with 2 dimensions, I added one more dimension to my graph and still draws it.

Can you upload a sample?

Not applicable
Author

i used the wrong 'week' field

it worked! thanks so much