Hi
I'm trying to create a line chart with 2 series. The first series is cumulative sales value and the second series is cumulative number of sales.
The code I'm using is:
select 'dbr.chart', 'msline', 'Cumulative Contribution';
select 'dbr.colstyle',2,'%0.0F';
select 'dbr.running_total',2;
select 'dbr.chart.options','showvalues',0;
select 'dbr.chart.options','axis','Year','Contribution, £,000s';
select 'dbr.chart.options','imagechart';
select 'dbr.chart.options','rotatenames',90;
select 'dbr.chart.options','title_font_size',20;
select 'dbr.chart.options','title_color','blue';
select
t.Period_ID as 'Year', sum(t.Sales_QTY) as '#Sales', sum((t.Sales_QTY*u.TL_Contrib)/1000) as 'Contrib ,000s' from salestimeline_tmp t join hilmark.tblsitesjake u where t.Site_ID = u.Site_ID group by t.Period_ID;
This is not giving me what I want. It works fine if I want to show only a single line by commenting out one of the sum statement lines.
I've looked at the demo charts but can't quite follow the queries.
Thanks for your help.
Cheers
Jake