Cross Tab - select dates

Hi I have created a cross-tab report using only two fields. enrollment_id and create_date. What is needed is a count of the # of enrollments and a summary for the week starting on Sunday. I have been able to do this however, they only want for the previous 4 weeks - I am returning all weeks since the start.  I am not sure where to filter.  Here is what I used in a regular report which worked but is not working in the cross-tab.  The formula below gives me up to the last 4 weeks sunday to today.
not ({ISSUANCE.CREATE_DATE}in Last4WeeksToSun) and
not ({ISSUANCE.CREATE_DATE} in WeekToDateFromSun)
Here's what it should look like and includes a count up to today for week of 11/30.
Site_name    11/02/08              11/09/08     11/16/08    11/23/08    11/30/08
#issued            25                     29               16            18             15
Any help would be appreciated.

I figured this one out....needed to take out "not"

Similar Messages

  • Unwanted extra column in a cross-tab at run-time

    Hi all,
            I have a question about using a cross-tab on a report. I have a web page with the report and for the cross-tab column data I have selected some data from an array I supply to the report.  At run-time, when I call SetDataSource(data) for the report and look at the data there is only 2 items in the array for the column data. When the report is displayed the 2 column names and values from the data appear correctly on the cross-tab but I also have a third column. The third column has no name and has a value of 0.0.
    The actual data I am associating with the column is the time member of the CategoryTime[]. Any ideas on what could be causing this?
    public class ResourceActivity
            public string resourceName;
            public CategoryTime[] categoryTime;
    public class CategoryTime
            public string categoryName;
            public float time;
    Thanks in advance for any help
    JohnN

    John,
    It sounds like there might be a null record returned and the crosstab is generating a column for it. You could try suppressing blank columns in the crosstab expert or filter out nulls in the record selection

  • Dynamically color to each column in Cross-tab report

    Hello All,
    I am a newbie in Crystal report,from last few weeks, i am working on cross tab crystal report.i have a requirement to show color dynamically for each column.i am adding an attachment how i want it. i tried dynamic coloring using object field formula but it is showing red color to all data.i want red color data when in 2nd  cross tab report data is beyond upper or lower limit in first cross tab table. it will be very helpful if somebody will give me any clue on this.... i read so many articles now it seem like impossible for me..:(
    i am using visual studio 2010 and sap crystal report version 13.0.0.99 for visual studio 2010.

    Hello Manish,
    I have attached a sample report that does this. You will need to remove the .txt extension from the attached file to open it as an .rpt file.
    Please right click on one of the value fields of the first cross tab in the report > Format Field > Common > Suppress if Duplicated conditional formula.
    The nested formula is as follows;
    numbervar array l;
    numbervar array u;
    numbervar x:=CurrentColumnIndex;
    if GridRowColumnValue ('@limit') = 'lower limit' then
    (redim preserve l[x];
    l[x]:= tonumber(CurrentFieldValue))
    else if GridRowColumnValue ('@limit') = 'upper limit' then
    (redim preserve u[x];
    u[x]:= tonumber(CurrentFieldValue));
    false
    So it assigns each lower and upper limit value for each client (in the sample it is country) to an array using the cross tabs column index to index the array and it ends in False as we don't actually want it to suppress if duplicated. This nested formula is just used to generate the arrays of upper and lower values.
    In the second cross tab if you again right click on one of the value fields > Format Field > Font > Color you will see the following conditional formula;
    numbervar array l;
    numbervar array u;
    numbervar x;
    if not(tonumber(CurrentFieldValue) in l[CurrentColumnIndex] to u[CurrentColumnIndex]) then
    crred
    else
    crblack
    So this compaes the current field value to range generated by the 2 arrays and assigns a color based on whether or not it is in the range.
    Regards,
    Graham

  • Hierarchy problems in cross tab

    Hello,
    we are using DS 1.3 and I have a query which want to use with several views.
    I configured the initial view like the screen shot shows. The problem is, if I assign this data source to a cross tab, no data is available for this component. But the initial view shows some data. Is there something else I have to consider?
    This behavior only appears if I use queries with hierarchies.
    Thanks
    Robert

    Hello Robert - please see SAP Note http://service.sap.com/sap/support/notes/2001504 to see if it may apply; SP1 is planned in a few weeks

  • Problem with cross tab

    Hello,
    I want to use a crosstab within Crystal Report Studio to display the revenues of several months of each customer in a single row. (in the underlying database the revenues of each month are stored in a seperate row). So far so good.
    I have put the customer id to the row, the date_id to the column and the kpi revenue as group field.
    But I want to use further describing db columns in front of the kpi, additionally to the customer id, for example the customer name, customer city and so on. But I don't know how I can do this. Is there any possibility?
    I don't want to create a formular and concatenate the columns, because then I don't have the columns of the different customers amoung each other.
    So is there another approach.
    Many tahnsk,
    Stefen

    You  can add as many columns or rows as  you want.
    In your case, you can add Customer name, City etc as rows next to customer id. By default 'subtotals' for each of the row will be added.
    Since you dont want any subtotals, right click on the cross tab, select crosstab expert, uncheck 'Suppress subtotal' checkbox under 'Customize Style' tab.
    Hope this helps

  • Detail-Data in Cross-Tab

    Hi,
    i would like to add additonal data to the row-label in a cross-tab.
    ....................... C1    C2    C3
    Customer1
    .... add.Data1
    Customer2
    .... add.Data2
    Customer3
    .... add.Data3
    How can i do that?
    The link between the Customer-Table and the Extra-Data is the customer-id and a Date-Field (parameter of the report - used for filtering on a date-basis).
    Table for extra data:
    customer-id     date     amount
    DATE is a parameter of the report.
    Is there any way to do this?
    (I use CR XI).
    Result should look like this:
    Selected Date (Parameter): 2009-02-02
    ...................................................... C1    C2    C3
    Customer1 +
    ....amount on 2009-02-02 for C1
    Customer2 +
    ....amount on 2009-02-02 for C2
    Customer3 +
    ....amount on 2009-02-02 for C3
    THX in advance,
    Markus

    Hi,
    Lets phrase it differently again
    i have a second table from which i would like to add additional information to the row-information in a cross-tab.
    customer.... date ... amount
    Cust1....2009-02-01....   10
    Cust1....2009-03-01....   15
    Cust1....2009-04-01....   77
    Cust2 ........
    Cust3 ........
    I need ONLY the first amount from the starting-date in the CROSS-Tab.
    The starting-date is a parameter in the report.
    If i put there the linked amount-field i get a row for each different date.
    I need only one row per customer with the first amount from date 1. (the parameter-date-value)
    So if i enter 2009-03-01 as the parameter, i would like a cross tab with a row-name of:
    "Customer1 + ChrW(13) + 15 "
    It works with a SQL-Expression (named "StartSaldo") like:
    (Select Saldo from Goldbeck_Saldo where D_Date = '20090301'
    and "Goldbeck_Saldo"."I_PERSID"="BaseTable"."I_PERSID")
    and a row name of "Customer.Name + ToText({%StartSaldoSQL})
    However the Date "20090201" is hard-coded there.
    I can find no way to make the Date from the SQL-Expression soft-coded (pass the parameter to the scalar SQL-Expression). According to another forum-post this is not possible.
    THX
    Markus
    Edited by: Cumulus7 on Apr 27, 2009 4:25 PM

  • Calculations based on Summarized data in Cross Tab

    First off, I'm pretty experienced with Crystal.
    I've run accross something that seems like it should be realy easy to do, and the sort of thing you would expect to do  in a cross tab... so maybe I'm missing something totally obvious.
    I'm doing a year over year comparison of some financial data broken down by month and by quarter.
    So, my Rows are Quarter, and a field called 'YEARMONTH' (calculated field, YYYYMM, for ease of sorting)
    My column is Year, and for summarized fields, I have the data field I'm interested in which is a float. Let's call it 'Dollars' for sake of argument.
    What I want to do is create a summary field (next to the total field) called 'Difference' or 'Delta' that calculates for reach row the difference between my two years (2008, and 2009)
    The only solution I can come up with is to dummy in a record from the datasource with a year value of 'Difference' and some other dummy values so that it will show up as a column on the cross tab, and then somehow use the currentrowcolum function or some such creature to mask the output in the column. but now that I type it out here, I'm not sure it's going to work. I also don't think it's going to export the way I want it to either.
    I'd really prefer it to be in a cross tab, and not in some manually created cross-tab emulation using manual running totals, but I'll go there if I have to.
    Thanks a ton!

    This is what I did in my report to get the difference
    my crosstab looks like this
                        2004     2005    Total
    Total              T1         T2         T
    USA               A          B          C
    INDIA              X          Y          Z
    right click on T1 and go to format field and write the suppress condition like this
    numberVar d:=0;
    currencyVar array arr1;
    currencyVar array arr2;
    numberVar e;
    if GridRowColumnValue('year')=2004 then
    (e:=e+1;
    redim preserve arr1[e];
    arr1[e]:=CurrentFieldValue)
    else
    (e:=e+1;
    redim preserve arr2[e];
    arr2[e]:=CurrentFieldValue);
    false
    right click on T and go to format field and write the Display string condition like this
    currencyVar array arr1;
    currencyVar array arr2;
    totext(arr1[1]-arr2[1])
    right click on A and go to format field and write the suppress condition like this
    currencyVar array four;
    currencyVar array five;
    numberVar d;
    if GridRowColumnValue('year')=2004 then
    (d:=d+1;
    redim preserve four[d];
    four[d]:=CurrentFieldValue)
    else
    (d:=d+1;
    redim preserve five[d];
    five[d]:=CurrentFieldValue);
    false
    right click on C and go to format field and write the Display string condition like this
    currencyVar array four;
    currencyVar array five;
    numberVar g;
    g:=g+1;
    ToText(four[g]-five[g])
    Note: Please select the option "column totals on top" for crosstab in customize style
    Hope this helps!
    Raghavendra

  • Record selection issue in cross tab.

    Hello!
    I have a record  filtering problem. I tried many scenarios, and searched this forum but I cannot find an solution.
    I have a sub-report that contains a cross tab that provides a few summarized fields.
    I have two tables: a table with category of events : (field catID and Catname) and an event table with a CatID, a date field and others number field I use in the cross tab.
    I want my cross tab to show one row per category. The Catname and the summaries.
    Now all is working fine but for one issue. I need to select my event according to a time bracket.
    So I created two time parameters (start and end) and select the event dates between these two dates.
    Now, when selected, any category that does not have an event between these dates are not displayed. I would like them to be shown with "o" values.
    There must be a way of doing this. I just cannot find it.
    Esther

    In order for Crystal to show data, it must be given data to show!
    You will need to base your subreport on an SQL Command.  In that command, put the current SQL used by the report.  To this, do a UNION to a select that selects the category name, and a zero for each field that you are summing in the crosstab.
    As a simplified example, suppose the original SQL was (MS SQL):
    select c.catname, sum(e.quantity) as Quantity
    from categories c, events e
    where c.catid = {?catid parm}
    and c.catid = e.catid
    and e.date between {?start} and {?end}
    This would be changed to
    select c.catname, sum(e.quantity) as Quantity
    from categories c, events e
    where c.catid = {?catid parm}
    and c.catid = e.catid
    and e.date between {?start} and {?end}
    UNION
    select c.catname, 0 as Quantity
    from categories c
    where c.catid = {?catid parm}
    This will return an additional zero record, regardless of what data the original query returns, thus giving Crystal the data needed to display.  Note that the zero value will not affect the results in any way, except causing a zero to be displayed if no data is returned from the original query.
    Just remember that the second SELECT in the UNION has to have the same number of fields, of the same data type, as the first SELECT.
    HTH,
    Carl

  • Date Formatting in Charts and Dynamic column resizing in Cross tabs

    Hi All,
    I am new to Design Studio, so am in desperate need of your help on the following:
    Is there a way we can change the date format in x axis in charts?
    For ex: Am getting dates as mm/yyyyy from BW but requirement is to show in yy-Mon
    Requirement is to display data in cross tab just below the charts. How can I make the column widths in the cross tab the same as x-axis divisions in the chart? Also, this will be dynamic as depending on filter selection x axis scaling in charts will vary.
    In cross tab, can I hide the column header?
    Would really appreciate any kind of help from you.
    Thanks & Regards
    Swasti

    HI Swasti,
    To answer your first question, in Design Studio it's what you see is what you get! so it shows the Data Labels as it is in the BEx output, if you have to modify this you have to change it in the Background.
    There might be CSS workarounds, but I am not sure if that will satisfy your requirements.
    You can fix the Column width, but it would be constant, aligning that to your X-axis would require a lot of Effort.
    You cannot hide the Column header directly, but one workaround would be to use a white BG text component to overlay on the Crosstab.
    Regards,
    Fazith Ali Z

  • Cross tab Date Column Grouping

    Hi,
    I have a cross tab in my report which displays no of tickets opened grouped by day, week or Month, grouping is done based on a parameter GroupBy, which has Day, Week, Month values
    Incident   Jun -99  Jul-99
    Priority1      10          20
    Priority2      45          23
    if user selects day or week, cross tab should display column in dd/mm/yy format, if its month, MMM-yy format.
    I have created formula which returns a date type
    GroupBy = Day then Opendate
    GroupBy = Week then opendate -dayofweek(opendate)+1
    GroupBy = date(year(opendate),month(opendate),1)
    and used this date formula as column in cross tab. I tried to format using custom date style...but its not working in cross tab.
    if I use totext to format the date formula, data will not be in sorted order...ex, its showing jul-99 before jun-99
    can anyone help?
    Thanks in Advance,
    Jyothi

    You can avoid multiple cross tabs by using the Display String expression under Field Formatting.  The expression that is entered in this field is what is displayed as the field value in the report.  Use the same logic as you are using for calculating the value, except return CStr(CurrentFieldValue, <format>), where <format> is the formatting code for the desired date format based on GroupBy.
    HTH,
    Carl

  • Cross Tab keeps suppressing rows with no data

    I have a Crystal Report that is using a Cross Tab.  I have 2 rows in the cross tab the first row is the Month name and the second row is the Day Number of the month, and the report will print the Month Name on the left followed by all the Calendar Day Numbers in the month.
    The problem is that when there is no data for a Day Number row the entire row is not shown.  So you might have day number 1, 2, 3 and then jumps to maybe 6.  I found that the ones the cross tab was not showing did not contain any data.  I just need the calendar day number to at least print so the days read sequentially instead of jumping to 6 or another number.
    Is there any way to show the rows even if they don't contain any data?
    I have right clicked and gone into the Cross Tab expert and there isn't anything checked to suppress rows.  I don't understand why its still suppressing rows!
    Is there a global report option that I missed that says "suppress rows when there are no records"?
    Thank you all in advance,
    I am using Crystal Reports XIR2 with Service Pack 4

    I am still not getting all rows to show up on the report.   The rows that are not showing up contain no data in the cross tab but the row still needs to show.
    The only reason I got it to work before was because I selected all values for the columns parameter so it brought back everything in the database that was why it was able to show all values.
    I have two tables one is a date database and contains all the dates till 2012.  The other is the product data which contains the product code and qty that the cross tab summarizes.
    I have done a left outer join from the product data to the date database, and I am still not able to get all the dates to list for the selected time range. 
    I was able to get the dates to show up when I right clicked the link and modified the link properties.  I chose Left Outer Join and then under Link Type I selected ">" in the database expert dialog.  This brought back all the dates but the data in the report was all the same.  Probably just the first record repeated all down the page.
    Any ideas how to fix this problem?

  • Cross tab on quarter (date) parameter

    Post Author: tomahawk
    CA Forum: Charts and Graphs
    I need to design a cross tab report where the column is a certain date field (say date1). However, the report is a quarterly report, so the columns should be for each quarter (date1 falling in a particular quarter). The user wants to select the quarter from a drop down parameter box at runtime. How do i set the condition/formula for the cross tab to display details for the quarter that the user selected?
    Please help urgently.
    Thanks
    Tom

    Post Author: sleahcim
    CA Forum: Charts and Graphs
    Hi Tom,
    While there may be some method to do it by playing around with the formatting, you're likely to get it done quicker by creating a formula for your quarters, and swapping that field into your crosstab.  Here's a sample report that shows you how to create a quarter formula.
    -Michael

  • Cross tab & Line Graph – Data Sorting issue

    Hi,
    Want to display data in specific order in cross tab row & in graph as shown below
    Account Name
    Average
    Median
    In the same order data has been retrieved from the database but when it comes to Crystal report, its reordering the data in alphabetical order as shown below due to the order set in Group option
    Example: 1
    ABC
    Average
    Median
    Example: 2
    Average
    Median
    XYZ
    Please note u201CAverageu201D & Medianu201D are constant but Account name will vary based on selection.
    How this can be achieved? How Specific Order can be used in this case?
    Please help... Itu2019s urgentu2026
    Thanks,
    ThakurS

    Hi
    Under "chart expert" in "data" tab where you add the fields in chart you see "on change of" and "show" values..
    After adding the required on "change of fields" if you would highlight that field "group option"  tab will get enabled where you will find the "sort order" drop down. There is an option "In Original Order" which will sort the fields as fetched from Database
    Same option is available in Cross-Tab
    Regards,
    Shantanu

  • Date Format is not Working in Cross tab Crystal report 2008

    Hi,
    I have developed an application ASP.Net c#
    in Framework 3.5 with crystal report 2008 with service pack 5.
    in my crystal i used cross tab to show the grid records. one of the data having the data type as date time after launching the report, when i export the report with option "export to excel (data only)" and check the format of the date value in excel it show the general string
    if i place that data in any other location other than cross tab then it reflects the format what i give in report design. but when the control is in cross tab
    its not effect
    how to solve this!

    And tweeted
    - Ludek
    Senior Support Engineer
    AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Data binding cross tab in Crystal 2008 with Xcelsius swf file

    I've created a visualisation in Xcelsius and want to bind it to a cross tab in CR2008.   The labels appear correctly in the swf visualisation but I get no data.   The format of the table in Xcelsius and the cross tab I believe to be the same, covering data formats.   I have placed the Xcelsius visualisation in page header "a" with the cross tab in page header "b".   The Xcelsius table has been defined in terms of column and row headers as well as data area, so I've done everything that I understand to be correct.   In CR2008 I have specified that I use the existing named cross tab.
    Does anyone have any idea what I may have missed.
    tia
    Neil

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly

Maybe you are looking for

  • Getting error when view - Requested data type does not match with existing

    I have the siebel web service In the BI publisher as mentioned in the 'Siebel_BI_Publisher_Integration_Concepts.pdf', I have imported the siebel web service BI can recognize the 'Web service' and methods. I have created the paramters. The data type i

  • Send inbound IDOC as outbound(copy)

    Hi, We need to send the same inbound IDOC as outbound IDOC to the customer(they want to get a copy of it) How can we do this? We are getting inbound sales order IDOC's and the customer wants the copy of the same IDOC, not order acknowledgement. Is it

  • Multiple kinect V2's where there field of views dont overlap.

     I know that similar questions like this have been asked before so bear with me. I want to get 2 kinect V2 sensors running on one PC.  These 2 Kinect v2 sensors will be mounted on the same machine but one sensor will monitor the infeed of the machine

  • Simple rmi-ejb question

    Hi all! I'm a new to ejb, just started, for the beginning got an exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.nam

  • Domain Controller A record removed from DNS repeatedly

    We have one DC whose A record keeps getting removed from DNS and I can't figure out why.  If I log onto the DC in question and run ipconfig /registerdns the A record appears and I can use nslookup to find it almost immediately.  Within 10 minutes, th