Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Shared Var value in Chart

Status
Not open for further replies.

Cobby1812

IS-IT--Management
Jun 22, 2006
58
GB
Hi there,
I am sure this has been posted before but I am losing the will to live with it.

I created this in the sub report

shared CURRENCYVAR fiu;
fiu := {FIU.FIUGBP} + ({FIU.FIUEUR} / {FIU.EUREXCHANGERATE}) + ({FIU.FIUUSD} / {FIU.USDEXCHANGERATE})

In the main report I created this

shared currencyvar fiu;
fiu

So far so good

The value was then used against another formula and I can see that value when I try to create a report.

However I now want to just use the value FIU in the report and it will not show when trying to create a chart.

Any ideas anyone!!!
 
As soon as you put a shared variable in a formula it will not appear in the Chart Expert on the Data tab in the available fields section.
Consequently it appears that you are not be able to base a chart on formulas that use the shared variable.
Code:
Shared NumberVar x //This will cause this formula not to be available in the chart expert

Possible Workaround:
Create a formula that does not have a shared variable.
For example
Code:
1+1
Base your chart on that formula
Now copy the contents of the real formula over this formula

Gordon
Crystalize
 
Many thanks for the response. I resolved by doing a new sql view instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top