Pivot using Flatten & Hierarchy (2 replies)
Sue, to achieve this will need 4 transforms:
- In a map transform, create your ORDERNO field (which you've already done).
- Use a hierarchy transform to create a header/detail structure where the first key is the ORDERNO field (from step 1).
- Use a Map transform, within the header record, create fields for each of the "Aggregate" functions (Minimum, Maximum, Sum).
- Use flatten to flatten out the dataset.
Hope this helps, but feel free to ask any more questions.
Closed due to inactivity.
I need another jump start on something. I’ve been banging my head against the wall this morning.
SELECT OEORDH.ORDNUMBER, OEORDH.CUSTOMER, OEORDH.SHPNAME, OEORDH.SHPADDR1, OEORDH.SHPADDR2,OEORDH.SHPCITY, OEORDH.SHPSTATE, OEORDH.SHPZIP, OEORDH.SHPCOUNTRY, OEORDH.SHPPHONE, OEORDH.SHPCONTACT,OEORDH.PONUMBER, OEORDH.TYPE, OEORDH.EXPDATE, OEORDH.SHIPVIA, OEORDH.LASTINVNUM, OEORDD.ITEM, OEORDD.QTYBACKORD, OEORDD.QTYSHPTODT
FROM OEORDH LEFT OUTER JOIN OEORDD ON OEORDH.ORDUNIQ = OEORDD.ORDUNIQ
WHERE OEORDH.TYPE = 1 AND OEORDD.COMPLETE = 0
Can you give me a hint? J From there, I’m just exporting to excel and that doesn’t look hard at all… Thanks!