Cross tab data is getting multiplied if i use multiple queris in asingle report

HI,
  i am using multiple queris for displaying data and graphs(charts).
  my requirement is to display 2 charts and data in crosstab in a single report.
  all the three thing (2charts and crosstab) will use diffrent values.
I am writing 3 sql queries for getting appropriate values for charts and crosstab.
  Now the problem, both charts and crosstab are taking the values of all 3 queris
i.e if i added crosstab  first to the report values are coming correctly. After  that if i add graph cross tab values are getting changed and graph values are not getting properly.
if i add graph first then its coming correctly.
if i tried to add all 3 components then values are going cores...... ?

When you say you are writing 3 sql queries what do you mean? Are you creating 3 SQL command objects in the database expert? If so this is your problem, Crystal will pull a cartesian product through (this is every possible combinatin of rows from the 3 queries).
If your 2 graphs and 1 crosstab are based on different datasets the way to approach this is to create each on a seperate report, then create a new blank report and add each of your 3 reports as subreports in the report footer.
Hope this helps,
Toby

Similar Messages

  • Single and Double Underlines When Showing Cross Tab Data

    Hi,
    I am trying to generate an XML Publisher rtf report in which I need to show the cross tab data which is in number format underlined and totals as double underlined. Is there a way to do that;
    I am using XML Publisher 5.6.2 version , Build 45 and I am trying to manage this on Windows XP, Excel 2003 environments.
    Thanks and regards.

    Can you generate a crosstab that looks like you want to show in the Template Builder for Word?
    It should generate a separate line - but 5.6.2 is so long ago, I don't remember what the pivot table
    wizard did at this time.
    Unfortunatley, we do support for text only single underlines - border can have double lines.
    Klaus

  • 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

  • Get specific stage when using multiple compositions

    Hi,
    in EdgeSuite (http://edgedocks.com/edge-suite) we are using one compositions multiple times alongside on a page. They are being configured during runtime via daja injection. The problem is getting the specific stage object. sym.getComposition().getStage() always gets you the stage of the first composition on the page. sym.$(compId) doesn't work either. So far we are solving this by climbing up with sym = sym.getParent() in a while loop until there is no parent anymore, which results in the desired stage div. Is there a more direct way to do this?
    People start writing custom code and are using a reference to the stage div more often. Problem is that for drupal and wordpress integration I need to change the stage id, but then the users code doesn't work anymore. An easy API function to get the stage in a multi comp setup would be really great.
    Thanks.

    I am having this issue like when timeline completes it gets back to its initial stage which is very frustrating. i dont have an idea how to stop this loop

  • Where and how do I get the SQL Query used by the Microsoft Generic Report Library - Alerts?

    Background:
    I'm tasked with the following: I need to create a new Report and the SQL
    The two canned reports that I can pattern after are: Microsoft Generic Report Library
    - Alerts (there is also an alert detail report that can be chosen within the alert report that we may want to use instead)
    - Most Common Alerts
    I'm trying to do this:
    Add another parameter to search on customfield3.
    It should be able to report on all alerts that were assigned to the specific team for the time period along with the top 10 (most common alerts) assigned to the team for the time period.
    Choose as the objects (group) all servers, but Imay need to adjust the report to just look at all alerts without having to provide objects or a group
    The struggle I'm having is: I know SQL. I know how to create an RDL file.
    But Where are the RDL files for the canned reports so I can modify the canned RDL and modify its SQL and forms?
    What is the SQL/ where can I find the SQL used for the Generic Report Library -> Alerts

    Easy but you need to extract it from Microsoft Generic Report Pack. 
    So.. the procedure is as follows:
    1) You export and unseal Management Pack from your SCOM using
    Boris's OpsgMgr tools (MPViewer
    2.3.3)
    2) Ok you've got unsealed xml, now the tricky part, use
    MpElementsExtract tool, example of usage:
    MPElementsExtract.exe <MP.xml> /ex /destination:<destination>
    That you way you get several folders out of mp:
    DWScripts, DWSubScripts, LinkedReports, ReportResources, Reports
    Take a look into content of first 2, there will be pure sql scripts, and rdl's are in Reports folder :)
    Other way is to just use SQL profiler and catch SQL query while generating report. 
    --- Jeff (Netwrix)

  • Is there a way to get the result of using multiple blending modes in one object?

    Hello,
    I wonder if there's a way to merge multiple objects with blending modes to one object. Here is the example:
    On the left rhere are three objects with the same appearence but different blending modes(color dodge, normal, overlay), on the right they are overlapped, which are still three object. I'm looking for the way to have the same result as the right overlapped one, but as one object. Having the same multiple objects only for the result of color blending mode uses too much memory for my computer.
    Thank you for your help in advance.

    create one object: then in your appearance panel, duplicate the fill twice. Select the top fill and expand the sub menu, click on opacity, choose blending mode. repeat.
    G

  • Count Function Specific with Cross Tab Name for Multiple Cross Tabs

    Hello Friends I have cross Tab1 and Cross Tab2 based on 2 query data providers. I need to feed calculate the Count of Items in Cross Tab1 and DISPLAY In cross Tab2
    Dimension name is ITEM ID
    So if there are 21 items in Cross TAB1 then in Cross TAB 2
    I want to display "Number of Item" = 21
    so do this i Created a count variable
    =Count([Item ID]) In Report
    which give me 21 in cross tab1 but when I drag that to cross tab2 it give me count of Item in Cross Tab2 = 87 which is wrong since i want 21
    so How do I fix this Count in Cross Tab 2
    Please help with code to say Count([Item ID]) In Report from cross tab1
    thanks
    Soniya

    Hi,
    Have you tried for the solution given in the previous thread by converting it to the dimension or detail?
    What result did you get?
    If you use "Report" operator/keyword then the formula will give you result for whole report. So if you have sections in the report then you can replace it with Section keyword.
    Also measure are dynamic and gives result according to the dimesion you associate with them. so you have to convert it to STRING dimension or detail. before using it in the next block.
    Regards,
    Rohit

  • Cross Tab issue , Need a Help

    HI Expery
    In BO Webi report  need to show dynamic columns in Report after transposing rows to columns.
    Data in Table is  like below:
    Col1     Col2     Col3
    101     Abc     801
    101     Abc     802
    101     Abc     803
    101     Abc     804
    101     Abc     805
    102     RNM     2009
    102     RNM     2010
    102     RNM     2011
    103     RYZ     3465
    In Report It should be as
    Col1     Col2     Col3     Col3     Col3     Col3     Col3
    101     Abc     801     802     803     804     805
    102     RNM     2009     2010     2011           
    103     RYZ     3465                       
    We have tried implementing the same using cross tab , but issue is in Cross  col3  grows with all values present for all records. Here, if we use cross tab  we are getting result as below:
    Col1     Col2     Col3     Col3     Col3     Col3     Col3     Col3     Col3     Col3     Col3
    101     Abc     801     802     803     804     805     2009     2010     2011     3465
    102     RNM     801     802     803     804     805     2009     2010     2011     3465
    103     RYZ     801     802     803     804     805     2009     2010     2011     3465

    Hi Ahmed
    You can use the below logic.
    col1 & col2 u can keep it as columns in a cross tab. Now keep col3 as row but here you need to do one thing . Click on the formula button for col3 field and then write the following syntax in it.
    = col3 IN ([Col1];[col2])
    By using this calculation context it will fetch only the data which is related to the first two columns. so the extra data which u were mentioning about will got to the next row.
    Regards
    Shyam
    Edited by: Shyam Rapeti on Jan 25, 2012 3:20 PM

  • Suppress Columns shift Cells Lefts in Cross Tabs

    Hello All
    I need some help getting a cross tab report to suppress data correctly.
    I have the following reporting requirement
    Based upon Fiscal Year Period Selection report should start from the input period back 24 months.
    Example
    For the following example I use selection criteria of FY 2008 and period 11
    Report should look as follows
                                          2008
                                          11        10         9          8         7 ....                           
    Account Receivable     100      200       300      4000   5000 ....
    Where the starting column is the input period 11
    The table structure is
    Account Number,  FY, Key Figure Period 1, Key Figure Period 2, Key Figure Period 3 .... Key Figure Period 12
    Parameters
    Fiscal Year
    Period
    Cross Tab Format is
                                     FY
    Account Number      Key Figure Period 12, Key Figure Period 11, Key Figure Period 10, ... Key Figure Period 1
    When conditionally suppressing the field I am using a suppression formual
    Key Figure Period 12 = {?FY}="2009" and {?Period}<"12"
    Key Figure Period 11 = {?FY}="2009" and {?Period}<"11"
    Key Figure Period 10 = {?FY}="2009" and {?Period}<"10"
    etc.
    The problems is that when I suppress I just get a blank field
                                          2008
                                          12      11       10         9          8         7 ....                           
    Account Receivable              100      200       300      4000   5000 ....
    What I want is a complete suppression of the column and commence the report from Period 11 as follows.
                                          2008
                                          11       10         9          8         7 ....                           
    Account Receivable      100      200       300      4000   5000 ....
    Can anyone provide tips on how to achieve this?
    Thanks
    Phillip

    Thanks for your help. Sorry for my wording causing confusion I am new at Crystal Reports. I think I may have caused some confusion for I am actually wanting to stop the summarized data from showing, and shifting the  summarized data to the left based upon a selection criteria.
    Some more details
    The Cross Tab has a Column heading of Fiscal Year.
    The summarized values report the contents of fileds GLTO_HSL12 etc and are shown horizontaly with the label showing.
    I can suppress the summarized fields so that they wont show. What I am trying to do is get the summarized fields to move to the left if based upon a selection criteria the logic I am applying is as follows
    If Fiscal Year is 2009 and period is 10 then show summarized data from field GLT0_HSL10 to GLT0_HSL1 with GLT0_HSL10 being the first summarized field reported.
    Currently based upon the Fiscal Year is 2009 and period is 10 example I can only blank out the summarized data for GLT0_HSL12 GLT0_HSL11 the actual format of the cross tab remains static.
    Cross Tab Layout
    ______________________________FY2009
    Summarized Data Heading_______| Period 12_____| Period 11 _____| Period 10 | ....Period 1
    Row 1_______________________| GLT0_HSL12__|GLT0_HSL11__|GLT0_HSL10__|...
    using suprresion formula in summarized fields I can achieve the following
    ______________________________FY2009
    Summarized Data Heading_______| Period 12_____| Period 11 _____| Period 10 | ....Period 1
    Row 1_______________________| ____________|________________|GLT0_HSL10__|...
    What I want though is
    ______________________________FY2009
    Summarized Data Heading_______| Period 10_____ | Period 9
    Row 1_______________________|GLT0_HSL10__|GLT0_HSL09__|...
    I hope this explains my problem alittle better.
    Phillip

  • Suppressing levels in cross tab.

    Hello All,
    I have a project requirenment for one of the client and currently using CR 2008 for creating dynamic reports based on a finance database for profitabilty Analysis. I have been using lot of Web-Elements functionality in my crystal application and its going good to an extent, the only issue i have been experiencing is the dynamic change of the cross tab data based on prompts.
    Its a 4 level application where in users are prompted to select a specific level outta the 4 levels, they can select either few or all. Now, the issue is, in my cross tab i have mentioned all the 4 levels in my row field and the data is displayed according to the users selection through prompts, it works fine. But however if user does not select level 3 or 4 or any one of them then the specific cross tab row is displayed empty. I have tried selecting the option suppress empty rows under customize tab but that doesnt seem to work.
    I want only those levels to be displayed which are selected by users and suppress the rest, the empty rows in cross tab looks kinda odd to see. I am unable to figure out the formula string for the same.
    Any help will be appreciated. Thank you

    Hi
    Cross tab is nothing but a tabular representation of data.
    It displays zero values only when there is no data for the combination of corresponding row and column.
    We can not suppress this however we can display some string like "No data for this" or something else as per requirement.
    For this, do the below:
    - Right click on the summary value field on the cross tab -> Format Field.
    - Under Common Tab, click on X-2 for Display string. This would open the formula editor.
    - Put the below formula there:
    if IsNull(summary database field) then "No data for here"
         else "" & currentfieldvalue;
    You can change the display string as per requirement.
    Hope this helps!!
    Regards
    Sourashree

  • Filtering Key Figures/Columns in a Cross Tab Component

    Hello All,
    I am creating a P&L Statement for Better/Worse comparisions, and I have to show only three columns at a time based on User Drop Down Selections.
    Here is my Bex Query Out put looks like.  The Rows part is "Structure" and Columns are "Cell Restrictions".
    Now, the CrossTab component has to show only Two columns at a time, based on user selections. Here is my desired output. User will Select either ' Avg' Rate or 'End Rate'. Based on that selction, Actual's will show in the First Column and based on Selection from Second DROPDOWN for Budget/Forecast/PY, the Second Column has to be displayed.
    Is there any DropDown Component or CrossTab Component Options are there to Filter the Columns based on User Selections ?
    Appreciate your help. This is the Crucial Chart for the whole Dashboard.
    Thanks,
    Sonti.

    Hi Tammy,
    Thanks for your quick reply.
    Can it be done dynamically without the User touching it ? My Cross Tab has to show values based on the Selctions. But, I couldn't find the code to restrict Cross Tab data.
    I have to code for Dropdown box --> On Select, to check / Un check the KF's in the Filter Panel Component. And in Filter Panel Comoponent, --> On Select, DATASOURCE.setFilterExt("KF1", "KF2").
    And assign the data source to Cross Tab.
    Please correct me if I am wrong.
    Regards,
    Sonti.

  • Displaying Alternate row as colored in Cross tab

    Hi,
    I have a report where I need to display alternate rows as colored.
    There is some data in detail section followed by a cross tab in the report header section.
    While I am able to display alternate rows as colored in Detail secction for displaying alternate colored rows in Cross tab data I need some help.
    Data in cross tab is like this
                  history geography
    Tammy   90          60
    Sid         80          50
    Julia       70        40
    In cross tab for displaying alternate colored rows ie for alternate student names  I am using two formulas
    - for displaying row values I am using this one
    whileprintingrecords;
    numbervar d;
    d := iif(d=100,255,100);
    color(255,255,d);
    For displaying alternate colored inner cells ie marks  I am using this formula
    whileprintingrecords;
    numbervar c;
    c := iif(c =255,100,255);
    color(255,255,c)
    I got these formulas after doing Googling
    My cross tab is present in report footer and in the generated report it comes separeated in two pages.
    In the first page data for Tammy and Sid is displayed while Julia is displayed on next page.
    Now the Tammy is coming as yellow colored and as expected Sid is coming as white colored. However Julia which is on next page is coming as white , but logically it should have come as yellow. On the other hand my column data ie marks column is coming fine. Data for tammy and sid is coming as alternately colored and data is Julia on the next page is coming as yellow(as data for Sid is in white)
    I am not able to understand why this is happening and what is the correct way to do alternate row coloring in cross tabs
    Edited by: thunderball10 on Aug 26, 2010 11:57 AM
    Edited by: thunderball10 on Aug 26, 2010 12:00 PM

    Where is your variable c being reset.
    If in page header or group header and you have repaet group header on new page then c will be reset on each page.
    If In groupheader try adding this to reset formula
    if not inrepeatedgroupheader then
    Ian

  • More than one summary column in cross tab reports

    Hi,
    I have a cross tab report.  The summary column is SUM. I want to add another summary column next to SUM which will be AVG(Average) column.
    Any ideas?
    Please see the attached image.
    Thanks,

    hi Anurag,
    my fault...i should have looked closer at your data.
    here's the easy way of showing two sets of summaries at the end of a crosstab, without having duplicate columns.
    1) copy your existing cross-tab and paste it to the right of your current cross-tab.
    2) now go to the cross-tab expert of the new cross-tab and remove the fields from the Column dialogue
    3) change the summary to an Average
    4) exit the cross-tab expert and go to the Section Expert for the section where both cross-tabs are...ensure that you check Relative Positions
    preview the report. now you'll have to move the 2nd cross-tab a bit so that it aligns properly with the first one.
    as a sample, see the attached report. extract the contents and change the .txt extension to .rpt.
    -jamie

  • CROSS TAB

    HI ABAP GURUS,
    I am fresher ,help me how to link the quick viewer in the cross tab format.

    If you are using 8i check out the ROLLUP and CUBE options of the GROUP by clause.
    They can produce the cross-tab data that you need. You can find the documentation from the list to the left of this post.
    Good luck!
    null

  • Can we apply sorting on Column values in Cross tab??

    Can we apply sorting on Column values in Cross tab??
    Following is the scenario with me.
    I have 2 fields and one formula.
    Fields are HostName and Username.
    Formula is status which categorizes the Authorized and Unauthorized events.
    And in the Summary Field, I am calculating the total number of events.
    In cross tab, Fields are marking the Rows of the cross tab and Formula is making the Columns(Authorized and Unauthorized ) of the cross tab.
    Since in cross tab data is grouped from left to right and sorted by default. I want to remove this default sorting and want to put sorting on the formula for Unauthorized events.
    Is there any way to fulfill this requirement?

    Hi,
    You can assign a number to each Unauthorised field e.g
    Rank   Unauthorised
    1         A
    2         BC
    3         DF
    5         TD
    6         GF
    Then add "Rank" to the crostab Columns before the Unauthorised  field. Then you can control the sorting order on your crosstab.
    Hope this helps
    Regards
    Dotun

Maybe you are looking for