Hi Vinoth,
You can't use select * on analytic scenario. You must inform the fields and do the aggregations (sum/max/min/avg...) and the group by at end.
Personally I use the data preview to "generate" the first select with all keys and sums....
Data Preview -> Raw data -> double click on Show Log and look for the line with generated SQL.
Regards, Fernando Da Rós