Sales BY Month

I have following information in the table
Start Date -- End Date -- VOL -- AVG VOL
3/12/2008 -- 4/11/2008 -- 620 --- 20 (620 /31 Days)
4/12/2008 -- 6/23/2008 -- 1296 --     18 (1296/ 72 Days)
I have to provide the following results from the above data
Month --- Days --- Volume
2008-MAR -- 20 Days -- 400 ( 20*20)
2008-APR -- 30 Days -- 562 ((11*20) + (19 * 18))
2008-MAY -- 31 Days -- 558 (31*18)
2008-JUN -- 23 Days -- 414 (23*18)
Please suggest me if you know using advanced date function is that possible to write a simple query.

You scan only one time your table.
Regards salim.SELECT TO_CHAR (startdate, 'mm/yyyy'), SUM (AVG) volume, COUNT (1) days
  FROM (SELECT *
          FROM t
        MODEL
        PARTITION BY (ROWNUM RR)
        DIMENSION BY ( 1 RN)
        MEASURES( STARTDATE,ENDDATE ,VOL,AVG, ENDDATE-STARTDATE+1 DIFF, 0 VOLUME )
        (STARTDATE[ FOR RN FROM 1 TO DIFF[1] INCREMENT 1]= STARTDATE[1]-1+CV(RN),
        VOL[ FOR RN FROM 1 TO DIFF[1]INCREMENT 1]=VOL[1],
        AVG[ FOR RN FROM 1 TO DIFF[1]INCREMENT 1]=AVG[1]))
GROUP BY TO_CHAR(STARTDATE,'mm/yyyy')
ORDER BY TO_CHAR(STARTDATE,'mm/yyyy')
SQL> WITH t AS
  2           (SELECT TO_DATE ('3/12/2008', 'mm/dd/yyyy') startdate,
  3                   TO_DATE ('4/11/2008', 'mm/dd/yyyy') enddate, 620 vol, 20 AVG
  4             FROM DUAL
  5            UNION ALL
  6            SELECT TO_DATE ('4/12/2008', 'mm/dd/yyyy'),
  7                   TO_DATE ('6/23/2008', 'mm/dd/yyyy'), 1296, 18
  8            FROM DUAL)
  9  SELECT TO_CHAR (startdate, 'mm/yyyy'), SUM (AVG) volume, COUNT (1) days
10    FROM (SELECT *
11            FROM t
12          MODEL
13          PARTITION BY (ROWNUM RR)
14          DIMENSION BY ( 1 RN)
15          MEASURES( STARTDATE,ENDDATE ,VOL,AVG, ENDDATE-STARTDATE+1 DIFF, 0 VOLUME )
16          (STARTDATE[ FOR RN FROM 1 TO DIFF[1] INCREMENT 1]= STARTDATE[1]-1+CV(RN),
17          VOL[ FOR RN FROM 1 TO DIFF[1]INCREMENT 1]=VOL[1],
18          AVG[ FOR RN FROM 1 TO DIFF[1]INCREMENT 1]=AVG[1]))
19  GROUP BY TO_CHAR(STARTDATE,'mm/yyyy')
20  ORDER BY TO_CHAR(STARTDATE,'mm/yyyy');
TO_CHAR     VOLUME       DAYS
03/2008        400         20
04/2008        562         30
05/2008        558         31
06/2008        414         23
SQL> Edited by: Salim Chelabi on 2009-04-17 11:49

