Crosstab Design

I need to create a Crosstab Report.
For the row header, I have ciy
For the column header, I am using days of month
For the summary field, I have sales
The crosstab has a filter to display on sales during the last week.
I need to display all cities even if the city did not make any sales.
I appreciate your help.
Thanks.

Hi Carl,
Thanks again for you response. When I use the following query I get no data.
select c.city, sale date, sum(s.sales) as sales
from customers c, sales s
where s.sale_date between '{?start date}' and '{?end date}'
and s.customer_id = c.customer_id
group by c.city
After I remove the sale_date filter, I get the data. I also get the data if I set the filter in the record selection.
Can you please tell me the reason why I am not getting any data when I set the filter in the command query?
To continue working on the original issue, I removed the date filter on the command query. Here is the modified form of the query you suggested.
select c.city, sale date, sum(s.sales) as sales
from customers c, sales s
where s.customer_id = c.customer_id
group by c.city
UNION
Select distinct city, getdate(), 0 as sales
From customers
Now I set up the a filter for Sale date using the record selection in the report.
This gives me all the cities with no sales for the sale date period and sale for today
(because of "Select distinct city, getdate(), 0 as sales
From customers" query)
But I do not want to display the sale for today. How can I suppress the sale date for today?

Similar Messages

  • Display Repeated Values in a Crosstab - Design Studio 1.2

    I've a report in Design Studio from a Bex query. There are repeated values in few columns which Design Studio 1.2 refuses to display.
    note: I've already unchecked the box "Hide Repeated Key Values" in the query properties of Bex query designer and i'm able to see repeated values when I open the query in Bex analyzer.
    Design studio would not display the repeated values in the crosstab.
    Anyone encountered and fixed a similar issue before?

    Hi Stephen,
    I was not able to resolve this issue, and I had to go ahead with values not being repeated.
    I think this is a limitation of Design Studio with no fix for it in v 1.3 either, unless someone could suggest otherwise.
    Regards,
    Abbas

  • Manual crosstab design

    I need to create a manual crosstab,
    The database details are,
    name     group1    group2     group3     duration      date
    abc         g1            g2               g3            5            2010-06-01
    abc         g1            g2               g3            6            2010-06-02
    abc         g1            g2               g3            1           2010-06-03
    fre          g1            g2                g3           5            2010-06-04
    fre          g1             g2              g3            9            2010-06-04
    fgr          g1_2       g2_2            g3_2       2             2010-06-05
    I want the report as,
    Sno    NAme    2010-06-01     2010-06-02         2010-06-03      2010-06-04    2010-06-05      total
    g1-g2-g3
    1        abc            5                       6                              1                  0                         0              12
    2        fre             0                        0                             0                 13                         0              13
    total                    5                         6                             1                 13                        0               25
    g1_2 -g2_2 -g3_2
    1        fgr            0                         0                               0                0                         2               2
    total                    0                         0                               0                0                         2               0
    can anyone please help me? I am new to crystal reports?

    I have taken a parameter 'P1' (Date type.  In database the record date datatype is date/time having format of 'yyy/mm/dd'. I am using Ms access database) for which while previewing i gave the value of '2010/06/01'. I have created 6 formula fields in page header H1.....H7, for H1 i wrote
    {?P1}
    H2 -
       {?P1}+1
    and so on...
    I have created three groups using group expert g1,g2,g3
    In details section i created 7 formula fields D1..... D7, for D1 i wrote,
    D1-----if {Record.Record Date}={?H1} then
    {Record.Duration}
    else
    0
    similarly till D7
    While priewing i am getting all zeros. I have suppressed the formula fields in detrails section ang created summary fields in group3 footer then also i am getting zeros.

  • How to set up display properties for a crosstab is CSS?

    I am woundring how to setup css class and code like in this tutorial.
    myalerting.css ?
    Set up display properties for a crosstab: Design Studio 1.2 - YouTube.
    Design Studio 1.2: Set up display properties for a crosstab
    if you have sample file please share I am sure other can be befits from as well.
    I would like to use color display on numbers or icons in seperate column if the value in certain range  or a value is below or avove business needs.
    Thanks.

    Kevin,
    I could not get this to work on my installation; perhaps you can review and "run with it" or someone better with CSS can assist.
    The gist of it is there is a class .sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert1Background to define the status symbol for the alerts
    Based on your Exceptions in the BEx query, Good 1 is .sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert1Background
    Good 2 is .sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert3Background
    etc... Bad 3 (red symbol) is .sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert9Background
    I tried the following custom CSS on the crosstab, note using IE (which now we can no longer use until Microsoft patches)
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlternating{
    background-color:#F9F9F9 !important;
    myAlerting.sapzencrosstab-DataCellDefault{
    background-color:#FFFFFF !important;
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert1Background
    color:rgba(0,0,0,0.0);
    background-image: url('/aad/resources/~1398612272195~/sap/zen/crosstab/themes/sap_platinum/img/exceptions/status_1.gif') !important;
    background-repeat:no-repeat !important;
    background-position:center top !important;
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert2Background
    color:rgba(0,0,0,0.0);
    background-image: url('/aad/resources/~1398612272195~/sap/zen/crosstab/themes/sap_platinum/img/exceptions/status_2.gif') !important;
    background-repeat:no-repeat !important;
    background-position:center top !important;
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert3Background
    color:rgba(0,0,0,0.0);
    background-image:url('green.png');
    background-repeat:no-repeat !important;
    background-position:center top !important;
    myAlerting.sapzencrosstab-DataCellDefault.sapzencrosstab-DataCellAlert9StatusSymbol
    color:rgba(0,0,0,0.0);
    background-image: url('aad/resources/~1398612272195~/sap/zen/crosstab/themes/sap_platinum/img/exceptions/status_9.gif') !important;
    background-repeat:no-repeat !important;
    background-position:center top !important;
    I didn't want to hold you up and for sure I hope there is someone in the community who could help.  I'll try again when we can use IE

  • Design Studio Crosstab - Limitation?

    Hello All,
    Below is a summary of issue I'm facing at a customer location.
    Design Studio CrossTab :
    Q1
    Q2
    Q3
    Q4
    north
    100
    120
    130
    142
    south
    123
    176
    132
    123
    east
    130
    187
    154
    134
    west
    132
    133
    189
    134
    I'm currently working at a customer place on a dashboard requirement and found this gap in requirement for crosstab.
    Would really appreciate if anyone can point me towards a workaround to achieve this.
    Consider the above sample cross tab which shows regional sales by quarter.
    It is required to be able to click on any of the numbers and go to a detailed report for those two dimensions : EG : click on 100 and open detailed report for NORTH/Q1.
    We plan to achieve this by using design studio for first page and on click open a webi document thru OPENDOCU and passing respective parameters.
    The problem is , in design studio – it is not possible to click on a measure to capture both the dimensions.
    In the CROSS-TAB component of Design studio,We can either capture region or Quarter but not both at the same time.
    Is there any way I can click on the numbers and capture the associated two dimensions for the key-figure.?

    Vinay, as you that cross tab will let you select either on row header or column header. Meaning, you can select either row value or column value.
    So this can be achieved but you need to have dimensions either in columns or in rows. I tested this scenario and could capture both dimension values.
    Apparently, it is a workaround not a solution
    var div=CROSSTAB_2.getSelectedMember("_dbYX8CwZEeS6mO4guBZEDA").text;
    var type=CROSSTAB_2.getSelectedMember("_dbY_ACwZEeS6mO4guBZEDA").text;
    TEXT_3.setText(div+type);
    You may use these variables in your OPENDOC.
    Hope this helps!
    Regards,
    Tejas

  • How to create a crosstab based on BW Query which has key figure structure

    Hi,
    We are on CR 2008 SP1.
    We have an existing BW query with custom Characteristics structure in the "Columns" section and a custom Key Fugure structure in the "Rows" section in the BW query designer.
    Cell editor has been used to define formulas of the cells.
    We wish to build a crystal report on top of the query.
    On the crystal report on top of the query we get the characteristics structure and individual key figure elements. As already discussed in multiple fourm posts, this is the expected behaviour.
    We are using a cross tab and in the column section, I have put the "Characteristic" structure  in the  "columns" section in the crosstab using the crosstab expert. This leads to horizonatal column headings as per expectation.
    Within the characteristics structure we have multiple fields which description "%" with diffeent formula's defined on the BW query designer. On the Cyrtsl Report, when we get the columns in the crosstab, we get only a single "%" field. All other "%" fields are not visible.
    A. Is there a way to get all fields in in case of same description?
    I tried putting in the Key Figure elements in the "Rows" section, but was not able to get desired output.
    Experts: Can you advice how this report can be built?
    Any help will be appretiated.
    Rgds

    I am interested... How did you solve it?

  • Error while processing conditional formatting formula in crosstab

    This conditional formatting formula must return one of the following Color Constants: ' A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind
    The above error is displayed on the the Business Objects Report Server when running my report.
    The XI server version information is as follows:
    BusinessObjects Enterprise XI Release 2
    Business Objects
    11.5.0.3135
    20060628
    Crystal Reports XI Release 2
    Business Objects
    11.5.0.31327
    20060628
    My IDE is Crystal Reports 2008.
    The error is being generated for the following conditional formatting formula which is in my crosstab:
    evaluateafter ({@concatAppTypeAppMethod});
    if CurrentRowIndex = 1 then
        color(0,153,153)   
    else if CurrentRowIndex = 2 then
        color(168,146,101)
    else if CurrentRowIndex = 3  then
        color(0,51,153)
    else if CurrentRowIndex = 4  then
        color(204,51,51)
    else
        color(153,153,153)
    This formula is applied via the Crosstab "Format Field>Font" tab.  In the report developer (Crystal 2008) the report runs without error.  When deployed to the server it fails with the above error.
    Heres the details of {@concatAppTypeAppMethod}:
    whileprintingrecords;
    "Designs filed " + {Command.APPLICATION_METHOD}
    The crosstab is structured as:
    Row = {@concatAppTypeAppMethod}
    Column = {@getMonth}
    Summary = Count of {@concatAppTypeAppMethod}
    Details for  {@getMonth}:
    right(totext(year({Command.ACN_COMPLETED_DATE}),"#"),2) + totext(month({Command.ACN_COMPLETED_DATE}),"0#")
    The above functions Row i.e. {@concatAppTypeAppMethod} and {@getMonth} use fields from the SQL command. 
    {@getMonth} parses the ACN_COMPLETED_DATE field, obtains the record month and year and concatenates these as a string which can be displayed as follows in the crosstab:
    May-08, Jun-08 etc.
    {@concatAppTypeAppMethod} parses the APPLICATION_METHOD field and obtains the application filing method i.e. Online or Internally and concatenates the pretext "Designs filed " to the filing method (also a string).
    I have tried various combinations of whilereadingrecords, whileprintingrecords and evaluateafter() with no success.  The problem occurs because the conditional formatting formula is being executed before the records being formatted are ready. 
    I believe this is a problem with the crystal reports software and/or XI server. 
    Please prove me wrong.

    Hi Raghavendra,
    Thanks for your prompt answer!  Can you confirm?  Is it because I'm using calculated members in the report and these are not support by the XI server specified in my error report above?
    If so, do you have any suggestions with regard to how I might be able to create a graph with the following attributes:
    Show summary (count) of records per month per application method (i.e. online or internal. this is a database field retruned by the SQL command).  In addition I need to add a series to the graph that shows the totals number of records per month irrespective of the relative application method (i.e. sum of online and internal) and finally I need to show the total number of online applications (i.e. application method = online) as a percentage of the total number of applications for the month.

  • Access 2010 on 64 Bit Windows 7 Access "Not Responding" when changing from forms view to design view and back

    I am running
    Windows 7 64 bit
    Access 2010 32 bit
    Developing an application with a split FE BE with both files local but continue to have the message "Not Responding" when switching from forms view to design view and back as well as if I try to connect to a subform or object on the sub form.

    I have seen this behavior when the form's RecordSource is a complex query such as a crosstab or a query with several nested queries. To test if this is your case, remove the RecordSource and see if the form starts acting normal again.
    Then again, if the form has several subforms they might be slowing up the loading time.
    Bill Mosca
    www.thatlldoit.com
    http://tech.groups.yahoo.com/group/MS_Access_Professionals

  • How to design the report?

    Hi,
    how to change the filling data in report by vertical way?
    for eg: i am creating a group (group by userId) and displaying user name and access rights info;
    User Name   Access Rights
    TestUser      Adminuser
    TempUser    NotanAdminuser
    but i want in this format
    UserName        TestUser   TempUser
    AccessRights Adminuser  NotAnAdminuser
    how to design the report?

    i haven't tried using cross tab.
    but my requirement is like...
    Modified User Name ........ TestUser     Thendral    till 'n' number of users
    Total NO of Patients..........10                    5
              Heart Failure...........5                      1
              Surgical..................1                      2
              Pneumonia             3                      1
              Chest Pain             1                       1
            till 15 rows
    How to achieve this using crosstab?

  • Need help in creating custom crosstab reports

    Hello
    I need some help in creating custom crosstab reports.
    My current report shows the number of events that have occured over the time in a day
    The events and the eventdetails are read from the database before being printed on the crosstab
    i.e something like this.
    Note : there are no events between 3:00-3:59,5:00-5:59;6:00-6:59,7:00-7:59  (not present in the database)
    hence not displayed in the reports
    *08/07/2009*         01:00        02:00         04:00          08:00          10:00*
    Event X                    1               1                 4                 1                  3
    Event Y                   3               3                 2                 2                  1
    Total                        4                4                 6                 3                  4
    So far so good...
    Now i have to enhance my reporting application to include the event details which have not happened i.e to include the time details in the crosstab reports where no events have happened
    08/07/2009             01:00        02:00         03:00          04:00          05:00         6:00         07:00         8:00     9:00     10:00
    Event X                     1               1                0                 4                  0             4             0                1            0           3
    Event Y                     3               3                0                 2                  0             2             0                2            0           1
    Total                         4                4                0                 6                  0             6             0                3            0           4
    I have fell short of ideas this time around to implement such a thing
    Any help in this direction is deeply appreciated
    Regards
    Srivatsa
    Edited by: Srivatsa HG on Jul 8, 2009 10:56 AM

    Hi,
    It seems that you are having issue with Crystal Report Design.
    Post your question in [Crystal Report Design Forum|SAP Crystal Reports;
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all Design queries remain in one place and thus can be easily searched in one place.
    Regards,
    Shweta

  • How to create a drill down in crosstab?

    Hi All,
      I have created a crosstab in CRXI repoprt. Now I'm trying to create a drill down in it. The crosstab is very simple.
    Data in table is as:
    SUBJECT   DATE    YIELD PCT
    Browser   04/11    78.90
    Radio     04/13    90.00
    HTTP      04/22    89.09
    Browser   04/15    90.09
    HTTP      04/15    100.00
    Radio     04/15    100.00
    CROSSTAB Data:
                    Browser   HTTP     Radio
    04/11           78.90      0        0
    04/13            0         0        90.00
    04/15           90.09     100.00    100.00
    04/22            0         89.09     0
    Columns are "SUBJECT" and Rows are "DATE" and I have taken "Max of Yield PCT" as Summation field.
    Now If I click on Yeild_PCT data in crosstab, it should drill down. I have created a drill down as Another report. I have tried FormatObject>Hyperlink>"Another Report Object". Copied the yield_PCT column from source report & pasted in "Another Report Object" but it is not working.
    Really appreciate any help.
    Thanks in Advance.

    if you're trying to use drill-down in cross-tabs with report parts you need syntax that is specific to a cross-tab. please look up Report Parts in your Online Help, Index and then go to the Context Scenarios section.
    Cross-tabs
    If the object you copy in your source report is part of a cross-tab, the Context Report Part data context is based on the selected object embedded in the cross-tab. Crystal Reports creates the data context by tracking if the selected object in the cross-tab is a row, column, or cell. Next, the program retrieves row and column names. Then it parses the Design view data context. Finally, it generates the Context Report Part data context by adding the GridRowColumnValue function if the group in the data context formula appears in the row or column names retrieved earlier. You might see, for example, a data context such as:
    "/"GridRowColumnValue("Customer.Country")"/"+GridRowColumnValue("Customer.Region")

  • Cascading filters not working in Design Studio with Universe

    Hi,
    I am trying to create cascading filters in Design Studio 1.2.
    I have one data source
    DS_P2 which returns two measures:
    (product code)
    (investment code)
    2 drop down boxes:
    PRODUCTCODEDROPDOWN_2 (product code)
    DROPDOWN_1 (investment code)
    1 crosstab component (to display DS_P2)
    Connecting to a BO Universe, Single Connection, relational SQL database
    Script On Startup:
    //To populate the product dropdown list & Set default value
    PRODUCTCODEDROPDOWN_2.setItems(DS_P2.getMemberList("_Rd3rMcNtEeOlu9zFKasaVQ", MemberPresentation.EXTERNAL_KEY, MemberDisplay.TEXT, 50,"All"));
    PRODUCTCODEDROPDOWN_2.setSelectedValue("All");
    //To populate the Investment dropdown list & set default value
    DROPDOWN_1.setItems(DS_P2.getMemberList("_9HY_4cBvEeOMbdZh-4RtVw", MemberPresentation.EXTERNAL_KEY, MemberDisplay.TEXT, 50, "All"));
    DROPDOWN_1.setSelectedValue("All");
    "On Select" script for PRODUCTCODEDROPDOWN
    //Filter data set P2
    DS_P2.setFilterExt("_Rd3rMcNtEeOlu9zFKasaVQ", PRODUCTCODEDROPDOWN_2.getSelectedValue());
    //Re-populate the Investment dropdown list & set default value
    DROPDOWN_1.setItems(DS_P2.getMemberList("_9HY_4cBvEeOMbdZh-4RtVw", MemberPresentation.EXTERNAL_KEY, MemberDisplay.TEXT, 50, "All"));
    DROPDOWN_1.setSelectedValue("All");
    The image below shows that the second dropdown box is not filtering correctly based upon the selection made in the first drop down box, the second box should display list, E_CASHUP, E_GWROTH, E_STABLE, S_GROW_ACT,ZZZZZZ, P_BAL_IDX
    Does any one know if there is a limitation to creating a cascading filter when using universes?
    Am I doing something wrong?
    ARRRGGGHHH any help appreciated

    Penny,
    You can try using SDK to achieve your goal.
    I posted once a ComboBox example, i know it does not do what you want right now, but it could be a starting point.
    ComboBox with custom items
    Mike also has some great examples here.
    entmike/Design-Studio-Repository · GitHub
    Good Luck.
    Best
    Leandro

  • How to set a BEx Query Condition in Design Studio (e.g. Net value GT 0)

    Hi experts,
    I have set a simple condition in my BEx Query...
    e.g. key figure "Net value" GT 0 to become only positive values in the query result.
    In the Query runtime the condition works successful, but in the Design Sudio view the defined Query condition doesn´t work.
    In my Design Studio crosstab I have tried to switch between the display setting "Conditional formating Visible" true/false, but without success.
    By the way, before I have posted this thread, I had a look at this two blogs...
    Design Studio 1.0: Create a Scorecard Using SAP BW BEx Query Exceptions
    Design Studio 1.2  - a Second Look
    Any ideas or experiences?
    Thanks and regards,
    Michael

    Hi Michael,
    I think you are mixing up two different BEx terms. Conditions are filters on key figures (show me only the results with a value bigger than 50). Exceptions do not filter the result set, but provide a formatting based on the values in the result set (if value is bigger than 50, make its cell red).
    The Conditional formatting setting in Design Studio refers to the BEx exceptions. For the BEx conditions there isn't such a setting available. You just have to activate the condition in your BEx Query and use that for your data source in Design Studio.
    If you want a workaround to enable/disable conditions from Design Studio, check this blog I wrote: HackingSAP.com - SAP Design Studio and Conditions It shows how you can use variables to adjust the conditions (and also activate) from within Design Studio.
    Cheers,
    Xavier

  • Changing row colors in crosstab with static structure

    Hello,
    I've a crosstab that consists of several key figures (static structure) in the rows and the fiscal period in the columns:
    _____________|__January | February | March | .....
       Key Figure 1   |    3
    + Key Figure 2   |    4
    = Sub Total        |    7
    + Key Figure  3  |    1
    = Overall Total   |    8
    Now, I'd like to assign different (background) colors to the key figures resp. totals in the rows in order to make them better readable. Is this possible?
    I've already had a look at the custom style-sheet method described in http://scn.sap.com/community/businessobjects-design-studio/blog/2013/07/21/design-studio but that's not the same what I'd like to do...
    Does someone have an idea on how to realize this?
    Thanks and best regards,
    Patrick

    I have a question related to your last post.
    I have a crosstab layout. I have setup custom CSS for my learning purposes. I am currently using 1.4 in a local install on my PC.
    Here is the CSS I am using for the layout.
    .sapzencrosstab-DataCellAlternating {
    background-color: #CCFFCC !important;
    .sapzencrosstab-DataCellDefault {
    background-color: #EAF2D3;
    /* This defines how tall the rows will be in the cross tab layout*/
    .sapzencrosstab-DataCellContentDiv {
    height: 40px;
    /* This formats the Task Count with a gradient yellow*/
    .sapzencrosstab-DataCellTotal {
    font-weight: bold;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#E6E600',GradientType=0); background-color: rgb(229, 234, 243); !important;
    With the above CSS, I can get the Overall Result count to show up in yellow.
    My goal is to get the cell that contains the Overall Result text to show up formatted the same way the count is formatted. (Gradient Yellow)
    I looked at, and tried your solution, but it did not work for me. Is there a better way to do this?
    Thanks,
    Lloyd

  • Horizontal/Vertical Scroll in Design Studio 1.1

    Hi,
    We are using Design Studio 1.1 SP1,
    I am using cross tab in the design studio to create a desktop application, I selected more number of columns in the cross tab, But in the cross tab i dont see horizontol/Vertical scroll bar in the layout.Please see the below attachments.
    The data source is connected to a BW query with characteristics in the rows and key figures in the columns. 

    Hi Srinivas,
    This is as per design.
    Horizontal and Vertical scroll bars are enabled only in reference to the measure/Keyfigure entries.
    In your query definition I could see a lot of Dimension/Characteristic values and there are only 2 measure values.
    The expected behavior here is a scroll bar should appear when the data set or result set is not fitting in the assigned crosstab space. And moreover Scroll bar will only appear if the atleast one of the measure values is made visible in the crosstab.
    To put it short, in your example horizontal scrollbar will appear when you choose (not more thn) 4 dimensions as only 5 columns are visible. This will enable one of the measure values to be displayed and hence the horizontal scrollbar.
    Reason for such a design:
    Crosstab display could be misleading if the entire dimension selection is not made visible and hence no scrolling is possible for dimensions.
    E.g If the sales is sliced based on Region, Country and City. And in the initial display if only City and sales information is visible, then this will not communicate the  entire information intended.
    Note:
    If you are not happy with this behavior or design, please raise a ticket explaining your scenario demanding the usage of more characteristics. We shall process this and respond to your request.
    Regards,
    Bharath

Maybe you are looking for

  • Transferring video to my Mac

    I was wondering if it was possible to transfer recorded video off of my TV (I have PVR) and onto my Mac. First, is this even legal? And second what products will I need?

  • Securing Aironet 350 Access Point

    Hello - My small network is operating correctly using the Aironet 350 Access Point and multiple clients. However, the setup is not secure. How is it possible to secure access to our AP? Specifically: I would like to establish a WEP key, as some devic

  • How can i show 2 videos at once imovie09?

    How can i show 2 videos at once using imovie 09?

  • Inspection Lot Generation

    Hi Gurus, I want to generate inspection lot numbers plant wise while doing goods receipt.  Is there any user exit available to do this or can we do this in standard transaction?

  • If we change cube specific properties does we need to delete data in Prod

    Hi All, We have changed cube specific properties like display of InfoObject  in dev. to transport to prod does we need to delete data from cube or not required . Please help. I am assuming that data deletion not needed as we haven't changed the struc