SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


data parameters in matrix reports


data parameters in matrix reports

Author
Message
harita
harita
SSC-Addicted
SSC-Addicted (435 reputation)SSC-Addicted (435 reputation)SSC-Addicted (435 reputation)SSC-Addicted (435 reputation)SSC-Addicted (435 reputation)SSC-Addicted (435 reputation)SSC-Addicted (435 reputation)SSC-Addicted (435 reputation)

Group: General Forum Members
Points: 435 Visits: 188
Hi all,

right now i am geting the data for a week from fridsy to friday (finished week)

DateAdd(day, -6, Date) as WeekStartDate, Date as WeekEndDate

now i want to get the date from 2 weeks (finished weeks) not the weeks comming up

this is what i have in the quiry and i have the screen shot of the data parameters in on the matrix report.


i dont know if i am asking the questing right but my requirement is 2 weeks data insteard of 1 week.

thanks to all who got a change to look into it
Attachments
1.jpg (4 views, 68.00 KB)
HakunaMatata
HakunaMatata
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1208 Visits: 491
I think this is what you are looking for -

select (DATEADD(wk, DATEDIFF(wk, 6, getDate() - 15), 7))

Just put the no of days old date you want in place of 15...

Rolleyes
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search