SSRS: Subreport is showing the correct data, so why isn't the matrix in the main report?


I created a report in SQL Reporting Services (SSRS).  Attached is the main report and one of its subreports.

The subreport is working perfectly.  When I drill-down into it, it is showing all of the necessary monthly projected purchase order data for the next few months.

But, as you can tell from my Word attachment, data for "Month 5" and "Month 7" is not showing in the first screenshot which represents the main report.  "Month 5" and "Month 7" are, however, showing in the subreport.

Why in the world is the main report not doing the correct display of months in its matrix?


Much appreciated!

Who is Participating?
ValentinoVConnect With a Mentor BI ConsultantCommented:
I don't see anything wrong with the matrix.  Are you 100% that the query in your main report returns data for those months?  Execute it in Management Studio to be sure.
TBSupportAuthor Commented:
That was it!  I needed to strip out the following:

and DATEPART(yy, POP10110.REQDATE) = DATEPART(yy, getdate()))

This clause was what was inhibiting future months from showing!

Thank you!!!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.