Compare two datasets in crosstab by showing percentage of sales

I am wanting to compare two datasets in a crosstab chart.
Basically I have a sales table and a business costs table. 
My business costs table fields look like this:
Category
CostDate
CategoryCost
My sales tabel looks like this:
PartNumber
SalesDate
SalesAmount
In my crosstab I want to group my rows by Category and my columns by Month.
So that in my summaries I can show sum of category cost and the percent of sales for that particular month.  I can do everything except show percent of sales for that specific month. My sales table has a SalesDate that I will be using to group off of.
Any ideas on how to do this, I am not sure where to even start. I am still new with crystal reports.
my sales data
PartNumber     SalesDate     SalesAmount
Part1     1/1/2011      $1.00
Part2     1/1/2011      $1.00
Part3     1/1/2011      $1.00
Part4     1/1/2011      $1.00
Part5     1/1/2011      $1.00
Part6     1/1/2011      $1.00
Part7     2/1/2011      $1.00
Part8     2/1/2011      $1.00
Part9     2/1/2011      $1.00
Part10     2/1/2011      $1.00
Part11     2/1/2011      $1.00
Part12     2/1/2011      $1.00
Part13     2/1/2011      $1.00
My business cost data
Category     CostDate     CategoryCost
Office     1/1/2011      $1.00
Office     2/1/2011      $1.00
Warehouse     1/1/2011      $1.00
Warehouse     1/15/2011      $1.00
Warehouse     2/1/2011      $1.00
Quality     1/1/2011      $1.00
Quality     2/1/2011      $1.00
Quality     2/15/2011      $1.00
What I want my crosstab to look like
                  Total       |                     1/2011  |                   2/2011     
     Business cost  |  % of Sales  |  Business cost  |  % of Sales |  Business cost  |  % of Sales
Total  |  $8.00  |  62%  |  $4.00  |  67%  |  $4.00  |  57%
Office  |        $2.00  |  15%  |  $1.00  |  17%  |  $1.00  |  14%
Quality  |        $3.00  |  23%  |  $1.00  |  17%  |  $2.00  |  29%
Warehouse  |  $3.00  |  23%  |  $2.00  |  33%  |  $1.00  |  14%

Hi Joshua,
assuming that you have linked your two tables and built a crosstab report:
In the summary data field you summarize 2 fields
1. your SUm of Business Cost
2. your Sum of sales.  -> Edit that summary to show % of the Table field you want to summarize and select by column

Similar Messages

  • Joining two datasets in Crosstabs

    Hi....I have a requirement in crosstabs...
    I have 3 data sets…. Ds1, ds2, ds3
    Month column comes from all the 3 data sets.
    I have a Category Column which comes from all three datasets…. (category = Mother board,mouse,key board )
    Max sales, Avg sales, Total sales are the columns which comes from ds1, ds2, ds3 respectively..
    Is it possible to achieve this following out put by cross tabs?
    How to join two/three data sets in crosstabs??
    Image below:
    http://i51.tinypic.com/2u9k421.jpg

    The Lookup expressions are used for this. They all use a similar syntax:
    =command(LocalKey, ForeignKey, ForeignValue, "OtherDatasetName")
    This is similar to JOINing tables ON LocalKey=ForiegnKey in Transact-SQL. The expression builder tool will give you some limited help with the 3 Lookup expressions . Visakh's link has more extensive help.
    The Join expression mentioned by Brad is often used in conjunction with the LookupSet and MultiLookup expressions, which return an array of values (ForeignValue) rather than a single value like Lookup. Join will concatenate the elements of an array into
    a string.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Compare two .txt files and show result

    HI
    Could anybody show me how to compare two text files and show the result.
    i.e.
    textfile1.txt
    harry.denmark
    karry.sweden
    textfile2.txt
    harry.denmark
    karry.sweden
    marry.usa
    Compare
    result=
    marry.usa
    The text files I want to compare are how ever much larger than this example. (up to 2-3.000 words)
    anybody ??
    Sincerly
    Peder

    HI & thanks for reply
    I know almost nothing about java so could you or anybody please show me the code to do this? Or is it perhaps too large or difficult a code?
    I know how to compile a .java file and run it in prompt :-) and thats about it (almost)
    I offcourse understand if its too much to ask for :-)

  • I want to show sum of two measures in Crosstab, is it possible?

    Hello,
    I want to show sum of two measures in Crosstab. There are only two measures in BW query, and I want to show sum of them by new column in Crosstab component.
    For example:
    Measure 1
    Measure 2
    Sum (New Column)
    100
    200
    300
    50
    30
    80
    30
    90
    80
    Is it possible ?
    Thanks.

    Hi,
    Design Studio is not capable to calculate that. If you like you can do it in BEx Query Designer as mentioned above.
    Alternatively you can open your Query in Analysis Office and do the calculation there. Then you can smart copy and paste the navigation state into Design Studio.
    Dirk

  • Crosstab Profit Margin Percentages

    In Crystal 9 or Crystal Xi I need a crosstab as shown below.
    Each cell containts Sales, Profit, and Profit as a Percent of Sales
    _____________Month____
    _________1____2_____3
    Huey ___120__150__200
    ________10___ 20___15
    ________8%__13%__8%
    Dewey__300__250__350
    ________-30___40___25
    _______-10%__16%__7%
    Please note that the Profit percentages are calculated for each month.
    I am not looking for each month's profit as a percentage of the total profit.
    The main report contains all the necessary groupings and calculations.
    How can I get the crosstab to show the Profit percentages?
    Thanks,
    Art
    Edited by: Art Schwalge on Nov 30, 2009 4:29 PM

    I Art
    I have two fields last year costs and last year sales.
    I created a formula field in which I wrote the below formula
    product.last year sales - product.last year cost
    I opened the cross tab expert and I put this formula field in summarized fields. I clicked on change summary and checked that by default "calculate this summary" is a sum.
    I checked the options for "Show as percentage of".Click on Ok.
    Please let me know if you could get the desired output after trying a similar way like above.
    Regards
    Sourashree

  • How can we show percentages in BO Dash board Manager(PMDM)

    Hi ,
    Please help me to find the  option in Dash Board Manager to show percentages of metrics.
    Regards,
    Teja

    Hello josborne,
    i feel for you as a year ago i was undergoing the same problem. I was using Basler cameras for bar code reading and i was using two of them at a time. i was getting the same error. In my case the issue was resolved after much pain. i changed the PCI cards, switched between a lot of softwares and hardwares to get the required results. In the end my issue came down to the Fire wire cable. I was using a very cheap cable. Perhaps this is the only thing i can add that you might be using some non+standard fire wire cable.
    perhaps you can try replacing it and then see the results. 
    Regards
    Asad Tirmizi
    Design Engineer
    Institute of Avionics and Aeronautics
    " Its never too late to be, what u want to be"
    Using LabVIEW 8.2

  • How to change the color of letters instead of highlight the text when compare two documents

    Hello!!
    I have the Adobe Acrobat 9 Pro (Versión 9.0.0) and I need to compare two documents, but I want to show the diferences changing  the color of letters instead of highlight the text with any color. My boss tell me that other Acrobat version have this option, but I couldn't find it in this version.
    Could you help me on this topic??
    Thanks

    Hello!!
    I have the Adobe Acrobat 9 Pro (Versión 9.0.0) and I need to compare two documents, but I want to show the diferences changing  the color of letters instead of highlight the text with any color. My boss tell me that other Acrobat version have this option, but I couldn't find it in this version.
    Could you help me on this topic??
    Thanks

  • Using geocode in a map based on a view where two datasets are joined

    Hi,
    I'd like to create a map based on a view in which two datasets are joined, where one of the datasets has a geocode column.
    Unfortunately this is not working... It seems that a custom view where two datasets are joined together where one of them has a geocode column makes the geocode column invisible for the map component.
    The following cases do work but we like to combine them so that we can combine different datasets in Studio without using the Integrator:
    - I can create a custom view in which we join two datasets > the view can be used as a source for different component but not the map component (it seems that the geocode column is not found)
    - I can create a custom view with a geocode column in it and that one can be used as a source for a map
    What I'd like to show is that it is possbile to have one datasets coming from a source system and that it is easy to combine an additional excel sheet with geo-information and maybe another excel sheet with different measures. This should be possible since you can join different datasets together in a custom view.
    Thanks in advance,
    Richard

    Oh sorry, we have two base views and one custom view:
    base view TRIS_Omzet which gets it data from an OBI server and has data like revenue, customer, time, etc.
    base view Endeca_Klanten which gets it data from an excel sheet, this view contains the name of the customer and the geocode of the customer's location
    We created one custom view (Omzet_Geo) where the two base queries are joined together using the following query:
    DEFINE V1 AS SELECT
    "Endeca_Klanten.Klanten" AS Klant,
    "Endeca_Klanten.Coordinaten" AS Coordinaten
    from Endeca_Klanten;
    DEFINE V2 AS SELECT
    "TRIS_Omzet.Naam_Consultant" AS Naam_consultant,
    "TRIS_Omzet.Jaar" AS Jaar,
    "TRIS_Omzet.Jaar_week" AS Jaar_week,
    "TRIS_Omzet.Actual" AS Actual,
    "TRIS_Omzet.Omzet" AS Omzet,
    "TRIS_Omzet.Partij" AS Partij,
    "TRIS_Omzet.Uren" AS Uren
    FROM TRIS_Omzet
    DEFINE Omzet_Geo AS SELECT
    V1.Klant AS Klant,
    V1.Coordinaten AS Coordinaten,
    V2.Naam_consultant AS Naam_consultant,
    V2.Jaar AS Jaar,
    V2.Jaar_week AS Jaar_week,
    sum(V2.Actual) AS Actual,
    sum(V2.Omzet) AS Omzet,
    V2.Partij AS Partij,
    sum(V2.Uren) AS Uren
    from V1
    right join V2
    on (V1.Klant=V2.Partij)
    group by Klant, Coordinaten, Naam_consultant,Jaar,Jaar_week,Partij
    Our view definition in the GUI looks like the following, as shown in the screenshots the datatype of the coordinated column is a Geo column both in the base view and the custom view. However the view still can't be selected to be used as a source for the map component.
    The two base views:
    The custom view:
    regards,
    Richard

  • Chart showing percentage of groups of cells

    Hello everybody,
    I am a teacher and I am new to Numbers.
    It is the end of the term and I have prepared a table with the students' names and marks they got during the term.
    That table also shows the average sum of their results.
    I managed to create a chart to visualise these results and here is what I managed to get...
    Here are my two questions:
    1.How can I visualize in the form of a chart the percentage of those who got a pass mark (above 6) and those who didn't pass (below 6), that is the values in the last but one yellow column. A pie-chart, for example, into two halves, just telling me the percentage of those beyond and below 6...
    2. Is there a way in which I can tell the blue chart I created to cloud the blue lines in a different colour when the are beyond 6? Or could I turn the thin grey line in the x-axis, the one showing 6, into another colour, so that I can immediately see who is beyond the pass mark (6)?
    I hope I have made myself understood...
    Thanks for any help you can give me
    Luca

    Luca,
    I think this is what you want:
    The expressions are as follows:
    Scores Table
    Medi Column: =AVERAGE(B2:G2)
    Passing Column: =IF(H≥6, H, "")
    Failing Column:  =IF(H≤6, H, "")
    Pie Chart Data Table:
    Pass Column: =COUNTIF(Scores::H, ">=6")
    Fail Column: =COUNTIF(Scores::H, "<6")
    The Bar Chart is a 2D Stacked Bar Chart
    Hope this is what you were looking for. Glad to explain further if necessary.
    Jerry

  • How to compare two files in java & uncommon text should print in text file.

    Hi,
    Can any one help me to write Core java program for this.
    How to compare two files in java & uncommon text should print in other text file.
    thanks
    Sam

    Hi All,
    i m comparing two HTML file.. thats why i am getting problem..
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class textmatch{
    public static void main(String[] argv)
    throws Exception{
    BufferedReader fh =new BufferedReader(new FileReader("internal.html"),1024);
    BufferedReader sh = new BufferedReader(new FileReader("external.html"),1024);
    String s;
    String y;
    while ((s=fh.readLine())!=null)
    if ( s.equals(y=sh.readLine()) ){    
    System.out.println(s + " " + y); //REMOVE THIS PRINTLN STATEMENT IF YOU JUST WANT TO SHOW THE SIMILARITIES
    sh.close();
    fh.close(); }
    thanks
    Sam

  • How to compare two files in Java & uncommon text should print in Diff text

    Hi All,
    can any one help me to write a java program..
    How to compare two files in Java & uncommon text should print in Diff text file..
    Thanks
    Sam

    Hi All,
    i m comparing two HTML file.. thats why i am getting problem..
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class textmatch{
    public static void main(String[] argv)
    throws Exception{
    BufferedReader fh =new BufferedReader(new FileReader("internal.html"),1024);
    BufferedReader sh = new BufferedReader(new FileReader("external.html"),1024);
    String s;
    String y;
    while ((s=fh.readLine())!=null)
    if ( s.equals(y=sh.readLine()) ){    
    System.out.println(s + " " + y); //REMOVE THIS PRINTLN STATEMENT IF YOU JUST WANT TO SHOW THE SIMILARITIES
    sh.close();
    fh.close(); }
    thanks
    Sam

  • Failed to compare two elements in the array

    very often, I have the error "Failed to compare two elements in the array" in Exchange 2013 ECP. We are not running DAG. I google a bit but don't get a lot of result on this.
    I was trying to track mail from a user who send to DL group. Since I can't do in in ECP , how can I do it in EMS?

    I too have this issue.  I'm not sure how wide spread.  I know of one user who sends emails regularly to a DL named "All Users" which is a Security Group which we then add real users to and not just every mailbox.  When he sends the emails,
    from his perspective, everything is fine, meaning he gets to NDR or anything.  Also, when he adds the Dl in Outlook To field and expands it, all the correct users are there.  In fact, it tells him there are 203 addresses here.  However, only
    184 are actually getting the message.  When I try the EAC to view the tracking report, it will show the message, but if I click on the edit button, I get "Failed to compare two elements in the array".  If I try from EMC with search-messagetrackingreport
    -identity "recipient address" -sender "sender address" -bypassdelegatechecking and the recipient address is the group, it says it could not be found.  If I try with simply putting an email address of someone who is a member of that group, it says Warning:
    An unexpected error has occured and a Watson dump is being generated.  Failed to compare two elements in the array.  I don't know what else to try.  Anybody??

  • Compare two schemas in oracle 11g

    Hi All,
    Can any one please help me how to compare two schemas in oracle 11g.
    Thanks
    Edited by: 793914 on Oct 22, 2010 9:33 AM

    You can do it with gridcontrol. Look for dictionary comparisons and dictionary baselines.
    If you don't have gridcontrol, you can also use SQLDeveloper (free download on otn).
    There are two ways to do it with SQLDeveloper.
    1) Use Tools->Database Diff. However, you need a change management license to use this functionality. I've never used this.
    The free way is to...
    2) Use Tools->Database Export. Run it once for each schema and make sure the "Show Schema" option is NOT checked before exporting the schema. Also make sure you don't export data. You can choose which types of objects to export as well.
    Once you have the two export files for the two schemas then simply run a diff tool on your platform. Use the diff command line for linux or winDiff or something similar in windows.

  • It does not work to compare two PFD:s in Acrobate X

    When comparing two PDF versions of the same text, that have been revised, the comparison report states "there are no differences", even though there are. When running the scan the following message appear:
    Have tried the same procedure on my colleages computer and the same thing happens. What is wrong?
    Thank you in advance for any help you can give!
    // Maria

    and was not able to find any sign of an admin installing it in the WindowsUpdate.log.
    Then the Windows Update Agent DID NOT install this update, and it's not really a WSUS issue.
    My typical response to such a claim would be to ask you to show me in the WindowsUpdate.log where the update was installed... but it seems that request has already been answered.
    The more relevant question it seems, is HOW DID these updates allegedly get installed?
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Compare two tables and log the difference

    Hi,
    I want to compare two tables and log the difference in new table with the fields as (old value,new value, column name). The column name should be the changes value column

    Can you show an example?
    SELECT Foo.*, Bar.*
       FROM Foo
            FULL OUTER JOIN
            Bar
            ON Foo.c1 = Bar.c1
               AND Foo.c2 = Bar.c2
               AND Foo.cn = Bar.cn
     WHERE Foo.key IS NULL 
        OR Bar.key IS NULL; 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • Validation on 'MATERIAL GROUP' at item level as well as service sub line it

    Hi friends, my requirement is to put validation on 'MATERIAL GROUP' at item level as well as service sub line item level. Pls  help me with exit/badi. Ganesh Shete

  • Receiver JMS Channel Error

    hi, I am facing an issue with the JMS Receiver Communication channel.Data is not getting inserted in the JMS Queue.CC Monitoring is showing the below ERROR: Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Connector fo

  • Querie regarding cache sizes

    For optimizing the calculation script i have set in my cube & compression type as RLE (prior calculation script was running with time span of 6 minutes now it takes 2 minutes ,datafile exported using dataexport is same ) The maximum index cache you h

  • How to use OData Date filter query to filter data from OData NetWeaver Gateway Service?

    Hello, I am trying to use the OData Filter query. to filter data records from the OData Service, using Date range for filters. Please check the below URL for the SAP's sample OData Service, with filter option. Service Query URL : https://sapes1.sapde

  • Can you play games/apps against different iOS devices (e.g. in multiplayer)?

    For instance if a friend has the game FIFA 13 installed on their iPhone 5, would i be able to play against them in multi-player mode on my iPod Touch 5th generation? Or must we all own the same iOS device in order to play each other (i.e. must be bot