Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bar Chart Expression Question

I have the following data.  I need an expression for a bar chart where the top of the bar for any day is the price for that day where Type=H and the bottom of the bar is the price where Type=L.  You cant use where expressions so I have to find some other way.  Help is much appreciated.

DateTypePrice
3/6/2014H40.3
3/6/2014L37.2
3/7/2014H39.8
3/7/2014L36.5
3/8/2014H40.2
3/8/2014L38.2
3/9/2014H42.2
3/9/2014L40.1
1 Solution

Accepted Solutions
chiru_thota
Specialist
Specialist

Below trick may be helpful. Properties --> Colors --> give white as first color

barchart high low.jpg

View solution in original post

9 Replies
chiru_thota
Specialist
Specialist

  Do you want some thing like as below or different ?

High & Low.jpg

Not applicable
Author

close to that except for example day 3/6/2014 the bottom of the bar is at 37.2 and the top of the bar is at 40.3.  these prices are daily prices for like a stock.

chiru_thota
Specialist
Specialist

But I could not see any value as 37.4 in your list of data....How are getting 37.4 for date 3/6/2014 ?


Not applicable
Author

Sorry meant 37.2.  For each day there is a Hi and a Low price. I am trying to build a bar chart w/ the bottom of the bar for that day at the Low price and the top of the bar at the Hi price.  For day 3/6/2014 the top would be at 40.3 and the bottom at 37.2. Thanks.

chiru_thota
Specialist
Specialist

ok...Can you add a picture of what you want exactly?

rough diagram using Paint is fine .Because my picture is showing the same ..right ?

Not applicable
Author

barchart.jpg

barchart2.jpg

Not applicable
Author

In the chart properties, Axes tab did you try using static min and static max?

Suraj

Not applicable
Author

Or you can do a thing. write two expressions. One for sum of price for and another one for sum of price for 'H' -sum of price for 'L'. Go to style and make the sub type stacked. Then go to colors and make the first color transparency 100%.

Suraj

chiru_thota
Specialist
Specialist

Below trick may be helpful. Properties --> Colors --> give white as first color

barchart high low.jpg