The script you gave my working great for a single report, but when using a report page with Expiration as the bivariant like so:
the variable gets an Expr of the Bivariant - for later use in a report window.
Please see JSL attached
It doesn't work
Names Default To Here(1);
dt = astable((1::20)` || ((3::60::3)` + J(20,1,randomnormal())), <<column names( {"x", "y"}));
dt << new column (repeat("group", 6), character, <<set values (repeat(words("abcd", ""), 5)));
biv_1 = expr(dt << Bivariate(
Y( :y ),
X( :x ),
Fit Where(
:groupgroupgroupgroupgroupgroup == "a",
Fit Spline( 0.1, {Report( 0 ), Line Color( {212, 73, 88} ), Report( 0 )} )
),
Fit Where(
:groupgroupgroupgroupgroupgroup == "b",
Fit Spline( 0.1, {Report( 0 ), Line Color( {61, 174, 70} ), Report( 0 )} )
),
Fit Where(
:groupgroupgroupgroupgroupgroup == "c",
Fit Spline( 0.1, {Report( 0 ), Line Color( {66, 112, 221} ), Report( 0 )} )
),
Fit Where(
:groupgroupgroupgroupgroupgroup == "d",
Fit Spline( 0.1, {Report( 0 ), Line Color( {66, 112, 221} ), Report( 0 )} )
)
)
);
biv_2 = expr(dt << Bivariate(
Y( :x ),
X( :y ),
Fit Where(
:groupgroupgroupgroupgroupgroup == "a",
Fit Spline( 0.1, {Report( 0 ), Line Color( {212, 73, 88} ), Report( 0 )} )
),
Fit Where(
:groupgroupgroupgroupgroupgroup == "b",
Fit Spline( 0.1, {Report( 0 ), Line Color( {61, 174, 70} ), Report( 0 )} )
),
Fit Where(
:groupgroupgroupgroupgroupgroup == "c",
Fit Spline( 0.1, {Report( 0 ), Line Color( {66, 112, 221} ), Report( 0 )} )
),
Fit Where(
:groupgroupgroupgroupgroupgroup == "d",
Fit Spline( 0.1, {Report( 0 ), Line Color( {66, 112, 221} ), Report( 0 )} )
)
)
);
/*Start - Report */
output = New Window("The Report",
Tab Box("Chart",
H List Box(biv_1, biv_2)
)
);