YTD report generated from excel data yielding incorrect results

I am trying to generate a YTD report from the data present in an excel sheet. However the result is coming out to be incorrect for YTD sales
The data sheet looks like this.(SaleDate is in *3/14/2009 format).
SNo     manufacturer     date     # of CarsSold
1     Hyundai     1/2/2010     10
2     Maruti     1/2/2010     15
3     Hyundai     1/14/2010     11
4     Maruti     1/14/2010     15
5     Hyundai     2/1/2010     10
6     Maruti     2/1/2010     13
My logical layer consists of the following 3 tables
Manufacturer Dim table with only 1 column 'manufacturer'
Date dim table with only 1 column 'date'. Additional derived columns in this logical table created for YTD calculations are as follows:
CALENDER_YEAR_NAME---- EXTRACT( YEAR FROM testdata.TimeDim."date")
QUARTER_OF_YEAR------- EXTRACT( QUARTER_OF_YEAR FROM testdata.TimeDim."date")
MONTH_OF_YEAR----------- EXTRACT( MONTH FROM testdata.TimeDim."date")
CALENDER_QUARTER_DESC------ CONCAT( CAST (testdata.TimeDim.CALENDER_YEAR_NAME AS CHARACTER ( 30 )), CAST (testdata.TimeDim."QUARTER_OF_YEAR" AS CHARACTER ( 30 ))) ////appending year name to month name for uniqueness
CALENDER_MONTH_DESC------ CONCAT( CAST (testdata.TimeDim.CALENDER_YEAR_NAME AS CHARACTER ( 30 )), CAST (testdata.TimeDim.MONTH_OF_YEAR AS CHARACTER ( 30 )))
After that time dimension was created with the following levels.
timedimtotal
year
quarter
month
timedimdetail-Chronological key has been specified at all levels of the time dimension created for YTD calculation.The key at the lowest detail level was specified as 'date' column. At the upper levels it was CALENDER_MONTH_DESC,CALENDER_QUARTER_DESC,CALENDER_YEAR_NAME etc
Fact table with 1 column '# cars sold'.The fact table is joined with both the dim tables by complex logical join. Sno has been ommitted and not used in any of the logical tables. Sale YTD column was created in fact table using todate function(year).
The result am obtaining if i run the report today is:
CALENDER_YEAR_NAME QUARTER_OF_YEAR MONTH_OF_YEAR # of CarsSold SaleYTD
2,010 1 1 51 51
2,010 1 2 23 46
As you can see YTD for month 2 is coming incorrect it should be 51+23. This is jst test records and the same difference exists even if i run against my actual excel sheet
I would like to know:
1. Is it right to run YTD report against excel sheet as I checked for the query beign generated by answers, and its firing a lot of functions like Quarter name and monthname etc which i am not sure are supported by excel for answers.
2. If i am going fundamentally wrong somewhere in this entire approach as i am new to obiee and chances are i might be missing something important.
Would highly appreciate your help
Regards
Himanshu Hira

I have another solution and that is to actual discard the result before you get to the report stage.
You can do this by use of the Override Callback SequenceFilePostResultList and if Skipped then discard the result from ResultList.
Check out this link.
Regards
Ray Farmer

