Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Order by day name a tablix

$
0
0

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!!

 



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>