Hi, I have used order by clause in my crosstab query and checked "Data is pre-sorted" check box for the crosstab.However I am getting wrong data.For some sets of data the crosstab displays right with correct data, for others it is giving 0 and extra rows in crosstab. Then I removed the data pre-sorted check and tried to apply Order by expression to one of my Row variables.But that does not work either. Order by expression does not accept my crosstab query output field, hence I introduced a measure in crosstab(calculation:nothing) width, height 0 for this measure and tried to order my row group by this measure.But again this is not helping and I am not getting sorted data. Please guide me through this. Regards, Smita