简体   繁体   中英

Visual Studio SSRS Calendar Report Details Not Grouping

I am trying to build a calendar report in Visual Studio Reporting Services. The issue I am having is that the IDs aren't grouping together in the same cell. I'm sure this has to do with how I am bringing in the data but is there a way to render it correctly? Essentially I want one row per week with all the applicable IDs in the applicable cell.

Screenshot of report output as is.

Report Layout

Sample of my query results

Here's what I've done in this situation.

  1. Add a ROW_NUMBER() with a partition on the ID
  2. Group on the ROW_NUMBER() rather than the ID.

So, in your SQL query, add another column that might look something like this:

,ROW_NUMBER() OVER(PARTITION BY ID, Date ORDER BY ID, Date) RowNum

If that doesn't work, or you're not familiar with the window functions, post your query.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM