Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Month to date and previous week total in SQL repor

Author  Topic 

Rasik1999
Starting Member

1 Post

Posted - 2012-10-12 : 16:09:55
How to do month to date and previous week to dat order total IN SQL reporting service

here is my sample




Previous week to date and month to date in SQL reporting service







This question about SQL reporting service

I do have a following formula in Crystal report. do samething in SQL reporting service. Please help me.

I would like to count total orderamount if order date in Month to date. sameway find out total order amount if ordrdate is in Previous week( start sunday )


following is a crystal report syntax. I want to do same for SQL reporting service

Provide current month to date Total



if {Table1.orderDate} in MonthToDate then
{table1.orderAmount} else 0


-- Previous week to date Total


if {Table1.orderDate} in lastfullweek then
{table1.orderAmount} else 0
   

- Advertisement -