Hi everybody!
I have a table that is ordered by day name.
select (CASE WHEN DATEPART(dw, TimeStart) = 1 THEN 'Domingo' WHEN DATEPART(dw, TimeStart) = 2 THEN 'Lunes' WHEN DATEPART(dw, TimeStart) = 3 THEN 'Martes' WHEN DATEPART(dw, TimeStart) = 4 THEN 'Miercoles' WHEN DATEPART(dw, TimeStart) = 5 THEN 'Jueves' WHEN DATEPART(dw, TimeStart) = 6 THEN 'Viernes' ELSE '7 Sabado' END) AS Dayname from Logs Order by (CASE WHEN DATEPART(dw, TimeStart) = 1 THEN 'Domingo' WHEN DATEPART(dw, TimeStart) = 2 THEN 'Lunes' WHEN DATEPART(dw, TimeStart) = 3 THEN 'Martes' WHEN DATEPART(dw, TimeStart) = 4 THEN 'Miercoles' WHEN DATEPART(dw, TimeStart) = 5 THEN 'Jueves' WHEN DATEPART(dw, TimeStart) = 6 THEN 'Viernes' ELSE '7 Sabado' END)
In my report i have a column group "Dayname" and this one give me as result a header ordered (A-Z)
How can i get in my results : | Domingo | Lunes | Martes | Miercoles | Jueves | Viernes | Sabado | ?
Is this posible through any report property or something like that?
Thanks!!