Focal Point
Drilldown on Across value

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9881008331

October 25, 2004, 03:48 PM
<kj>
Drilldown on Across value
TABLE FILE CAR
SUM SALES
BY CAR
ACROSS BODYTYPE
END
I would like to create drilldow on sales which displays the detail analysis of the sales by car and bodytype. The problem here is I want to have drilldown only if the BODYTYPE NE 'COUPE' AND CAR NE 'ALFA ROMEO'.
Can any one help how to define condition for BODYTYPE NE 'COUPE' (This condition is on accross value)?

I am using Webfocus 5.26 on NT.

Thanks in advance.
kj
October 25, 2004, 07:06 PM
susannah
kj, use a WHEN= attribute to your drilldown statement in your style sheet.
I'm not sure if WHEN=BODYTYPE NE 'COUPE' will work, but if not, then create a flag in your defines:
FLAG/I1=IF BODYTYPE EQ 'COUPE' THEN 0 ELSE 1 ;
and your when= statement would be
FOCEXEC=fexname(..parms),WHEN=FLAG EQ 1 ,$
October 25, 2004, 11:00 PM
<kj>
susannah,
The problem here is I am not able to define two conditions. I need to define a condition BODYTYPE NE 'COUPE' AND CAR NE 'ALFA ROMEO'. But the condition syntax allows to define only one condition.

Thanks,
kj
October 25, 2004, 11:56 PM
<WFUser>
Since compound conditions are not respected with WHEN=, I would use a DEFINEd field

DRILLFLAG/I1 = IF BODYTYPE NE 'COUPE' AND CAR NE 'ALFA ROMEO' THEN 1 ELSE 0;

Then use WHEN=DRILLFLAG EQ 0

Problem is ACROSSVALUE doesn't seem to recognize WHEN conditions AT ALL! I tried it several ways and it simply doesn't work. This should be reported to support as a software bug.

The only workaround I can think of is to do the ACROSS and HOLD. Then PRINT each across field AS the value it should be. This is only going to work of course if those across value will be fixed and you know what they will be ahead of time.
November 05, 2004, 12:54 PM
<kj>
Thanks WFUser that worked.

Thanks,
kj