Is there any way to display a "static" chart, representing just a fixed value (not one value on change of another, or for all records or for each record)?
Here is what's going on:
I have two formulas, placed in detail(suppressed)section.
They accumulating two totals based on {@EndPeriod} formula value(passed to the report from ASP app), difference of which should be displayed in the report(page) footer.
Here is the formulas in detail section:
first:
{@SalesTotal}
whileprintingrecords;
currencyvar cSalesTotal;
if {@EndPeriod} = 1 then
cSalesTotal:= cSalesTotal + {Glcoa.SalesAmount0} +{Glcoa.SalesAmount1}
else if {@EndPeriod} = 2 then
cSalesTotal:= cSalesTotal + {Glcoa.SalesAmount0} + {Glcoa.SalesAmount1} + {Glcoa.SalesAmount2}
else if {@EndPeriod} = 3 then
cSalesTotal:= cSalesTotal + {Glcoa.SalesAmount0} + {Glcoa.SalesAmount1} + {Glcoa.SalesAmount2}+ {Glcoa.SalesAmount3};
cSalesTotal;
second formula:
{@ReturnsTotal}
whileprintingrecords;
currencyvar cReturnsTotal;
if {@EndPeriod} = 1 then
cReturnsTotal:= cReturnsTotal + {Glcoa.ReturnAmount0} + {Glcoa.ReturnAmount1}
else if {@EndPeriod} = 2 then
cReturnsTotal:= cReturnsTotal + {Glcoa.ReturnAmount0} + {Glcoa.ReturnAmount1} + {Glcoa.ReturnAmount2}
else if {@EndPeriod} = 3 then
cReturnsTotal:= cReturnsTotal + {Glcoa.ReturnAmount0} + {Glcoa.ReturnAmount1} + {Glcoa.ReturnAmount2}+ {Glcoa.ReturnAmount3};
cReturnsTotal;
Formula in the footer:
{@NetSales}
whileprintingrecords;
currencyvar cSalesTotal;
currencyvar cReturnsTotal;
cSalesTotal - cReturnsTotal;
The number is displayed correctly.
What I need to do now, is to represent this value in a chart, just a single bar showing value of {@NetSales}.
Because there is no dynamic, I was trying to work around it setting in the Chart Expert's "Data" tab: Show {@NetSales} on change of {@NetSales}.
Then in the "Axes" tab I adjusted the min and max values for Data axis so {@NetSales} value falls in the range.
So far I have a problem doing this, the graph sees the value of {@NetSales} as zero, althiugh it's displayed correctly in the report.
What's interesting, if I just hardcode some value in {@NetSales} formula, then it works.
Any ideas?
Thanks in advance.
Here is what's going on:
I have two formulas, placed in detail(suppressed)section.
They accumulating two totals based on {@EndPeriod} formula value(passed to the report from ASP app), difference of which should be displayed in the report(page) footer.
Here is the formulas in detail section:
first:
{@SalesTotal}
whileprintingrecords;
currencyvar cSalesTotal;
if {@EndPeriod} = 1 then
cSalesTotal:= cSalesTotal + {Glcoa.SalesAmount0} +{Glcoa.SalesAmount1}
else if {@EndPeriod} = 2 then
cSalesTotal:= cSalesTotal + {Glcoa.SalesAmount0} + {Glcoa.SalesAmount1} + {Glcoa.SalesAmount2}
else if {@EndPeriod} = 3 then
cSalesTotal:= cSalesTotal + {Glcoa.SalesAmount0} + {Glcoa.SalesAmount1} + {Glcoa.SalesAmount2}+ {Glcoa.SalesAmount3};
cSalesTotal;
second formula:
{@ReturnsTotal}
whileprintingrecords;
currencyvar cReturnsTotal;
if {@EndPeriod} = 1 then
cReturnsTotal:= cReturnsTotal + {Glcoa.ReturnAmount0} + {Glcoa.ReturnAmount1}
else if {@EndPeriod} = 2 then
cReturnsTotal:= cReturnsTotal + {Glcoa.ReturnAmount0} + {Glcoa.ReturnAmount1} + {Glcoa.ReturnAmount2}
else if {@EndPeriod} = 3 then
cReturnsTotal:= cReturnsTotal + {Glcoa.ReturnAmount0} + {Glcoa.ReturnAmount1} + {Glcoa.ReturnAmount2}+ {Glcoa.ReturnAmount3};
cReturnsTotal;
Formula in the footer:
{@NetSales}
whileprintingrecords;
currencyvar cSalesTotal;
currencyvar cReturnsTotal;
cSalesTotal - cReturnsTotal;
The number is displayed correctly.
What I need to do now, is to represent this value in a chart, just a single bar showing value of {@NetSales}.
Because there is no dynamic, I was trying to work around it setting in the Chart Expert's "Data" tab: Show {@NetSales} on change of {@NetSales}.
Then in the "Axes" tab I adjusted the min and max values for Data axis so {@NetSales} value falls in the range.
So far I have a problem doing this, the graph sees the value of {@NetSales} as zero, althiugh it's displayed correctly in the report.
What's interesting, if I just hardcode some value in {@NetSales} formula, then it works.
Any ideas?
Thanks in advance.