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

Compare results for current day and same day last year in SSRS Dataset Query

$
0
0

I have a main report and a subreport, the main report shows results for each day of the current month/year. I would lie for the subreport to display the same day for the previous year. Not the same date, but the day of the week. Therefore I would be comparing a Monday to a Monday, a Tuesday to a Tuesday, etc. I am looking for an example of a Where clause that would give me those results in my Subreport. I have the logic worked out for the main report. The image below is an example of what I currently have. The main report results are on the left, the subreport on the right. You can see that currently I am comparing a Friday to a Wednesday for the July 1 2016 versus July 1 2015. I would like to be comparing Friday July 1, 2016 to Friday July 3, 2015.


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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