Similar Messages

  • Daily sales by month and cumulative sales for year

    Hi Experts,
    I have a reporting requirement where I have to show daily sales by month and cumulative daily sales for particular month for the year.
    e.g. If the current month is January then my result shows fine. see below
    Calendar Day
    Net Sales
    Target
    Sales Year
    Actual
    Target
    01/01/2014
    100
    90
    01/01/2014
    100
    90
    02/01/2014
    200
    180
    02/01/2014
    300
    270
    03/01/2014
    300
    290
    03/01/2014
    600
    560
    04/01/2014
    400
    350
    04/01/2014
    1000
    910
    But If I am in the month of Feb and I want to show sales for the month and cumulative sales for the year for just Feb but instead of showing cumulative total from 01/01/2014 to end of Feb it starts again at begining of Feb - See below
    e.g. 
    Calendar Day
    Net Sales
    Target
    Sales Year
    Actual
    Target
    01/02/2014
    200
    190
    01/02/2014
    200
    190
    02/02/2014
    400
    380
    02/02/2014
    600
    570
    03/02/2014
    600
    590
    03/02/2014
    1200
    1160
    04/02/2014
    800
    750
    04/02/2014
    2000
    1910 
    Expected Result - sales for the year shoud show cumulative result from 01/01/2014 - 31/12/2014
    Calendar Day
    Net Sales
    Target
    Sales Year
    Actual
    Target
    01/02/2014
    200
    190
    01/02/2014
    1200
    1100
    02/02/2014
    400
    380
    02/02/2014
    1600
    1480
    03/02/2014
    600
    590
    03/02/2014
    2200
    2070
    04/02/2014
    800
    750
    04/02/2014
    3000
    2820 
    How do I achive this?
    please help.

    What else you need?
    looks like you got #working days for the month, use that metric as of jan 15th

  • Sales Per Month

    Hi..
    How do u find sales per month for a company?
    I have seen FS10N in GL Account display of the sales account but i am not able to comprehend as to what is the exact sales figure?
    Please help?
    Regards,
    Kiran

    Hi Kiran,
    check this may be it can help you.
    Tcode: <b>MCH:</b> - STRPS
    for more info <a href="http://help.sap.com/search/highlightContent.jsp">click here</a>
    Regards,
    Venu.
    Message was edited by:
            Venu Narayana

  • Item Sales By Month

    Hello All -
    Similar to my earlier posting, I would also like to see item sales by month.  Once again, cumulative sales of items sharing the same first four digits for each month.
    Thanks!
    Mike

    Sort of. I have similar issue with a different report. The logic is the same but not working. In this report, I need to take the total activity of an item as of a certain day, or in other words, on hand quantity. Then they want the activity total for the previous 3, 6, and 12 months. But when I follow my previous logic, I get thousands of lines per item.
    Item -- QTY now --- 3 months before -- 6 mnts --- 12 mnths --- and then more info like Item Cost -- Min/Max values ........
    If I do something like this, SUM(Transaction Quantity SUM) OVER(PARTITION BY Material Transactions.ITEM ; ORDER BY Material Transactions."Transaction Date Year" ASC RANGE INTERVAL '2' MONTH PRECEDING ), the Order part messes things up. Don't know what to put there.
    I even tried a CASE statement, when Transaction date is between 3 months back and request end date, I get the correct amount, just in numerous lines. I tried then grouping that calc but that just caused more issues. My other report I needed to have a Period date in it, but this one I don't, which is what I think is causing my issue.
    Any suggestions?

  • Year-To-Date Sales by month calculation in cube

    Hi everyone,
    I want to already calculate the 'YTD Sales'by month in my cube, so I increase performance when the user is running his report. YTDSALES = Actual Month Total Sales + Previous month YD Total Sales.
    Not sure how to implement it in the update rule. Looks like a lt of coding. Any suggestions would be greatly appreciated.
    Thanks, RL

    You should do a little loop in the start routine and write all the monthly values into any periods up to period 12. The coding could look like:
    data: l_d_data_package like line of data_package,
          l_t_data_package TYPE STANDARD TABLE OF 
                           DATA_PACKAGE_STRUCTURE
                           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
      loop at data_package into l_d_data_package.
        l_d_data_package-/bic/ytdsales =
             l_d_data_package-/bic/sales. "or other keyfig
        while l_d_data_package-calmonth+4(2) <= '12'.
          append l_d_data_package to l_t_data_package.
          clear l_d_data_package-/bic/sales. "or other keyfig
          l_d_data_package-calmonth+4(2) =
             l_d_data_package-calmonth+4(2) + 1.
    *     If you have fiscper or fiscper3 or
    *     calquarter you may need to adjust it here too.
        endwhile.
      endloop.
      data_package[] = l_t_data_package[].
    But you should first check if aggregates or precalculated web templates are better.
    Best regards
       Dirk

  • Problem with bex query listing sales "this month" and "same month last year

    Hi,
    I've created a query in BW BEx, where I have a mandatory variable for 0calmonth, and I list 0material and sales (in volume, liter). And I have a restricted key figure giving me sales (volume in liter) restricted with 0calmonth = variable - 12, to give me the sale for the same month the user select, previous year.
    This seems to be working, the sum is correct, but when adding up the number for the sales in the month previous year, the numbers does not fit the sum in the end.
    I think the report only lists materials with sales the month selected in the variable, if a material has not been sold that month, but in the same month last year, it's not listed in the reports, but it's added in the sum in the end.
    Example.
    We have three records like this:
    material - calmonth - volume
    101 - 01.2010 - 5
    101 - 01.2011 - 8
    201 - 01.2010 - 7
    The report will give the following (calmonth variable = 01.2011)
    Material - volume this month - volume same month last year
    101 - 8 - 5
    Sum 8 - 12
    Any way to solve this issue? We noticed because we run BO - Webi on top of the BEx query, and BO sum's the values per material, and in webi the report would give us the sum 8 and 5.
    Any input is appreciated.
    Regards,
    Øystein

    Hi,
    thanks for your reply.
    The error is that the report only seems to list materials that has been sold "this month", and if the same material was sold the same month last year, it will also list the volume for this.
    But if the material is only sold in the same month last year, it's not listed in the report, but it's calculated into the sum at the end.
    The report is listing material, which is why the error presents itself, as you said
    Getting 8 minus 12 is correct unless you drill down by material. In that case, it should be 8 minus 5 and 0 minus 7.
    The row with 0 - 7 is not shown, and my guess is that the report will only list materials that has sales this month (which has been selected in the variable)
    Regards,
    Øystein
    Edited by: Oystein Gundersen on Mar 21, 2011 4:36 PM

  • ANNUAL SALES REPORT (MONTH WISE)

    Hi,
    I have following query, which shows annual sales (month wise). But when i run this query it shows all the parts (my mass production and Spare parts as well). I want it should show only MASS Production items only.
    The differencation i have specified at Item level property. If item property no. 5 (name SPARES) is check then it is SPARE item otherwise it is MASS Production.
    Thanks,
    Vincent
    ======================================================
    SELECT T0.ITEMCODE, T0.ItemName, T0.U_MODEL,
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'JAN QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'FEB QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 3 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'MAR QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 4 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'APR QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 5 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'MAY QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 6 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'JUN QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 7 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'JUL QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 8 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'AUG QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 9 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'SEP QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 10 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'OCT QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 11 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'NOV QTY',
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 12 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'DEC QTY'
    FROM dbo.OITM T0
    LEFT JOIN dbo.INV1 T1 ON T1.ItemCode = T0.ItemCode
    WHERE T0.SellItem = 'Y'
    GROUP BY T0.ItemCode, T0.ItemName, T0.U_MODEL, YEAR(T1.DOCDATE) HAVING YEAR(T1.DOCDATE) = YEAR(GETDATE())

    Hi Rahul,
    Yes this report is very much available, but my idea was to integrate an udf (Model No., which i didn't specify in this query).
    But yes this report is very usefull for me.
    Thanks
    Vincent

  • Sales voluem monthly wise report

    Hi BW expert,
    I need a repor like apr09,may09,june09 Q1, apr08,may08,june08 Q1 LY. but i restricted apr, may june on posting period its displaying only q1 . i need monthly wise like apr08,may08,june08.i searced this forum as per requirement its not displaying plz any one idea on this how to get montly wise .
    Regards
    ramakrishna

    Hi
    Yes, it is possible to compare the sales for two different periods (be it date, month, quarter, half-year, full year, etc.).   I used the fields "Calendar Year /Month period 1" and "Calendar Year /Month period 2" and also added a formula to show the growth in terms of percentages.    And it is working well in my company.
    In fact I designed the query in the following way:-
    1.   Month - (single month - say Sept. 2009)
    2.   Month - (single month - say Sept. 2008)
    3.  Months - (Jan/Sept. 2009)
    4.    Months - (Jan/Sept. 2008).
    In the query I have made a comparison of sales, ie. sales of Sept. 2009 compared to Sept. 2008 and Sales of Jan/Sept. 2009 compared to Jan/Sept. 2008.   
    All the above done in a single query.
    Regards
    Jayan
    Bangalore, India

  • Show sales per month

    Hi,
    Are trying to make a report showing the sales amount planned to be shipped out per month, having the salesprice for each Project in a textfield (text 24) trying to summarize all items that are have finishdate within the current month.
    Is this, or someting similar possible to do in Project? Have spent some hours now unable to find a solution.
    Kind regards //Anders

    Hi Anders,
    May I suggest a different approach to manage the data required for your report?
    I would create a new cost resource with the Accrue At = End
    Then you can build your project plan, assign your resources and finally build a custom report
    When you build the custom report, Time (can be changed to display months) can be use for the Field List (Resources) and, if you need,a filter for a limited number of resources can be applied
    Hope this helps
    Paul

  • RV_BELEG depending on: fiscal year, sales organization, month

    Hi everyone.
    We are facing an issue involving SD invoices numbering:
    we are currently using 3 numberings: one for receipts, one for invoices, and another one for cancelling invoices.
    The request is: this numbering should depend on fiscal year AND sales organization AND month (i.e. period).
    The problem is: we have sort of 30 sales organizations. Which yields 30 (sales orgs.) * 12 (months) * 3 (numberings) = sort of 1000 ranges EACH YEAR.
    But range RV_BELEG does not depend on anything, we can only define range numbers with a two-character string. If we used 0-9,A-Z coding we can use 36*36 = 1296 ranges.
    Which means: OK for the first year, but we cannot extend all these ranges for the 2nd and subsequent years.
    Anyone can help. Kind regards.
    Alvaro

    Hi all,
    I understand the requirements of Alvaro, he's spanish, as me, and it is a frequent requirement by spanish managers.
    First, try to understand the reason of this requirement. Perhaps the end users have the habit to know in which year and month was created the invoice by the ID (ie: VBRK-VBELN). You have a lot of fields for this in the interface to FI (check Note 301077 - User exits for the interface to accounting), after you can view this fields in FBL5N or other reports (you can enhance FBLXN tcodes, see SAP Note 215798 - FBL*N: Special fields are not displayed and related notes if the field populated is not in the standard). For instance, in field BSEG-SGTXT you have 50 characters to concatenate year, month, sales org and so on.
    Finally, explain to your client or to your boss that it's impossible. Think that by tax authority requirements in Spain, you can delete or archive invoices after 5 years, and field VBELN is a key of VBRK. And of course, it's not in legal requirements.
    I hope this helps you
    Regards
    Eduardo

  • Re: Sales scenario (monthly deduction)

    Dear all,
    Need your guidance on executing this process as below:
    1. Company will purchase the goods required by the worker.
    2. Worker will purchase the goods from the company (this is treated as normal sales scenario - not intercompany sales)
    3. Delivery is carried out. (automatically - can be triggered via cash sales scenario)
    4. Billing run is executed.
    The issue:
    1. The item sold by the Company to the staff may cost USD1,000 for example.  Though billing is done, monthly deduction from the staff's salary per month basis is required instead of carrying out a cash sales (full payment upfront).
    Hence, the deduction per month may look something like this:
    Jan: USD 100
    Feb: USD 100
    Mar: USD 100
    Apr: USD 100
    (and so forth until full payment is done.. in Oct)
    2. I figured that we can execute this using Billing Plan, with the amount or percentage laid out in the Schedule Line and each month, the Billing block is released and Billing is done.  Staff that purchase from the company will each have a customer master.
    Please advise if this is possible?  Or is there any other alternative for this scenario?
    Thanks.
    Regards.

    Hi,
    I have checked, yes the note partially meet the requirement I was looking for.
    I have configured the Billing Plan, but however, for an item, the total price is not separated over the entire validity period.
    For example:
    Material A = USD1,000
    Valid From: Today's date
    Valid To: 31.12.2010
    I have the below problem:
    1. The Billing Plan generated 5 billing plan item(s) priced at USD1,000 each, hence I have a Net Value of USD 5,000 as a result.
    2. And for each billing plan line, the billing date is next two months.
    3. Eventhough a Billing block has been automatically set for each billing plan. I am able to execute Billing (Order-related) and there is a Billing Split (which is mainly due to the different Billing Date set for each of the billing plan item). And, I have only released one billing plan, but I still see all 5 billing plan lines appearing during Billing.  Shouldn't only one line appear since only one line has the Billing block removed?
    Please assist.
    Thanks.

  • Help with query: monthly accumulated sales by month

    Hi,
    i need to build a query that shows two key figures:
    KF1) Sales accumalated on last 60 months.
    KF2) Sales for actual month.
    i know i can solve this using selections, the problem is my client needs it on columns for each month selected
    from a range. For example:
    Selecting months 01.2009 - 04.2009:
    01.2009 | 02.2009 | 03.2009 | 04.2009
    KF1|KF2 | KF1|KF2 | KF1|KF2 | KF1|KF2
    KF2 appears by default, but is it possible to show KF1 using selections ?

    Hola Juan Pablo.
    Here the main problem I see is the possibility of select a range for the 0CALMONTH. First of all try to speak to your customer to agree the possibility of select in the variables the "Ending/Last" 0CALMONTH. If you can achieve this the rest is more  o less easy.
    You have to define an structure o several RKF and from 0CALMONTH you make a set of variables (post-popop) to restric them:
    RKF_1M_01  (Selected Month)
    RKF_1M_60  (Selected Month) - (offset - 60)
    RKF_2M_01  (Selected Month -1 )
    RKF_2M_60  (Selected Month -1 ) - (offset - 60)
    RKF_3M_01  (Selected Month -2 )
    RKF_3M_60  (Selected Month -2 ) - (offset - 60)
    RKF_4M_01  (Selected Month -3 )
    RKF_4M_60  (Selected Month -3 ) - (offset - 60)
    I've made something similar for Balance Sheet
    Hope it helps you.
    Regards

  • Average Sales per month query

    Experts,
    I worked on this query and was able to get the average Sales for 2009.
    SELECT T0.CardCode, T0.CardName, (SUM(T1.Debit) - sum(T1.Credit)) AS '2009', ((SUM(T1.Debit) - sum(T1.Credit))/12)
    FROM  OCRD T0
    LEFT JOIN JDT1 T1 ON T1.ShortName = T0.CardCode LEFT JOIN JDT1 T2 ON T2.ShortName = T0.CardCode WHERE T0.CardType = 'C' AND Year(T1.Duedate) = 2009 Group By T0.CardCode, T0.CardName
    How can I also include the average sales for 2010?
    Thanks,
    Marli

    Hi Marli,
    Try this:
    SELECT T0.CardCode, T0.CardName, (SUM(T1.Debit) - sum(T1.Credit)) AS '2009',
    ((SUM(T1.Debit) - sum(T1.Credit))/12) AS '2009 Avg',(SUM(T2.Debit) - sum(T2.Credit)) AS '2010',
    ((SUM(T2.Debit) - sum(T2.Credit))/Month(GetDate()))
    FROM  OCRD T0
    LEFT JOIN JDT1 T1 ON T1.ShortName = T0.CardCode AND Year(T1.Duedate) = 2009
    LEFT JOIN JDT1 T2 ON T2.ShortName = T0.CardCode AND Year(T2.Duedate) = 2010
    WHERE T0.CardType = 'C'
    Group By T0.CardCode, T0.CardName
    Thanks,
    Gordon

  • Want the Average of sales for months up to date, with empty months included

    How do I create an MDX that gives me the average of , f.ex., Sales
    Note that some months may not have sales, but the month should still be counted.
    The result I want to get out is a listing of Years with average of Sales for each year. Where current year only calculates up to current month.
    Lets say that todays month is 2014-05 and we have the following figures for this year.
    Month Sales
    2014-01 10
    2014-02 20
    2014-03 Null
    2014-04 15
    2014-05 10
    The calculation should be Sum(Sales) divided by 5 months: 55/5 = 11
    If I use:
    Avg( Descendants([Date].[Calendar].[Month].CurrentMemeber
    , [Date].[Calendar].[Month])
    , [Measures].[Internet Sales]
    It will exclude 2014-03, which is wrong!
    If I use CoalesceEmpty() to fill in the Nulls:
    Avg( Descendants([Date].[Calendar].[Month].CurrentMemeber
    , [Date].[Calendar].[Month])
    , CoalesceEmpty([Measures].[Internet Sales],0)
    It will fill in 0 for all months 2014 (up to 2014-12), which is also wrong!
    It feels like a really simple calculation, but I can't make it work.
    Thanks

    I finally had to fix it by checking the number of months to get it right.
    This solved my problem and gave me the correct averages on year and month level.
    Create Member CurrentCube.[Measures].[COMPLAINT COUNT AVG CALC] As Null
    ,Format_String = ";;;\N\/\A",VISIBLE = 1;
        // For Year level - Show average of year = Sum/NumOfMonth. If this year then up to this month else divide by 12
        SCOPE([COMP CREATION DATE].[YEAR].[YEAR], [Measures].[COMPLAINT COUNT AVG CALC]);
            This = IIF([COMP CREATION DATE].[IS THIS YEAR].&[Y],
                            DIVIDE(SUM([COMPLAINT Count]),  Format(now(), "MM")),
                            DIVIDE(SUM([COMPLAINT Count]),  12)
            Format_String(This)="# ### ##0";
            NON_EMPTY_BEHAVIOR(This) = { [Measures].[COMPLAINT Count] };
        END SCOPE;
        // For month level - Show average of month = Sum/NumOfDaysInMonth
        SCOPE( [COMP CREATION DATE].[Year-Month-Date].[YEAR MONTHNO], [Measures].[COMPLAINT COUNT AVG CALC]);
            This = IIF(not isempty([Measures].[COMPLAINT Count]),
                    Avg(
                        Descendants(
                         [COMP CREATION DATE].[Year-Month-Date].CurrentMember,
                         [COMP CREATION DATE].[Year-Month-Date].[DATE ID]
                        CoalesceEmpty([Measures].[COMPLAINT Count],0)
                        ,Null
            Format_String(This)="# ### ##0";
            NON_EMPTY_BEHAVIOR(This) = { [Measures].[COMPLAINT Count] };
        END SCOPE;
    mStenport

  • Few sales group monthly statement are not printing

    Client is trying to print a statement for the sales group id xx1,xx2,xx3,xx4 while these come out blank. Actually there have been sales taken place but still it turns out to be blank. Where and how should i check and deal this issue?

    All these sales group share the same revenue account. Will that be a cause for not getting printed?

Maybe you are looking for