Similar Messages

  • Importing Data into Sql Server 2012 from Excel Data

    Hi,
    I got errors like this when i am doing import data into sql server from excel Data. Can you please help us?
    - Executing (Error)
    Messages
    Error 0xc020901c: Data Flow Task 1: There was an error with Source - demotable$.Outputs[Excel Source Output].Columns[Comment] on Source - demotable$.Outputs[Excel Source Output]. The column status returned was: "Text was truncated or one
    or more characters had no match in the target code page.".
     (SQL Server Import and Export Wizard)
    Error 0xc020902a: Data Flow Task 1: The "Source - demotable$.Outputs[Excel Source Output].Columns[Comment]" failed because truncation occurred, and the truncation row disposition on "Source - demotable$.Outputs[Excel Source Output].Columns[Comment]"
    specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
     (SQL Server Import and Export Wizard)
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - demotable$ returned error code 0xC020902A.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
     (SQL Server Import and Export Wizard)

    Are you attempting to import into a newly made table or into an existing table? It looks like it's trying to insert data where it cannot be inserted (invalid column or lack of data size in your column).
    Try the following:
    1). In your excel sheet, highlight the whole sheet and make sure the cells are in 'text' form and try re-importing
    2). save the document as ms dos TEXT and import as a text document.
    3). double check your columns are correct for the data, for example if you have a column that has a string of 100 characters and your column is 'NvarChar(90)' - that might cause the error? Or just correct data type in your column
    3). If that doesn't work and you're inserting into a new table, try importing it as string first and writing a query to insert columns that should be float/integer or whatever. You may want to convert float texts to a 'bigint' first rather than string
    > float as that can cause problems if I remember correctly.

  • Web printing from a report generated from a bookmark

    Hi,
    I implemented the How to web printing last year.  Eveything worked fine until someone tried to print a report generated from a bookmark.  It opens the window where it shows the formatted report to be printed, but does not do anything else.  The window remains blank.  Anybody having an idea?  I am sure it is related with the bookmark stuff, but can not get the finger on it.
    Tks a lot,
    Guylaine

    Has the template that the bookmark is off of been changed?  That might be causing the problem. 
    Thanks,
    Jeff

  • Excel Inplace - Update SAP R/3 tables from Excel Data

    Hi,
    I developed a report displaying using Excel inplace.  After user finished editing the Excel workingsheet, I called method get_ranges_data of interface I_OI_SPREADSHEET to get data contents.  But this method or almost all the methods of this interface requires user hit a enter key after edit a cell.  Without hit a enter key or click different cell, this method will not be able to get any data contents. 
    Is there a way I can force a user click or enter event?
    An example is apprieciated.

    I have not tested this, but you might try the following.
    The inline excel should be created from a template. And in the excel VB code should exists which call a customer event in Workbook_SheetChange. This code is executed each time a change occurs on the worksheet.
    so in you r worksheet you should have the following code:
    Private Sub Workbook_SheetChange(ByVal Sh As Object, _
            ByVal Source As Range)
        ' runs when a sheet is changed
      Call ThisWorkbook.Container.SendCustomEvent("DATA_CHANGE")
    End Sub
    this event you can catch in SAP, and reread the data from excel.
    so now each change in excel triggers an event in SAP.
    Not sure it works, but worth a try.
    Joris.

  • Scheduled Report: Export to Excel (Data Only) Fails

    I have an issue with a new installation of Crystal Reports Server 2008. When I try to schedule a report for extract to Excel (Data Only) the report fails with the following error:
    Error in File ~tmp202064233ce6330.rpt: Operation not yet implemented.
    We have scheduled the report using Word, PDF, text and they all work however the Excel (Data Only) format fails everytime with this error.
    I have no problem opening the report in Crystal Reports 2008 and Exporting to Excel Data Only format manually.
    Thanks in advance!
    Lee

    Hi,
    i just saw a note about the same Problem for BOE XI Rel.2. There it is a Bug.
    I would recommend you install the latest SP for your CRS and try again.
    Regards
    -Seb.

  • How can I populate a dynamic form from Excel data (beginner)

    I am reasonably certain this is beginner-level but I cannot seem to figure out how to do this. I have data in an ecxel file and I would like to import that data into a form using LS. I need to distribute the unique data to each recipient. (I have included an example below) I would really appreciate any advice. If there is a tutorial that explains this I would be happy to go through that. Thanks in advance.
    Customer
    Acct No
    Equipment
    Sales Rep
    Email
    Pear Computing
    1
    Motherboard A
    Jim Smith
    [email protected]
    Pear Computing
    1
    Video Card A
    Jim Smith
    [email protected]
    Orange Computing
    2
    Motherboard B
    Jim Smith
    [email protected]
    Orange Computing
    2
    Super Mouse
    Jim Smith
    [email protected]
    Plum Computing
    3
    Awesome Monitor
    Tanya Smith
    [email protected]
    Apple Computing
    4
    Motherboard S
    Tanya Smith
    [email protected]
    Apple Computing
    4
    Super Mouse II
    Tanya Smith
    [email protected]
    Raisin Computing
    5
    Motherboard R
    Bob Smith
    [email protected]
    Cherry Computing
    6
    SoundLoud Soundcard
    Bob Smith
    [email protected]
    I would like to send a template e-mail to each sales rep at "PC.com" that says:
    Dear <SalesRep>,
    <Customer> has the following equipment:
    <Account No> | <Customer> | <Equipment>
    I would like all the data for each customer to go to the sales rep. For instance, Jim should get an e-mail stating that "Pear Computing" has two items, and a separate e-mail stating that "Orange Computing" has two items. What I want to avoid is the MS Word mail merge solution that equates to Jim getting 4 emails. I would like the equipment to be grouped by customer number or account number. I would prefer to have a dynamic layout with flowed page as the number of items per customer will vary.
    PLEASE HELP!
    JD

    you can copy/paste data from Excel to Illustrator

  • Labview graph from excel data

    Hello,
    I need some help. I have data in excel The first column is a timestamp and the other columns are the data needed.and I am trying to get a graph with multiple plots with these data.
    attached here are the excel file and a labview file. In the labview file, the top part is an example I got from the forum, an interesting graph I am trying to follow.
    The bottow part is my tentative to extract the data from excel into array and try to use it. but I am stuck here. Any help please!
    Thank you,
    Agyna
    Attachments:
    graph.vi ‏13 KB
    Histo.xlsx ‏53 KB

    Hi agyna,
    I've saved xls file into csv and then i'm reading into labview and plotting the graph. Please check it this is what you need.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13
    Attachments:
    graph.vi ‏18 KB

  • Reports Generated in Excel Format

    Post Author: jase4now
    CA Forum: WebIntelligence Reporting
    When I schedule reports in the Excel format, it adds a blank row every other row, then shrinks it so that it is almost hidden.  Is it possible to keep it from doing this? 

    Post Author: InfluentialSoftware
    CA Forum: WebIntelligence Reporting
    Again, not sure if this will fix your precise problem, but generally speaking when you export to Excel, you'll get a shrunk and empty A column. To avoid this, move the report within WebI to the top left of the screen (takes some messing around) and the export will then be tidier.Andy

  • Can illustrator populate a pie chart from excel data?

    I was wondering if there was a way to import excel datat into illustrator, then it populates a vector pie or bar chart for me?  Is this even possible?
    Thanks in advance,
    Jenny
    http://texturedwallpaper.org

    you can copy/paste data from Excel to Illustrator

  • Display graphs from excel data

    Hi,
     I have the data in Excel(sample.xls). there are 2 columns of data. I want to read the data from excel and display in the form of XY graph (x-axis -one column of data and Y-axis one coumn of data).
    can anyone please provide the VI for this or else give me procedure how to do this.
    Thanks,
    Paleti.
    Attachments:
    time-mc.xls ‏5 KB

    Hello jason,
          Thanx for your reply. I will clarify what my concern is i need to display the graph with two columns(A-column as X-axis and B-column as Y-axis). I understand that Bijay provided example for waveform graph,and that is working for sample 3 data. when i use the same example for the different data like sample 1  which i am attaching below is not working. so i have tried to create the vi that will display the XY-graph instead of waveform graph. Still i am unable to display the graph. I will be attaching the VI i have tried. So anyone please help me to modify my vi to display as XY graph and make it work for the samples data i have provided in sample1.
    Thanks & Regards,
    Paleti. 
    Attachments:
    sample1.xls ‏1 KB
    sample2.xls ‏1 KB
    Refexample2.vi ‏12 KB

  • Reports generated with null data

    Hi,
    I setup a role which has read access to all records under different tab corretly. However, the reports are displayed with null data. Any idea?
    Thanks VK

    Hi Bobb,
    "Role-Based Can Read All Records" equal to No in my configuration. Requirement is not to allow report creation on others data.
    So, if I make it Yes, then they can access all data in CRMOD and create report. Please let me know if my understanding is correct.
    Thanks VK

  • How to discard skipped test results in XML report generated from TestStand

    Hello,
    I'm generating XML report from TestStand. I have more than 100 test cases & user has the flexibility to select the test cases to execute or to skip.
    Problem statement:
    1. In Configure\report options there is filter expression to filter test results to be logged. However, this filter is disabled for XML report.
    2. Is there a way to compress XML file using either encryption or any other methods?
    I understand that there would be two methods ideally for my problem statement #1 above:
    A. To have a workaround in reportgen_xml.seq to pragmatically log only executed test cases and discard skipped test results.
    B. Modify stylesheet supplied by NI to discard skipped test results.
    For problem statement #2 above:
    I am able to encrypt the data before logging it to XML. But I don't know how to modify the stylesheet to decrypt the same using either public/ private encryption keys. Can anyone bring in more ideas here !!!
    My preference would be to implement using #A above to reduce the XML file size which is ~4 MB will all test results (skipped + executed). If this is not possible my last option would be to implement using #B above
    I would appreciate if someone can help me for my problem statement? I'm using TestStand 2010
    Solved!
    Go to Solution.

    I have another solution and that is to actual discard the result before you get to the report stage.
    You can do this by use of the Override Callback SequenceFilePostResultList and if Skipped then discard the result from ResultList.
    Check out this link.
    Regards
    Ray Farmer

  • Populate PDF from Excel Data

    I have an excel worksheet with employee sales data. this worksheet has a column that has a drop-down list. I want to set it up so that whenever "Warning" is selected from the drop-down, a pdf is created. this pdf will be like a warning notice, and pull certain information from the selected row in excel and populate several fields in the pdf form. I also would want an electronic signature to be at the bottom with a calendar that can pull the date.
    I know that the bulk of this question is probably best answered on an excel forum, but I want to understand the best way to do this with each application...

    Something like this?
    // Import the first row of data from "myData.txt".
    this.importTextData("/c/desktop/myData.txt", 0)
    if (typeof cnt == "undefined") cnt = 0;
    this.importTextData("/c/desktop/textdata.txt", cnt++ % 4)
    // Specify the name of the template
    var template_name = "Student Information Sheet";
    // Get a reference to the template
    var t = getTemplate(template_name);
    // Add a new page based on the template
    if (t !== null) {
        t.spawn({
        nPage: numPages,      // Add the new page to end of document
        bOverlay: false,      // Create a new page, not an overlay
        bRename: true         // Rename the fields
    } else {
       app.alert("The template named \'" + template_name + " does not exist in this document.", 1);
    But how would I tell the new page to take the second row from the chart, and will I have to click the button for each one of the fields in the data?

  • Reports Generated From The Invoice Number

    Hello All,
    Firstly, thank you for this website, and also those who make contributions by asking questions and also answering.
    So my question is, can SAP be generate a report from an invoice number which will then show which voucher for reimbursement includes that invoice number?  And if so, how?
    At this moment, the only way I can know this happens is by running a report for the specific reimbursement voucher which in turn will show me the invoices that is being paid for.  However, I would like to input the invoice number which will show me which voucher the bill was paid for and which check number paid it.
    I look forward to your replies, and thank you.

    I should add, I do not mean a journal voucher, I'm talking about a public voucher for reimbursement from the government.
    Thank you.

  • Crystal Reports 2008 and Excel data source

    I want to use a large Excel-sheet (with 139569 lines) as a data source for a report. Crystal Reports 2008 only seems to accept Excel sheets as a data source if they are stored in Excel 97-2003 format. But, then there is a limit of 65536 lines and I miss more than half of the data I need to process. Does anyone have an idea how I can solve this problem??

    Hello,
    No work around in CR when connecting to xls files. CR can only use xls files which has the 65K row limit. Our next version does support xlxs files though. Cr for VS 2010 is available, no Designer outside of the IDE though. CR 2011 is still in beta and no release data announced yet.
    For now all you can do is limit your sheets to 65k or export your XLS files to Access, must also be an MDB file type, not the new extended type. Once in an Access database now you can use it as your data sources.
    You can use a temp database so it gets destroyed each time or simple delete all records. Up to you how to manage it.
    Thank you
    Don

Maybe you are looking for