Good morning!
I am getting syntax errors in microsoft query code when trying to use PIVOT
TRANSFORM Sum(Temp_Parts.Ext_Amnt) AS SumOfExt_Amnt
SELECT Temp_Parts.LastOfDivision, Temp_Parts.Customer
FROM Temp_Parts
GROUP BY Temp_Parts.LastOfDivision, Temp_Parts.Customer
PIVOT Temp_Parts.Prod_Line
Error I receive
Incorrect Syntax near 'Temp_Parts'.
Incorrect Syntax near 'PIVOT'.
Statements could not be preparted.
Any suggestions on what I am doing incorrectly?
Thanks
Sue
I am getting syntax errors in microsoft query code when trying to use PIVOT
TRANSFORM Sum(Temp_Parts.Ext_Amnt) AS SumOfExt_Amnt
SELECT Temp_Parts.LastOfDivision, Temp_Parts.Customer
FROM Temp_Parts
GROUP BY Temp_Parts.LastOfDivision, Temp_Parts.Customer
PIVOT Temp_Parts.Prod_Line
Error I receive
Incorrect Syntax near 'Temp_Parts'.
Incorrect Syntax near 'PIVOT'.
Statements could not be preparted.
Any suggestions on what I am doing incorrectly?
Thanks
Sue