Search code examples
reporting-servicesssrs-2008-r2

Group by dateparts in SSRS


I want to group data by dateparts - Year, Month, Date and Hour. It should be like in Excel pivot table, when you click on + and group is hide/unhide. How to do it? Should I prepare date on sql in some way? I have added an example, how it should looks like.

enter image description here


Solution

  • I found a desicion - need to created stepped report Some useful links:

    https://sqldusty.com/2011/07/23/creating-stepped-reports-with-ssrs-2008/

    https://learn.microsoft.com/en-us/sql/reporting-services/report-design/create-a-stepped-report-report-builder-and-ssrs?view=sql-server-2017