In SSRS 2008, i am trying to use the unpivot query.
it is not working for some reason.
i am querying from csv file.
Here is my unpivot query.
SELECT Date, Hour, Value
FROM
(
SELECT Date,[1],[2],[3],[4],[5]
FROM myData.CSV
) MyTable
UNPIVOT
(Value FOR Hour IN ([1],[2],[3],[4],[5])) AS MyUnPivot
When i execute this, i am getting error - syntax error in from clause.