Year to date, rolling quarter measures

I need to implement reports with year to date, rolling quarter (current month + 2 previous month) measures, etc...
The BO universe is connected to a bex query on a SAP multi provider
Where do you recommend to implement such measures?
Should we precalculate them in a SAP BI keyfigure ?
Should we create a restricted key figures in the bex query and using SAP variable with customer exits to implement for example the rolling quarter functionnality?
Should be we create a new measure in the BO universe?
Should we create a new variable in the report. In this case what is the impact on the performance?
We have about 30.000 records in our cube for about 3 years of data. the volume will grow on a monthly basis but analysis will mainly be done on maximum three years of data.

Hi,
this is not related to performance. this is related to the simple fact that the MDX on SAP BW does not have support for something like a Today() or a Now(), which means you can't have rolling months based on the system date.
if you use an EXIT variable you have the keyfigures in the universe and can leverage it in the Web Intelligence report.
ingo

Similar Messages

  • Using an expression in SSRS to display rolling 12 month and year to date volumes

    I need some help in writing an expression in SSRS. I have a table that contains date columns and rows that contain different types of data groups. (e.g. total number of items received during the month, total dollars for the month, etc.) I want to add two
    new columns to the end of the report that will display a rolling twelve month total for each of the different rows of data. Plus a column that would show year to date totals for the same rows.
    I was thinking I could accomplish this by adding expressions for each row in the new 'rolling twelve month' and 'YTD' columns in my report however, I'm not sure how to structure the expressions to achieve this.
    Here is an example of how my report currently looks. (I added a pipe delimeter in case the formatting changes once this is submitted.)
                             Jan-2014 | Feb-2014 | Mar-2014 | Apr-2014 | Rolling 12 mth | YTD
    Items received     100 | 35 | 45 | 12 | 192 | 192
    Dollars                $50.00 | $25.00 | $120.00 | $15.00 | $210.00 | $210.00
    Any guidance you can provide would be appreciated.
    Thank you  

    This example shows how to get what you need. It'll take modifying your query to add two cased columns onto the end.
    DECLARE @forumTable TABLE (periodYear INT, periodMonth INT, periodMonthName VARCHAR(12), periodDollars MONEY, periodItems INT)
    DECLARE @i INT = 0
    SET NOCOUNT ON
    WHILE @i < 24
    BEGIN
    INSERT INTO @forumTable (periodYear, periodMonth, periodMonthName, periodDollars, periodItems)
    VALUES (YEAR(DATEADD(MONTH,-@i,GETDATE())), Month(DATEADD(MONTH,-@i,GETDATE())), DATENAME(MONTH,DATEADD(MONTH,-@i,GETDATE())), 1000-@i, 100-@i)
    SET @i = @i+1
    END
    SET NOCOUNT OFF
    SELECT *,
    CASE WHEN CONVERT(VARCHAR,periodYear) + '-' + CONVERT(VARCHAR,periodMonth) + '-01' > DATEADD(MONTH,-12,GETDATE()) THEN periodItems ELSE 0 END AS ytdItems,
    CASE WHEN CONVERT(VARCHAR,periodYear) + '-' + CONVERT(VARCHAR,periodMonth) + '-01' > DATEADD(MONTH,-12,GETDATE()) THEN periodDollars ELSE 0 END AS ytdDollars
    FROM @forumTable

  • Are Cube organized materialized view with Year to Date calculated measure eligible for Query Rewrite

    Hi,
    Will appreciate if someone can help me with a question regarding Cube organized MV (OLAP).
    Does cube organized materialized view with calculated measures based on time series  Year to date, inception to date  eg.
    SUM(FCT_POSITION.BASE_REALIZED_PNL) OVER (HIERARCHY DIM_CALENDAR.CALENDAR BETWEEN UNBOUNDED PRECEDING AND CURRENT MEMBER WITHIN ANCESTOR AT DIMENSION LEVEL DIM_CALENDAR."YEAR")
    are eligible for query rewrites or these are considered advanced for query rewrite purposes.
    I was hoping to find an example with YTD window function on physical fact dim tables  with optimizer rewriting it to Cube Org. MV but not much success.
    Thanks in advance

    I dont think this is possible.
    (My own reasoning)
    Part of the reason query rewrite works for base measures only (not calc measures in olap like ytd would be) is due to the fact that the data is staged in olap but its lineage is understandable via the olap cube mappings. That dependency/source identification is lost when we build calculated measures in olap and i think its almost impossible for optimizer to understand the finer points relating to an olap calculation defined via olap calculation (olap dml or olap expression) and also match it with the equivalent calculation using relational sql expression. The difficulty may be because both the olap ytd as well as relational ytd defined via sum() over (partition by ... order by ...) have many non-standard variations of the same calculation/definition. E.g: You can choose to use or choose not to use the option relating to IGNORE NULLs within the sql analytic function. OLAP defn may use NASKIP or NASKIP2.
    I tried to search for query rewrite solutions for Inventory stock based calculations (aggregation along time=last value along time) and see if olap cube with cube aggregation option set to "Last non-na hierarchical value" works as an alternative to relational calculation. My experience has been that its not possible. You can do it relationally or you can do it via olap but your application needs to be aware of each and make the appropriate backend sql/call. In such cases, you cannot make olap (aw/cubes/dimensions) appear magically behind the scenes to fulfill the query execution while appearing to work relationally.
    HTH
    Shankar

  • Roll up information for Year To Date

    Hello,
    I have some sales data as follows
    Item_Id Country_Id Region_ID Month_begin_date Quantity Amount
    s1 C1 r1 10/1/2008 20 2000.05
    s2 C1 r1 10/1/2008 100 4350.45
    s3 c2 r2 11/1/2008 50 3200.00
    s3 c1 r3 12/1/2008 102 5102.50
    s3 C2 r2 01/1/2009 35 1989.45
    s2 c1 r1 02/1/2009 56 2989.00
    s3 C3 r3 03/1/2009 29 1129.00
    s1 c3 r3 04/1/2009 455 3000.00
    s2 c2 r2 05/1/2009 123 2345.00
    s3 c2 r1 06/1/2009 40 1878.00
    s1 c2 r2 07/1/2009 65 1123.00
    s2 c2 r2 08/1/2009 100 1000.50
    s3 c3 c3 09/1/2009 191 2500.00
    s1 c2 r3 08/1/2009 299 3448.50
    s2 c3 r3 09/1/2009 432 5000.00
    s3 c1 r3 07/1/2009 175 4000.00
    here item_id,country_id,region_id,month_begin_date are together composite primary key...
    I want to get year to date (sum from the INITIAL date to sysdate) OF sum of quantity and sum of amounts to above data .
    I.E. Query should consider records until 7/1/2009
    and calculates sum of quntity and amount group by primary key fields...
    s1 C1 r1 10/1/2008 20 2000.05
    s2 C1 r1 10/1/2008 100 4350.45
    s3 c2 r2 11/1/2008 50 3200.00
    s3 c1 r3 12/1/2008 102 5102.50
    s3 C2 r2 01/1/2009 35 1989.45
    s2 c1 r1 02/1/2009 56 2989.00
    s3 C3 r3 03/1/2009 29 1129.00
    s1 c3 r3 04/1/2009 455 3000.00
    s2 c2 r2 05/1/2009 123 2345.00
    s3 c2 r1 06/1/2009 40 1878.00
    s1 c2 r2 07/1/2009 65 1123.00
    Thanks in advance...
    please help me out....

    Welcome to Forum!!
    SELECT
    Item_Id, Country_Id, Region_ID, Month_begin_date, SUM(Quantity) , SUM (Amount)
    FROM TABLE_NAME  --Add your table Name
    WHERE Month_begin_date < = SYSDATE  --will Reject records having date > sysdate
                                        --Remember the date comparision is bit tricky
    GROUP BY Item_Id, Country_Id, Region_ID, Month_begin_date1 min :: You want to GROUP the data on the basis of primary key: thats NOT logical
    Edited by: AJ99 on Jul 1, 2009 11:25 AM
    Edited by: AJ99 on Jul 1, 2009 11:29 AM

  • Rolling Quarter

    Hi,
    I have a situation where I have to group the data based on rolling quarter.
    My sample data in the dim_time table is as follows:
    DATE_ID     CAL_DATE     YEAR     QUARTER     MONTH     MONTH_FULL     WEEK_OF_YEAR     DAY_OF_WEEK     CR_DATE
    19050418     18-APR-05     1905     2     4     April     16     Tuesday     13-SEP-12
    19050419     19-APR-05     1905     2     4     April     16     Wednesday     13-SEP-12
    19050420     20-APR-05     1905     2     4     April     16     Thursday     13-SEP-12
    19050421     21-APR-05     1905     2     4     April     16     Friday     13-SEP-12
    User enter the last date(say 15th Sep 2012) and the number of quarters he wants to see...say 2.
    The output will be grouped by previous two quarters starting with 15th Sep.
    i.e. Q1:1st Sep -15th Sep Q2:1st Jun -30th Jun
    1st Aug - 31st Aug 1st May - 31st May
    1st July - 31st July 1st Apr - 30th Apr
    Please suggest how to achieve this.
    Best Regards,
    sud

    Trinity317 wrote:
    Please suggest your thoughts in this.
    Mark your previous post as answered if it is solved.
    Please read SQL and PL/SQL FAQ
    In the previous post and in this post you haven't posted create table and insert statements. If you don't mind doing it will be easier to get help.
    Additionally when you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Regards.
    Al
    Edited by: Alberto Faenza on Dec 5, 2012 5:02 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Creating Rolling Sum Measures

    Hi,
    I am pretty new to OBIEE and am trying to create rolling sum measures (rolling 3 months sum ).
    Can anyone help me out in this. I searched on the web and couldn't locate the correct article.
    Thanks,
    Anand

    Hello user,
    Please use the below link which is posted by shiva for calculating rolling months....
    http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
    Hope its helpful.
    Thanks

  • Calculation of ''Total to Date'' like ''Year to date''

    Hello together,
    How would you calculate a Total to Date in Oracle BI.
    It should sum all values like Year to date up to a certain period inclusive all previous years.
    Example:
    Year Value
    2008 10
    2009 20
    2010 40
    If I select 2009 it shoul display 30. without the previous and the following row.
    Regards,
    Stefan
    Content Level Fiscal Period TOTAL (Do I have to calculate on a yearly level all the past years, - ago - 1, ago -2, ago - 3, ago - 4 up to - 20?)
    minus Year Value
    plus YTD
    Month and Total have to bes diplayed in on line.
    works for the current year but not when you back to last year.
    Edited by: stefanhess on Jun 14, 2010 1:54 PM

    an odd solution.
    In the physical layer you can duplicate the fact table and can join the time dim and duplicated fact with the complex join using the year column with the condition as
    time_dimension.year_column >= fact_table.year_column
    in your report when you bring the year and this measure you will get what you want.
    Edited by: kart on Jun 14, 2010 6:46 PM

  • Spread Data Over Multiple Months & Years with Data from Multiple Years

    Hello Everyone,
    I have a complex calculation for spreading values over several months spanning mulitle years. Because we have a 36 month rolling Forecast, a more sophisticated calc is required as opposed to hard coding months or years.
    Heres the description:
    Users enter the following data,
    FY11     BegBalance     Number of BOD Members     10
              BOD Options Vesting Months     20
              BOD Options Accounting Value     10
              BOD Options- Number of Shares     100
              BOD Grant Month     Aug
    FY12     BegBalance     Number of BOD Members     5
              BOD Options Vesting Months     10
              BOD Options Accounting Value     5
              BOD Options- Number of Shares     200
              BOD Grant Month     Oct
    FY13     BegBalance     Number of BOD Members     20
              BOD Options Vesting Months     8
              BOD Options Accounting Value     20
              BOD Options- Number of Shares     100
              BOD Grant Month     Feb
    Based on the above;
    "BOD Stock" is calculated as following/month=Number of BOD Members*BOD Options Accounting Value*BOD Options- Number of Shares/ BOD Options Vesting Months
    Start month for the above is based on "BOD Grant Month". So, for instance considering data for FY11:
    The total "BOD Stock" value is $10000 (originating from FY11) with start month of AUG in FY11 and the number of months to spread over is 20 months. So, essentially the "BOD Stock" per month (originating from FY11) is $500 starting from AUG FY11 to Mar FY13.
    Similarly, the total "BOD Stock" value is $5000 (originating from FY12) with start month of OCT in FY12 and the number of months to spread over is 10 months. So, essentially the "BOD Stock" per month (originating from FY12) is $500 starting from OCT FY12 to JUL FY13.
    The challange I am facing is because of the number of months to spread. Because I have data to spread from multiple years and each year's data spills into the following years, each year should accumulate data from prior years. For instance;
    FY11 should include only FY11
    FY12 should include FY11 and FY12
    FY13 should include FY11, FY12 and FY13.
    Could anyone suggest a smarter way to do this without writting code for each year, maybe using @MDALLOCATE function? The following shows how data should be spread and accumulated.
                             BegBalance     Jan     Feb     Mar     Apr     May     Jun     Jul     Aug     Sep     Oct     Nov     Dec     Period
    FY11     Number of BOD Members          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Aug     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               10000     #mi     #mi     #mi     #mi     #mi     #mi     #mi     500     500     500     500     500     #mi
    FY12     Number of BOD Members          5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     200     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Oct     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               5000     500     500     500     500     500     500     500     500     500     1000     1000     1000     #mi
    FY13     Number of BOD Members          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          8     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Feb     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               40000     1000     6000     6000     5500     5500     5500     5500     5000     5000     #mi     #mi     #mi     #mi
    Appreciate your inputs!
    Edited by: user10678366 on Oct 12, 2010 3:21 PM

    Why not use substitution variables for Years? you could have something like &Year1, &Year2, &Year3
    Cheers

  • YTD(year to date) Sales [List Price/ Gross Sales ]

    How to create YTD(year to date) Sales [List Price/ Gross Sales ] depending on the selection in filter

    Do you have the measure names as list of values in prompt?
    Rgds,
    Dpka

  • Year to date etc...

    Post Author: Optimus
    CA Forum: Desktop Intelligence Reporting
    Hi all,fro the first time I am trying to implement a year-to-date , month-to-date and similar measures into my reports. I tried approach with second data provider with restriction to date; the problem is, I can not write something like WHERE measures.year = Year(CurrentDate()) - 1   (for last year measure)    Please, what is standard approach to calculated measures that I need?Thank you.

    Post Author: Peter@KLM
    CA Forum: Desktop Intelligence Reporting
    make a variable like this: FlagCY = If (measure.year = year(CurrentDate()) then "CY" Else "PY"
    and two others:
    TurnoverCY = <Turnover> where (<_Flag_CY> = "CY")
    TurnoverPY = <Turnover> where (<_Flag_CY> = "PY")
    Now you can do anything you like with these two variables

  • When ever  enter the date start date up to next year same date between the days divided into 8 parts

    when ever  enter the date start date up to next year same date between the days divided into 8 parts
    Q1.1 (YYYY) = 1st half of Quarter 1 for year YYYY
    Q1.2 (YYYY) = 2nd half of Quarter1 for year YYYY
    Q2.1 (YYYY) = 1st half of Quarter 2 for year YYYY
    Q2.2 (YYYY) = 2nd half of Quarter 2 for year YYYY
    Q3.1 (YYYY) = 1st half of Quarter 3 for year YYYY
    Q3.2 (YYYY) = 2nd half of QuarterQ3 for year YYYY
    Q4.1 (YYYY) = 1st half of Quarter 4 for year YYYY
    Q4.2 (YYYY) = 2nd half of Quarter 4 for year YYYY
    Here YYYY depicts the year.
    e.g. Q1.2 (2014) depicts the 2nd half of Quarter 1 for year 2014.
    The description of these values are explained below.
    The table below provides the description about each value:
    Quarter     Quarter Range      Start Date
    Q1.1      1 Jan - 15 Feb         1st  Jan
    Q1.2      16 Feb-31 Mar         16th Feb
    Q2.1      1 Apr- 15 May          1st Apr
    Q2.2      16 May-30 June       16th May
    Q3.1      1 Jul-15 Aug             1th Jul
    Q3.2      16 Aug -30 Sep       16th Aug
    Q4.1      1 Oct -15 Nov           1st Oct
    Q4.2      16 Nov – 31 Dec      16th Nov
    The dropdown values in time window needs to be updated as per date entered by the user in the Audit Plan start date and
    should display the next four Quarter (each divided in 2 half  i.e. Eight values ) along with the year  from the selected Audit plan start date.
    for eg. If the Plan start date is given as August 10 2013 then the Time window will display the following options:                      
    Q3.2 (2013)                
    Q 4.1 (2013)               
    Q 4.2 (2013)               
    Q 1.1 (2014)               
    Q1.2 (2014)                
    Q2.1 (2014)                
    Q 2.2 (2014)               
    Q 3.1 (2014)               
    You can refer to the Table above and look that 10 Aug 2013 falls under the Q3.1 so Time window will display the next next 8 half Quarters ( Total 4 Quarter) till Q 3.1 for the year 2014.

    Hello,
    WITH half_quarters AS(
        SELECT  ADD_MONTHS(TRUNC(DATE '2013-08-15','Q'), 3*(LEVEL - 1)) hq_start
               ,1 part
        FROM    dual
        CONNECT BY ROWNUM <= 5
        UNION ALL
        SELECT  ADD_MONTHS(TRUNC(DATE '2013-08-15','Q'), 3*(LEVEL - 1) + 1) + 15 hq_start
               ,2 part
        FROM    dual
        CONNECT BY ROWNUM <= 5
    ,ordered_half_quarters AS(
        SELECT  hq_start
               ,part
               ,ROW_NUMBER() OVER (ORDER BY hq_start) r
        FROM    half_quarters
        WHERE   hq_start > DATE '2013-08-15'
    SELECT  'Q '||TO_CHAR(hq_start,'Q')||'.'||part||' ('||TO_CHAR(hq_start,'YYYY')||')' q
    FROM    ordered_half_quarters
    WHERE   r <= 8
    ORDER BY r;
    Q       
    Q 3.2 (2013) 
    Q 4.1 (2013) 
    Q 4.2 (2013) 
    Q 1.1 (2014) 
    Q 1.2 (2014) 
    Q 2.1 (2014) 
    Q 2.2 (2014) 
    Q 3.1 (2014) 
    half_quarters generates the start dates of every half of a quarter, starting with the begin of the first quarter that contains the sample date.
    The next step is to order the dates and to select only those after the sample date.
    The last part formats the output and orders the data.
    Regards
    Marcus

  • Loading year to date data

    Due to sourcing issues, it would be easier to load year to date and calculate month. All documentation shows month rolling up to year to date. Will year to date work?

    You can create your time dimension so that you load your YTD data into a 'YTD' member. You can then use a shared hierarchy to calculate your discrete months.E.g - Jan = "Jan YTD"Feb = "Feb YTD" - "Jan YTD"Mar = "Mar YTD" - "Feb YTD"etc.If Time is dense then these can easily be set to dynamic calcHope this helpsDave Cooper, Analitica Ltdwww.analitica.co.uk

  • DAX - Year to Date Calculation

    Hi All,
    We have a requirement of calculating the Year to Date Calculation in DAX for No. of Sales. Below is the table that we are using:
    Year
    Quarter
    Date
    No. of Sales
     If we browse the tabular model with Year/Quarter then formula should calculate the value at quarter levels.
    Formula Definition for Q1 = (Total of “No. of Sales” in current Year upto Q1  / Total of “No. of Sales” in previous Year upto Q1) -1
    Formula Definition for Q2 = (Total of “No. of Sales” in current Year upto Q2  / Total of “No. of Sales” in
    previous Year upto Q2) -1
    Formula Definition for Q3 = (Total of “No. of Sales” in current Year upto Q3  / Total of “No. of Sales” in
    previous Year upto Q3) -1
    Formula Definition for Q4 = (Total of “No. of Sales” in current Year upto Q4  / Total of “No. of Sales” in
    previous Year upto Q4) -1
    Can anybody help us in building this formula in DAX which should be able to browse with any columns of the table.
    Thanks,
    Vishal Jharwade

    Hi Vishal,
    According to your description, we are still not clear about your requirement. Do you want to calculate the "current YTD/previous YTD -1"? Or you want to calculate the Total Year to Quarter for each quarter?
    If you want to calculate the first one, please use the formula below:
    =[Sales](DATESYTD(DimDate[Datekey])) - [Sales](DATEADD(DATESYTD(DimDate[Datekey]),-1,YEAR))
    If you want to calculate the second one, you can use TotalYTD() function to calculate the Year to Quarter value:
    =TOTALYTD(SUM(InternetSales_USD[SalesAmount_USD]),DateTime[DateKey], ALL(‘DateTime’), “3/31”)
    However, since we have to specify a literal string with a date that defines the year-end date, it can't make it dynamically to show the Year to Quarter for the current quarter. So you still can't use only one formula to deal with all quarters.
    Reference:
    First steps in DAX: Year-To-Date
    Time Intelligence Functions in DAX
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Subtract years from date

    Hi all
    Can someone please tell me how to subtract a number of years from a date. Had a look through the forums with little success.
    Thanks

    Thanks for the response, I forgot about this post as I found a solution:
         public String SubtractYearsFromDate(int years)
              SimpleDateFormat date = new SimpleDateFormat ("dd-MMM-yyyy");
              Calendar cal = Calendar.getInstance();
              DateFormat df = DateFormat.getDateInstance();
              cal.set((cal.get(cal.YEAR) - years), cal.get(cal.MONTH), cal.get(cal.DAY_OF_MONTH) );
              String dateString = date.format(cal.getTime());
              return dateString;
    Bit convoluted though, so will give the roll() method a go. Thanks again.

  • SSRS expression for today,yesterday,Lastweek ,Last fortnight,Last Month, Year to date

    Hi All;
    I have a field called createdon 
    Using this field i need to create the SSRS expression for the table as below 
    Any help much appreciated
    Thanks
    Pradnya07

    use expressions as below
    assuming this is to be done in SSRS
    Today
    =COUNT(IIF(
    DateDiff(DateInterval.Day,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Day,Cdate("01/01/1900"),Now()),Fields!YourRequiredField.Value,Nothing))
    Yesterday
    =COUNT(IIF(
    DateDiff(DateInterval.Day,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Day,Cdate("01/01/1900"),Now())-1,Fields!YourRequiredField.Value,Nothing))
    LastWeek
    =COUNT(IIF(
    DateDiff(DateInterval.Week,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Week,Cdate("01/01/1900"),Now())-1,Fields!YourRequiredField.Value,Nothing))
    Last fortnight
    =COUNT(IIF(
    (DateDiff(DateInterval.Week,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Week,Cdate("01/01/1900"),Now())-1)
    Or (DateDiff(DateInterval.Week,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Week,Cdate("01/01/1900"),Now())-2),Fields!YourRequiredField.Value,Nothing))
    Last Month
    =COUNT(IIF(DateDiff(DateInterval.Month,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Month,Cdate("01/01/1900"),Now())-1,Fields!YourRequiredField.Value,Nothing))
    Year To Date
    =COUNT(IIF(DateDiff(DateInterval.Year,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Year,Cdate("01/01/1900"),Now())
    And
    DateDiff(DateInterval.Day,Cdate("01/01/1900"),Fields!createdon.Value) <= DateDiff(DateInterval.Day,Cdate("01/01/1900"),Now()),Fields!YourRequiredField.Value,Nothing))
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for