Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mambi
Creator III
Creator III

bar chart

Hi everyone,

from the sample data below ,

Month

Prod

Stock

Feb

A

10

Feb

B

20

Feb

C

30

Feb

D

40

Mar

A

20

Mar

B

39

Mar

C

34

Mar

D

23

i created this bar chart :

img.jpg

and now i want to know if it's possible to add a fifth (horizontal) bar to the chart (same chart) for the average ( Month : feb )

Thanks

14 Replies
Not applicable

Will this do?

sum.png

Thanks,

Prabhu

mambi
Creator III
Creator III
Author

i know this method but i want to add a horizontal bar

MayilVahanan

Hi

There is no option in bar chart. You can use the reference line

And increase the weight as per attached file

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable

Chk it out

test:

LOAD * INLINE [

    mon, Prod, Stock

    Feb, A, 10

    Feb, B, 20

    Feb, C, 30

    Feb, D, 40

    Mar, A, 20

    Mar, B, 39

    Mar, C, 34

    Mar, D, 23

];

Concatenate

load mon, 'Avg' as Prod, avg(Stock) as Stock

Resident test

Group by mon;

Img.png

Thanks,
Prabhu

MK_QSL
MVP
MVP

Like below... Please confirm... i will upload the trick...

Also, confirm which edition you are using ?

i.e. Licensed or Personal...

Sample.JPG.jpg

Not applicable

Please mark it as correct answer if the solution provided is suitable for you.

Thanks,

Prabhu

mambi
Creator III
Creator III
Author

is there any method to get the same result using chart expression not in the load script ?

thnaks

mambi
Creator III
Creator III
Author

thanks for your help but the results seems to be wrong !

MK_QSL
MVP
MVP

What could be the result?

Kindly let me know, I will check and confirm back...