All months of the calendar year

I have a reporting requirement. I need to report the number of transactions made for each month for this particular calendar year.
I am using Crystal Reports 2008
Which is the best way to go around this - cross-tab or create the columns manually.
Some months may not have transactions still I need to report that month name and add as zero count.
eg:                            JAN FEB MAR
number of trans.        12   0      5
which is the best approach, please give details in both formats(crosstab as well as ordinary manual tables)
Thanks.

I agree with most of what Jason has said, but there are a few things that might be clarified a bit:
Adding 1 to the end date would be necessary if (a) the database field includes a time value as well as a date, and (b) if the end date parameter does not.  You would not want to do that if either of these two conditions do not hold, otherwise you'll be adding a day's worth of data to the report, perhaps unknowingly.  (Actually adding 1 might cause extra records to be selected if there is data for midnight the day after the end date, so you really should subtract a millisecond after adding 1, or force the time portion of the end date to 23:59:59.99999, which my preferred method, as it is obvious what you are doing.)
Sometimes CrossTabs can be a blessing, and make report writing a whole bunch easier.  Other times, they can turn into a huge pain in the neck.  It really depends on what you are trying to accomplish, what your data looks like, and what's easier to get from there to here.  If your requirements are for a grid of counts or sums with one (or a few) types of values (like month, year, product, whatever) going across the page, and one (or a few) types of data going down the page, a cross tab is probably the easiest way to go.  If the result needs to be more complicated, a regular report is often easier.  One rule of thumb that I use is "If you don't know at design time how many columns are required, go with a cross tab.  Otherwise, use a regular report."
And lastly, although I agree that the selection expert and other crystal tools can achieve anything that an SQL Command can do, run times are frequently much faster using a properly written SQL Command.  By pushing all of the record selection, table joins, and aggregation to the database, far less data gets returned to Crystal.  Databases are designed to do these types of tasks with great performance; Crystal is designed to do these tasks because it has to.  (That's a bit harsh, but having Crystal do these tasks will never be as fast as having a database do them.)  Also, if the database is not on the same machine as where the report is running from, you also have the issue of having to pump all of the data across the network.  Minimizing that data results in a much faster runtime.  Crystal does try to push as much of the work to the database as it can, but Crystal doesn't always do a perfect job of that (mainly because it has to do it in a general manner).
HTH,
Carl

Similar Messages

  • Unable to view the Calendar Year/Month in the Query

    Hi All,
    We are having a standard query on Customer InfoCube 0sd_c01_q0003.
    I was able to get the data. But I am unable to view the Calendar Year/month. In that place I am getting '#'.
    I am able to view the details in the InfoCube. There aren't any errors while executing the error.
    Regards
    YJ

    hi,
    U r Problem is not clear...if u r getting # for characteristic values means..u don't have data in Infoprovider...try to view data in InfoProvider with the same selections that u r executing the Query with.
    thnaks

  • How do you see another month on the calendar or can you only see the current month only

    how do you see another month on the calendar or can you only see the current month only

    You can't see another monthly calendar in the monthly calendar view, you can only see upcoming events for the next 7 days.

  • How can I alter a calendar script to place progressive dates on every day in the calendar year?

    Is there an easy way either to alter the calendar script or create something that will allow for variable text in each day of the year?
    I am creating a calendar for a cattle rancher, and he wants to include a gestation calendar in the design.
    So...instead of the Julian date on every caledar day, he would like to include the date that a calf will be born if the cow had been bred on a particular day.  For example:  On the calendar date, January 1, in that box, another smaller date will appear - 10/9, On January 2 - 10/10 and so on. But, I need this progression to continue throughout the whole year.
    I have attempted to manually enter each date in a separate table and super impose it over the calendar, but this is very slow and very tedious. There has to be a faster way.
    I am comfortable looking at code and can often times figure out which fields to change, but I am a bit lost on this one. Where do I start?
    Please help!
    Thanks!

    That helped, but still did not solve the "continous scroll" question.
    I did however discover that if you go to Search and type in a "common" letter like "s", a Continuous List view will appear.
    Any further help on how to do this as a default view would be appreciated from any and all.
    Thanks for the help and for the link paulcb.

  • Need working days for all months in a given year

    Hi,
    I need no of working days for all the months in a given year.
    (i.e year is the input and the query should return 12 columns(jan-dec). Saturday and Sunday are holidays)
    Regards,
    Vignesh

    Maybe you can use this:
    break on month skip 1
    set linesize 200
    set pagesize 2000
    column month format a20
    column week format a4
    with req as (select '&Required_Year_YYYY' as yr from dual)
        ,offset as (select case when to_char(trunc(to_date(yr,'YYYY'),'YYYY'),'IW') in ('52','53') then 1 else 0 end as offset from req)
    select lpad( Month, 20-(20-length(month))/2 ) month,
           '('||week||')' as week, "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"
    from (
      select to_char(dt,'fmMonth YYYY') month,
      case when to_char(dt, 'mm') = '12' and to_char(dt,'iw') = '01' and offset = 0 then '53'
           when to_char(dt, 'mm') = '12' and to_char(dt,'iw') = '01' and offset = 1 then '54'
           when to_char(dt, 'mm') = '01' and to_char(dt,'iw') in ('52','53') then '1'
           else to_char(to_number(to_char(dt,'iw'))+offset) end as week,
      max(decode(to_char(dt,'d'),'1',lpad(to_char(dt,'fmdd'),2))) "Su",
      max(decode(to_char(dt,'d'),'2',lpad(to_char(dt,'fmdd'),2))) "Mo",
      max(decode(to_char(dt,'d'),'3',lpad(to_char(dt,'fmdd'),2))) "Tu",
      max(decode(to_char(dt,'d'),'4',lpad(to_char(dt,'fmdd'),2))) "We",
      max(decode(to_char(dt,'d'),'5',lpad(to_char(dt,'fmdd'),2))) "Th",
      max(decode(to_char(dt,'d'),'6',lpad(to_char(dt,'fmdd'),2))) "Fr",
      max(decode(to_char(dt,'d'),'7',lpad(to_char(dt,'fmdd'),2))) "Sa"
      from ( select trunc(to_date(req.yr,'YYYY'),'y')-1+rownum dt
             from all_objects, req
             where rownum <= add_months(trunc(to_date(req.yr,'YYYY'),'y'),12) - trunc(to_date(req.yr,'YYYY'),'y') )
          ,offset
      group by to_char(dt,'fmMonth YYYY'),     case when to_char(dt, 'mm') = '12' and to_char(dt,'iw') = '01' and offset = 0 then '53'
                                                    when to_char(dt, 'mm') = '12' and to_char(dt,'iw') = '01' and offset = 1 then '54'
                                                    when to_char(dt, 'mm') = '01' and to_char(dt,'iw') in ('52','53') then '1'
                                                    else to_char(to_number(to_char(dt,'iw'))+offset) end
      ) x
    order by to_date( month, 'Month YYYY' ), to_number(x.week)
    / L.

  • Syncing more than 12 months throws the next year out

    I have syncned from my pc outlook 2007 to my 3GS OK, but if I do it on certain appointments for no "end date" they seem to advance a day in the following year. how do I correct this ?

    All right, so I solved it. I ended up using this formula:
    In my "Log" table
    =MONTH()*10000+YEAR(), so I got 102007
    then in my "Monthly Stats" table with the month only displayed in the 1st column, I used
    =COUNTIF(Log :: C,(10000*MONTH()+YEAR()))
    If there's a better, easier way, I'm all up for it, but this works perfectly.

  • How to Get current month of the Calendar

    Hey everyone ,
    Starting to understand a bit APEX now , but i'm still missing some more accurante knowledges such as methods i could call Here is my problem :
    I have a drag and drop APEX Calendar , and everything is working just fine , under this calendar i decided to add a flash report , who is showing the current month work ,
    and who is refreshing each time i add a new work in my calendar : my question is , is there a method to call to get the month the calendar is displaying ? Because when i change my calendar to an older month i need the flash report to change too so i can displayed the information from the month the calendar is displaying
    Any help or advice from you will be very apreciated , i thank you in advance
    Brice

    Krishnamurthy has a workaround please see thread http://forums.oracle.com/forums/message.jsp?id=827915 for details
    Sunil.

  • All entrees in the calendar of my iphone4 have vanished and I cannot retrieve or re-enter them. How can I recover the use of my calendar?

    The calendar on my iphone lost its content and will not accept new entrees. I do not know what caused this malfunction. I want to know how to either regain the lost entrees and/or how to make news entrees.

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • Iphoto crashed before filling in all months of a calendar for printing

    Now I am unable to complete the calendar from my photo file as before. Is there any way to complete the current calendar?

    Now I am unable to complete the calendar from my photo file as before. Is there any way to complete the current calendar?

  • I have calendar notifications that won't go away, even though I've deleted all occurrences of the calendar, including on my iPhone, my iPad, my Mac and iCloud

    I have a calendar that I've deleted EVERYWHERE, and re-synced. But the calendar alerts are still appearing on my iPad and my iPhone. HELP!

    if password is correct - you are not connected to internet. Connect if you can. If you can't connect - you may have to restore ipad in recovery mode.
    But if password is incorrect - that will render ipad useless.

  • I lost all documents for the past year.

    I'm on a server at work.  Turned on iMac in the morning and Entourage wasn't connected to the exchange server.  I put all my desktop docs in a folder and dragged them to the Mdrive.  Now they're gone.  IT services here is mainly PC, so they tried everything they know and could not locate my docs.  Any ideas?

    Typically dragging a folder to another volume should simply copy it rather than move it. Which means they should either be on both the Desktop and the network drive or just your Desktop. Otherwise you'll need to restore it from your daily backup.

  • How do I see NEXT month in the calendar?

    I've tried everything I can think of but I'm still stuck in April. I just wanted to see what day Cinco de Mayo falls on and I had to actually take out my phone. The horror.

    You can use a Shared Photo Stream. Tap the Edit button selecting the photos then tap the Share icon to add a new Shared Photo Stream. Add your Apple ID when prompted. It can take some time to upload the photos. They shared photos will also be reduced resolution to optimize then to the devices screen and save network bandwidth.
    The best option is to get them on to your computer organized into a photo library then sync them over to the iPad. This way your photos can be backed using a computers more reliable back up routine.

  • To show all months of qty values for each fiscal year in report?

    Our cube contains different fiscal years of order qty/delivered qty for a material (e.g. material A).  We use fiscal year variant V9 (Oct. - Sep).  We would like to generate the following query result to list the material, order qty, fiscal year, and then for each calender month, the delivered qty value for the corresponding fiscal year:
    Column title:
    Material --- Order Qty --- Fiscal Year --- Oct --- Nov --- Dec --- Jan --- Feb --- Mar --- Apr --- May --- Jun --- Jul --- Aug --- Sep
    Just give two rows of data for material A:
    1st row data example:
    A (material) --- 23 (Order Qty)  --- 2006 (fiscal year) --- 2 (delivered qty in Oct of the calendar year 2005 )  --- 4(delivered qty in Nov of the calendar year 2005 ) ---1 (delivered qty in Dec of the calendar year 2005 ) --- 5 (delivered qty in Jan of the calendar year 2006 ) --- .... 2 (delivered qty in Sep. of the calendar year 2006)
    2nd row data example:
    A (material) --- 45 (Order Qty)  --- 2007 (fiscal year) --- 3(delivered qty in Oct of the calendar year 2006 )  --- 6 (delivered qty in Nov of the calendar year 2006 ) ---1 (delivered qty in Dec of the calendar year 2006 ) --- 5 (delivered qty in Jan of the calendar year 2007 ) --- .... 2 (delivered qty in Sep. of the calendar year 2007)
    How to generate this query?
    Thanks!

    hi Chandran,
    Actually in each row data for material in different fiscal year, all the KFs in columns should be restricted to the fiscal year value.  What we do is to use selections other than structure or RKF.  What we is following listed in details that you can check if what we do is correct:
    Under KF structure:
    1. Create a selection for the 1st KF (Order Qty).  In this selection, Order Qty is restricted with the characteristic 0FISCYEAR.
    2. Create a formular as 2nd KF for the FY value.  This formula KF use the value of a formular variable with Replacement Path of the the characteristic 0FISCYEAR.  But somehow this KF value shows "X" values in this column.  We defined this Replacement Path variable with the Reference Characteristic as 0FISCYEAR and all others keep default.  But don't know why this column shows "X" values. We also add  0FISCYEAR to the row, and find the one does have data in the row.  Any idea why put it in formular variable onto column not working?
    3. Create a selecction for the 3rd KF (Oct). In this selection, restrict Delivered Qty with the characteristic 0CALMONTH2 (Calendar month) and further restrict 0CALMONTH2 to a fixed value: October
    4. Create a selecction for the 4th KF (Nov). In this selection, restrict Delivered Qty with the characteristic 0CALMONTH2 (Calendar month) and further restrict 0CALMONTH2 to a fixed value: November.
    Then the following steps are similar to step 3 and 4 to create all other Month columns.  We wonder in all these selections, would we have to restrict them further with 0FISCYEAR?
    Therefore we've got two questions:
    1. Why in step 2, the formular variable doesn't work and the FY column shows "X" values?
    2. Do we need to further restrict the delivered qty with the characteristic 0FISCYEAR for each month column which corresonding to the fiscal year in the same row?
    Thanks alot and we are keeping giving you reward points!

  • Selective deletion based on Calendar Year/Month in process chains

    Hi all,
    I have a requirement from the business wherein I have to delete the past months data before I load the same data into 6 infocubes using a process chain.
    I checked the forums to understand how selective deletion is used in a process chain and I have come to know that RSDRD_DELETE_FACTS program or DELETE_FACTS Tcode can be used to generata a G* program that performs the deletion.
    I am to integrate this generated program in my process chain. I have 0CALMONTH(Calendar Year/Month) as the time characteristic in all my infocubes and therefore the only time characteristic available for selective deletion.
    My problem is that I am unable to create a dynamic selection for the Calendar Year/Month such that it takes the previous month.To be exact I am unable to use the "D" option in the Selection Variable column for this characteristic.
    Please can somebody help me out with this.

    Hi,
    Use this ABAP program code in your Process Chain...
    Type Pools
        TYPE-POOLS: rsdrd, rsdq, rssg.
    Local Internal Tables
        DATA: lit_msg     TYPE rs_t_msg,
                    lit_sel     TYPE rsdrd_thx_sel.
    Local Work Area
        DATA : lwa_sel_kf1     TYPE rsdrd_sx_sel,
                   lwa_range_kf1  TYPE rsdrd_s_range.
    Local Constants
        CONSTANTS :    lc_i(1)      TYPE c  VALUE 'I',
                                 lc_x(1)      TYPE c  VALUE 'X',
                                 lc_eq(2)     TYPE c  VALUE 'EQ',
                                 lc_kf1(11)   TYPE c  VALUE '0CALMONTH'.
        CONSTANTS :   lc_cube      TYPE rsddatatarget VALUE 'Z_C21'.
    Delete Existing cube records
    Key Field 1 (CALMONTH)
          lwa_range_kf1-sign    = lc_i.
          lwa_range_kf1-option  = lc_eq.
          lwa_range_kf1-high    = space.
          lwa_range_kf1-keyfl   = lc_x.
          lwa_range_kf1-low     = <Value of CALMONTH>.
          APPEND lwa_range_kf1 TO lwa_sel_kf1-t_range.
          CLEAR  lwa_range_kf1.
           lwa_sel_kf1-iobjnm = lc_kf1.
          INSERT lwa_sel_kf1 INTO TABLE lit_sel.
          CLEAR : lwa_sel_kf1.
    Selective Deletion through FM
          CALL FUNCTION 'RSDRD_SEL_DELETION'
            EXPORTING
              i_datatarget      = lc_cube
              i_thx_sel         = lit_sel
              i_authority_check = space
              i_mode            = lc_c
              i_no_enqueue      = lc_x
            CHANGING
              c_t_msg           = lit_msg
            EXCEPTIONS
              x_message         = 1
              inherited_error   = 2
              invalid_type      = 3
              OTHERS            = 4.
          IF sy-subrc = 0.
            REFRESH : lit_sel[],
                      lit_msg[].
          ENDIF.
    Thanks,
    Saru

  • Calendar year/month

    Hi,
    The csv file has the calendar year/month as 200801. But when the data is previewed in the datasource, it shows as 20.0801. What could be the reason? The conversion exit used is PER16.
    Also, Fiscal year/period has 2008010.It shows in the preview as 200.8010. What could be the reason? The conversion exit used is PER17.
    Thanks.

    Hi,
    Conversion routines seem ok.Why do not you try to put in your csv file like 012008 (calmonth) or 0012008(fiscper) instead of the one you currently using.
    Regards.

Maybe you are looking for

  • Custom Search using new View Object (Programatically)

    Hi Experts, Currently i am exploring the ADF-BC and i have a basic question. Hope you experts will help on this. I am thinking of implementing the search functionality with out using the "Query component" because the search that i am going to impleme

  • How can I  rotate clipped head image   in animated gif

    I am trying  a copy and paste to make  take  2 items-    A video of person  shoveling  snow  and  replace the  head. Here is  what  I came up with-- real  rough There are 2 issues here. 1.  how to edit  a head to  give a different view angle  to matc

  • JPA query

    Hi: I am studying JPA with Toplink in Netbeans 6.0 I followed the tutorial for this and it created a users table with an autoincrement primary key as an Id. Everything is nice. My question is: If I have a very large table and I would like to retrieve

  • Enabling Web services in netweaver

    Hello i have netweaver(ABAB) trial version installed on a win2k3 VPC and i want to enable some of the functions in the sample flight reservation app as a web service so that i can consume it via .net apps. or Are there any functionality that has been

  • Change HTML output

    Hi all, when I create a ITS service and generate the ITS templates. The generated ITS template code is not all that is send to the Browser. The browser somehow gets additional SAP generated text. when I look at the source of a ITS screen in the brows