I've tried just about everything and still can't get it right.
A little background - the report is used to compare part efficiency from period to period.
The plant and department in both files are the same but the partno my vary depending if work was done on that part for that period.
PLANT J1DEPT J1PARTNO DL ESH J1EFFICIENCY J2PARTNO J3DL J3ESH J3EFFICIENCY
6 715 P30126 4.07 .00 1.53 P30126 4.07 .00 .00
6 715 P30126 4.31 4.00 1.53 P30126 4.31 4.00 .93
6 715 P30126 29.51 36.25 1.53 P30126 29.51 36.25 1.23
6 715 P30126 39.76 44.95 1.53 P30126 39.76 44.95 1.13
6 715 P30126 49.56 42.05 1.53 P30126 49.56 42.05 .85
6 715 P30126 34.29 46.40 1.53 P30126 34.29 46.40 1.35
6 715 P30126 41.94 39.15 1.53 P30126 41.94 39.15 .93
6 715 P30126 33.81 33.35 1.53 P30126 33.81 33.35 .99
6 715 P30126 36.65 36.25 1.53 P30126 36.65 36.25 .99
6 715 P30126 36.52 33.35 1.53 P30126 36.52 33.35 .
you can see the partno is repeating all the dl, esh is rollup to the part level is the view (masterfile)
TABLE FILE DEV_STUDIO_PART_COMPARE
PRINT
DL
ESH
EFFICIENCY
BY PLANT
BY DEPT
BY PARTNO
WHERE PLANT = '6' AND DEPT = '715' AND FISCAL_QUARTER = 1 AND FISCAL_YEAR = 2012
-* AND RNTITY_CODE = 'CORP'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
-*ON TABLE PCHOLD FORMAT EXL2K
ON TABLE HOLD AS PARTCOMP1 FORMAT FOCUS INDEX PLANT DEPT PARTNO
END
-*END1
TABLE FILE DEV_STUDIO_PART_COMPARE
PRINT
DL
ESH
EFFICIENCY
BY PLANT
BY DEPT
BY PARTNO
WHERE PLANT = '6' AND DEPT = '715' AND FISCAL_QUARTER = 1 AND FISCAL_YEAR = 2012
-* AND RNTITY_CODE = 'CORP'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
-*ON TABLE PCHOLD FORMAT EXL2K
ON TABLE HOLD AS PARTCOMP2 FORMAT FOCUS INDEX PLANT DEPT PARTNO
END
-*END1
JOIN CLEAR *
JOIN
LEFT_OUTER PLANT IN PARTCOMP1 TO PLANT IN PARTCOMP2 AS J1 TAG J1
END
JOIN
LEFT_OUTER DEPT IN PARTCOMP1 TO DEPT IN PARTCOMP2 AS J2 TAG J2
END
JOIN
LEFT_OUTER PARTNO IN PARTCOMP1 TO PARTNO IN PARTCOMP2 AS J3 TAG J3
END
TABLE FILE PARTCOMP1
PRINT
'PARTCOMP2.SEG01.PLANT'
'PARTCOMP2.SEG01.J1DEPT'
'PARTCOMP2.SEG01.J1PARTNO'
'PARTCOMP1.SEG01.DL'
'PARTCOMP1.SEG01.ESH'
'PARTCOMP2.SEG01.J1EFFICIENCY'
'PARTCOMP2.SEG01.PARTNO'
'PARTCOMP2.SEG01.J3DL'
'PARTCOMP2.SEG01.J3ESH'
'PARTCOMP2.SEG01.J3EFFICIENCY'
ON TABLE NOTOTAL
END
WebFOCUS 7.7.1
Windows 2000
Output: Excel and PDF