Compare two year column

Hi to all,
I'm new at Crystal and I have a question.
I have a source table that have the following layout:
NAME       DATE      SALES_VALUE
aaaaa      Jan09           1000
bbbbb      Feb09           1111
ccccc      Mar09           1010
aaaaa      Jan10            1200
I want to create a report that compares the same month on diferent years like the following:
NAME       JAN09      JAN10
Of course, the month is not fixed, but it will be a parameter defined by the user...
Can anyone help me?
Thanks,
Luis

You could create a formula, and group off of it.
day()&" "& month()
If you go to details section and check Format with Multiple Columns
you will see a layout tab pop up.
click on it, select the proper width
and across then down
then you will get your two columns.
Something like this
NAME     DATE     SALES_VALUE                 NAME     DATE     SALES_VALUE
aaaaa     01/01/2010      1,000.00                           aaaaa           01/01/2011      1,507.50
aaaaa     02/01/2010      1,952.50                          aaaaa     02/01/2011      2,397.50
bbbbb     01/10/2010      1,240.50                           ccccc     01/10/2011      1,908.00
bbbbb     02/10/2010      2,353.00            ccccc     02/10/2011      2,798.00

Similar Messages

  • Compare two table columns

    hi all,
    i am using db10g.
    my task is to compare two table's data for example
    table1 is having
    col1 col2 col3
    a b c
    e f g
    table2 is
    col4 col5 col6
    a e c
    e f g
    so i have to compare col1 first record and col4 first record.
    in otherwords first table first column first item with second table first table first value and so on.
    for ex: a= a
    b= e
    c= c etc
    how can i acheive this?
    both are database tables.
    i cannot use minus function because data types are different for the corresponding column
    how can i compare it?
    Thanks..
    Edited by: user13329002 on Jan 13, 2011 1:09 AM

    Hi,
    Try this
    select
        case
            when a.col1 = b.col1 then 'EQUAL' else 'NOT EQUAL' end column1,
        case
            when a.col2 = b.col2 then 'EQUAL' else 'NOT EQUAL' end column2,
        case
            when a.col3 = b.col3 then 'EQUAL' else 'NOT EQUAL' end column3 
    from (select col1,col2,col3,rownum rn from table1) a,
                                (select col1,col2,col3,rownum rn from table2) b where a.rn = b.rn Try to see how you order the rows of the two tables.
    cheers
    VT

  • Is there an easy way to compare two null columns?

    I need to compare a significant number of columns between records in two tables for a data conversion. I really need a comparison that will return true if: 1) both columns are null; or 2) both columns are not null and equal. I want it to return false if: 3) one column is null and the other is not; or 4) both columns are not null and are not equal. I am trying to find records which are not exact matches.
    I found documentation at oracle-base.com about the SYS_OP_MAP_NONNULL function that would do what I want, but I don't want to use this since it's an undocumented feature and my code will be in production for a period of time.
    I would rather not have to use a construct like this for each and every column I'm comparing:
              a.col is null
              and b.col is null
         or (
              a.col = b.col
    )Also, I know about the NVL function, but I'm comparing columns which are entered by users, and I'm not comfortable substituting any values for null because those values might actually exist in the data.

    Performance wasn't the issue but they will be about the same anyway. The issue was avoiding the messy syntax needed to do the job.
    Which of these looks easier to you if you had to understand and maintain the code or add new columns
    >
    I would rather not have to use a construct like this for each and every column I'm comparing:
              a.col is null
              and b.col is null
         or (
              a.col = b.col
    >
    or
    1 = DECODE (a.col, b.col, 1)So if, like the OP, you had to 'compare a significant number of columns' which syntax would you use?

  • Compare two records column by column in same table

    Hi All,
    I have an address table with ID as the PK but there can be more than one ID. I need to take the latest address record and first see if that same ID has a previous address record and if so, compare each column to see if the data has changed. I only need to compare the latest record with the next latest record.
    I cannot figure this out at all. I can of course use the MAX function to get the latest address records but do not know how I can pull the next latest address record that matches the ID and compare each column.
    Sample table:
    ID street city state zip effective_date
    1 123 main chicago IL 60111 3-7-2012
    2 34 N 13th new york NY 18374 3-7-2012
    3 15 N main Dallas TX 47389 3-7-2012
    1 89 N main chicago IL 60111 1-5-2012
    1 16 East St columbus OH 47382 12-10-2011
    2 34 N 13th new york NY 18374 10-7-2011
    2 15 S Elm new york NY 18374 09-1-2011
    3 15 N main Dallas TX 47389 10-4-2011
    SO...in the table above using today as the latest record date, based of my criteria I would only want to pull record ID 1 and 2 since the next most recent record for those IDs have had at least one of their address data change. ID 3 has exactly the same address data so I would not consider that in my criteria.
    Can i do this with SQL only or will i need to create a procedure or function?
    Any help is appreciated
    Ben

    Ben C wrote:
    Hi All,
    I have an address table with ID as the PK but there can be more than one ID. You mean there can be more than one row with tha same ID, right? (There can be more than one ID, also.)
    I need to take the latest address record and first see if that same ID has a previous address record and if so, compare each column to see if the data has changed. I only need to compare the latest record with the next latest record.
    ... Sample table:Whenever you have a problem, please post CREATE TABLE and INSERT statements for the sample data, and the exact results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.
    Can i do this with SQL only or will i need to create a procedure or function?You don't need PL/SQL, if I understand your requirements. You can do something like this:
    WITH     got_analytics     AS
         SELECT     id, street, city, state, zip, effective_date
         ,     COUNT (*)     OVER ( PARTITION BY  id )          AS cnt
         ,     ROW_NUMBER () OVER ( PARTITION BY  id
                                   ORDER BY          effective_date     DESC
                           )                           AS r_num
         FROM    table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    SELECT    id, street, city, state, zip, effective_date
    FROM       got_analytics
    WHERE       cnt     > 1
    AND       r_num     <= 2
    ORDER BY  id
    ,            effective_date
    ;This will show the most recent 2 rows for each id that has 2 (or more) rows.
    You can modify it to only include ids where there was some change in street, city, state or zip between those 2 rows.
    WITH     got_analytics     AS
         SELECT     id, street, city, state, zip, effective_date
         ,     COUNT (*)     OVER ( PARTITION BY  id )          AS cnt
         ,     ROW_NUMBER () OVER ( PARTITION BY  id
                                   ORDER BY          effective_date     DESC
                           )                           AS r_num
         FROM    table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    ,     got_unique_cnts     AS
         SELECT     id, street, city, state, zip, effective_date
         ,     COUNT (DISTINCT '~' || street) OVER (PARTITION BY id)     AS street_cnt
         ,     COUNT (DISTINCT '~' || city)   OVER (PARTITION BY id)     AS city_cnt
         ,     COUNT (DISTINCT '~' || state)  OVER (PARTITION BY id)     AS state_cnt
         ,     COUNT (DISTINCT '~' || zip)    OVER (PARTITION BY id)     AS zip_cnt
         FROM       got_analytics
         WHERE       cnt     > 1
         AND       r_num     <= 2
    SELECT    id, street, city, state, zip, effective_date
    FROM       got_unique_cnts
    WHERE       street_cnt     > 1
    OR       city_cnt     > 1
    OR       state_cnt     > 1
    OR       zip_cnt     > 1
    ORDER BY  id
    ,            effective_date
    ;This assumes that street, city, state and zip are all VARCHAR2s. If any of those columns is NULL on one row, and not NULL on the other row for that ID, that counts as a difference.
    Edited by: Frank Kulash on Mar 7, 2012 3:37 PM
    Edited by: Frank Kulash on Mar 7, 2012 3:41 PM

  • Comparing two report columns in webi

    Hi ,
    I have as cenario where we need to get unmatched records of 2 reports .
    Ex:
    Rept1
    Name    no               rev
    A        12323           100
    B         23431           150
    C         45631            200
    Rept2
    date        No     sales
    1/3/15  123-23       300
    3/2/15   234-31      400
    4/3/15    356-31     300
    final o/p :  i need to compare rep1 no with rept 2 no and finally i need to dissplay unmatched records of Rept1 with Rept2.
    here in above rept 1 & rept2 unmatched record is 45631  .
    Thanks.

    then on report level you have to fetch both the report data in different queries
    let say query1 contains data for report1
    like wise for query2
    now,
    on report level create an object
    New_No =toNumber(Replace(query2.No;"-";""))
    Now merge No from query1 & New_No .
    Create a formula =[No] Where (isNull(query2.sales) = 1 ), here [No] should be merged dimension.
    this will get you result

  • Sql table function that compares two tables column structure and returns each difference as a record in the returned table

    hi,
    Does anyone have or can show me the principle of a such kind of function ?

    see
    http://geekswithblogs.net/leonardm/archive/2010/01/14/table-schema-comparison-in-sql-server.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to compare two different characteristics at the same time in polestar

    Hi Gurus,
    I would like to analyse the e fashion universe in polestar with comparison of previous year product line with current year product line at the same time.
    is there any way to do that we can compare two years of the product line sales revenue at the same time with comparison chart like 2003 T shirts vs 2002 T shirts 
    in polestar we can compare the two measures at the same time but i want to compare the sales revenue of product lines of two years in a comparison chart at the same time.
    Regards and thanks
    Abid Paul

    Hi Stratos,
    I am actually able to compare the Measures  but i want the comparison between the two different characteristics like this year  productline  vs last year productline at the same time with say one measure like sales revenue or any other.
    Is it possible to compare the both and it should represent in the chart as well at the same time.
    In the polestar i can compare three measures at the same time but i want to compare characteristics like year  2009 productline VS 2008 productline with one measure say sales revenue.
    I would really appreciate if you could help me out.
    Regards and thanks
    Abid

  • Compare two columns and match ALL recurring values, not just the first instance

    Hi everybody...
    I was looking for a way to compare values in two columns, identifying every duplicate value instance on a third column.
    Searching around the forums, I found a solution, albeit a partial one; I am using this formula: =IFERROR("Duplicate in row "&MATCH($A,$B,0),"") along column C, to compare values between columns A and B. When applied, the formula will render the first instance where there is a duplicate; unfortunately MATCH will only register the first instance of the duplicated values.
    For example:
    The first value on column A is 'Apple'. On column B there are three instances for the value 'Apple', the formula identifies the first of these values, but not the remaining two.
    I am not an advanced Numbers or Excel user, and the answer to this problem eludes me. I am attempting to compare columns that have no less than 1000 rows each, so you can imagine how, finding a solution to my problem would be really great.
    Thanks in advance,
    Pablo

    Unfortunately I can't see your screenshot, but supposing you have a table like this:
    Col1
    Col2
    1
    3
    Dupe
    2
    4
    Dupe
    3
    5
    Dupe
    4
    6
    5
    7
    Then here is one way to flag the duplicates.
    The formula in C2, copied down, is:
    =IF(COUNTIF($A,$B2)≥1,"Dupe","")
    Then filter on column C for 'Dupe', and copy the values in column B to wherever you need them.
    SG

  • Compare two columns and formate based on condition

    I know this dead horse has been beaten and I've read my fair share of threads and manuals to no avail..  I have two list that consist of movie titles, holiday movies to be exact.  I'm creating a holiday movie schedule which consist of three(3) columns...A,B and C.  Column A is the Date, Sat, November 17 2012 thru Monday, Dec 24, 2012.  Column C consist of a movie list divided into 2 sections with three subsections each.  Section 1 is animated movies and Section 2 is live action, each subsection, 1.1, 1.2, 1.3, 2.1, 2.2 and 2.3 are lists based on popularity with the kids...low, medium and high respectively.  And finally column B is the movie list relative the column A...the schedule.
    As I write a movie title in column B, I'd like the cell fill to be light red and the corresponding title in column C change to strike through font type.  This way I know I've added the movie title to the schedule...this comes in handy when I ask the kids to help so we have no duplicates in the schedule.  I'm assuming this would take a combination of; Conditional Formatting, cell formulas and perhaps an additional blank column for trigger results.
    I'm including the table, which include an experimental column I was working on.  As an FYI, this has been completed in Excel already, just hoping to get it done in Numbers.
    Thanks for any help anyone can give.
    Date
    Movie Name
    Class
    Sat, Nov 17, 2012
    Animated Christmas Movies
    TRUE
    Lowest Priority Animation
    TRUE
    Frosty Returns
    TRUE
    Sun, Nov 18, 2012
    The Nightmare Before Christmas
    Rudolph and Frosty's Christmas in July
    TRUE
    Rudolph the Red-Nosed Reindeer & the Island of Misfit Toys
    TRUE
    Rudolph's Shiny New Year
    TRUE
    Mon, Nov 19, 2012
    Nothing Like the Holidays
    TRUE
    Medium Priority Animation
    TRUE
    Jack Frost Animation
    TRUE
    Tue, Nov 20, 2012
    Home for the Holidays
    It's Christmas Time Again, Charlie Brown
    TRUE
    Christmas in South Park
    TRUE
    Cartoon Network Christmas Rocks
    TRUE
    Wed, Nov 21, 2012
    Planes, Trains and Automobiles
    Cartoon Network Christmas Yuletide Follies
    TRUE
    Cartoon Network Christmas Vol3
    TRUE
    Twas the Night Before Christmas
    TRUE
    Thu, Nov 22, 2012
    Planes, Trains and Automobiles
    The Little Drummer Boy
    TRUE
    TRUE
    Highest Priority Animation
    TRUE
    Fri, Nov 23, 2012
    Trapped in Paradise
    The Simpson's Christmas
    TRUE
    A Very Special Family Guy Freakin' Christmas
    TRUE
    Family Guy: Road To The North Pole
    TRUE
    Sat, Nov 24, 2012
    American Dad! The Most Adequate Christmas Ever
    TRUE
    A Charlie Brown Christmas
    TRUE
    The Nightmare Before Christmas
    FALSE
    Sun, Nov 25, 2012
    Die Hard
    Frosty the Snowman
    Die Hard 2
    Hooves of Fire
    How the Grinch Stole Christmas
    Mon, Nov 26, 2012
    Gremlins
    Santa Claus is Comin' to Town
    The Year Without a Santa Claus
    Rudolph, the Red-Nosed Reindeer
    Tue, Nov 27, 2012
    The Ice Harvest
    Live Action Christmas Movies
    Lowest Priority
    Wed, Nov 28, 2012
    Reindeer Games
    National Lampoon's Christmas Vacation 2: Cousin Eddie's Island Adventure
    Chasing Christmas
    The Nativity Story
    Thu, Nov 29, 2012
    Bad Santa
    Unaccompanied Minors
    Jingle All the Way
    Jack Frost Live
    Fri, Nov 30, 2012
    The Shop Around the Corner
    The Santa Clause 3: The Escape Clause
    The Santa Clause 2: The Mrs. Clause
    Sat, Dec 1, 2012
    The Bishop's Wife
    Medium Priority
    0
    Bad Santa
    Bad Santa
    Mixed Nuts
    Mixed Nuts
    Sun, Dec 2, 2012
    The Chronicles of Narnia: The Lion, the Witch and the Wardrobe
    Reindeer Games
    Reindeer Games
    The Ice Harvest
    The Ice Harvest
    The Shop Around the Corner
    The Shop Around the Corner
    Mon, Dec 3, 2012
    Miracle on 34th Street B&W
    The Bishop's Wife
    The Bishop's Wife
    Christmas in Connecticut
    Christmas in Connecticut
    The Chronicles of Narnia: The Lion, the Witch and the Wardrobe
    The Chronicles of Narnia: The Lion, the Witch and the Wardrobe
    Tue, Dec 4, 2012
    Mixed Nuts
    Nothing Like the Holidays
    Nothing Like the Holidays
    Home for the Holidays
    Home for the Holidays
    The Family Man
    The Family Man
    Wed, Dec 5, 2012
    Scrooged
    Miracle on 34th Street 1994
    Miracle on 34th Street 1994
    Miracle on 34th Street B&W
    Miracle on 34th Street B&W
    Just Friends
    Just Friends
    Thu, Dec 6, 2012
    Just Friends
    Trapped in Paradise
    Trapped in Paradise
    0
    Highest Priority
    0
    Fri, Dec 7, 2012
    Miracle on 34th Street 1994
    Die Hard
    Die Hard
    Die Hard 2
    Die Hard 2
    Gremlins
    Gremlins
    Sat, Dec 8, 2012

    Hi Stephen,
    Both of these are solvable, and the Date solution cold be similar to that used for the 'stock list' in column C. The Movie Title solution is a different case, though.
    The stock list is edited only occasionally, so requiring the user to unhide column C, add a title, then rehide the column is workable.
    The same is true of the date list, so this too would work with the dates entered into a column that will be hidden, then copied into a visible column with a formula that introduced a detectable difference into the copied version, dependent on the weekday of each date. That difference would be used to trigger the conditional formatting of the cell containing the calculated date as text value. See the example below.
    But the (scheduled) Movie Title column doesn't fit nicely into that mode of operation, as it is edited quite often. As editing, usng the model described, requires making the data column visible, editing the entry (or entries) in that column, then rehiding the column, the hassle factor soon becomes insufferable, if nothing else.
    The first solution I considered (see earlier reply) is workable only if the the formatted table starts and remains the same size in all details (ie. individual row height) as the main table.Any change in row height in the main table not reflected in the auxiliary table immediately destroys the impression of formatting applying to the correct cells. With cells set to wrap text and varying lengths of movie titles, wrapped lines changing the height of individual rows is pretty much unavoidable.
    Best practice here would seem to be to use a separate column to flag the titles already in the "Class" list with a "√" (or flag those not in the list with an "X"), and use conditional formatting to change the background colour of the flagging cell.
    Here's a sample, using "W" to flag the weekend dates in the new column B, and "√" to flag the titles that are on the list already in the new column D.
    I've added two titles to the weekend date, November 18. One is non-existent (as far as I know), so it doesn't appear in the list and doesn't get flagged; the other is chosen from a visible part of the list to show the highlighting of the title in that list. Column "C" (now column "F" due to the insertion of two new columns) is hidden. G, labelled .Class, is the calculated column (D) from the previous message.
    Regards,
    Barry

  • Create ViewCriteria comparing two columns from same table

    Does anyone know how I can create a ViewCriteria where clause that compares two columns from the same table?
    For example if I had two integer columns (MINSAL and MAXSAL) and wanted to see if they are equal. I would normally do the following SQL below.
    SELECT * FROM EMPL
    WHERE MINSAL = MAXSAL

    It works, but it is not ideal.
    Setup a Transient column that performs a groovy evaluation of MINSAL=MAXSAL and then my ViewCriteria evaluates the column to true and I set Query Execution Mode to Both.

  • How to compare two dates that should not exceed morethan 3 years

    hi all,
    can you please tell me how to compare two dates( basically dates are string type)
    that should not exceed more than 3 years? in JAVASCRIPT
    Thanks in Advance.

    This is not a JavaScript forum.
    [*Google* JavaScript Forum|http://www.google.co.uk/search?q=JavaScript+Forum&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a]
    Good luck.

  • How can i compare two XML files storeds in a LONG column

    Hi,
    I need to compare two xml files. My xmls are stored in two table like this:
    Table 1
    ID_COL number(5);
    XML1 LONG()
    Table 2
    ID_COL number(5);
    XML2 LONG()
    I need compare the values of the tags of this xmls files e to list de differences.
    Tks,
    Fernando.

    yes odie you are right...i think that my xml is wrong...
    I would like to compare every element/attribute...
    Bellow is another xml...this is ok....tks
    <?xml version="1.0" encoding="UTF-8" ?>
    - <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00">
    - <NFe xmlns="http://www.portalfiscal.inf.br/nfe">
    - <infNFe Id="NFe31121059106377000172550010003957681605366269" versao="2.00">
    + <ide>
    <cUF>31</cUF>
    <cNF>60536626</cNF>
    <natOp>VDAS PROD ESTABELECIMENT</natOp>
    <indPag>1</indPag>
    <mod>55</mod>
    <serie>1</serie>
    <nNF>395768</nNF>
    <dEmi>2012-10-03</dEmi>
    <dSaiEnt>2012-10-03</dSaiEnt>
    <hSaiEnt>18:30:00</hSaiEnt>
    <tpNF>1</tpNF>
    <cMunFG>3159605</cMunFG>
    <tpImp>1</tpImp>
    <tpEmis>1</tpEmis>
    <cDV>9</cDV>
    <tpAmb>1</tpAmb>
    <finNFe>1</finNFe>
    <procEmi>0</procEmi>
    <verProc>1.0</verProc>
    </ide>
    + <emit>
    <CNPJ>59106377000172</CNPJ>
    <xNome>METAGAL IND E COM LTDA</xNome>
    <xFant>METAGAL INDUSTRIA E COMERCIO LTDA</xFant>
    - <enderEmit>
    <xLgr>ROD BR 459</xLgr>
    <nro>333</nro>
    <xCpl>KM 121</xCpl>
    <xBairro>DISTRITO INDUSTRIAL</xBairro>
    <cMun>3159605</cMun>
    <xMun>SANTA RITA DO SAPUCAI</xMun>
    <UF>MG</UF>
    <CEP>37540000</CEP>
    <cPais>1058</cPais>
    <xPais>BRASIL</xPais>
    <fone>3534719100</fone>
    </enderEmit>
    <IE>5969141300009</IE>
    <IM>01183</IM>
    <CNAE>2949299</CNAE>
    <CRT>3</CRT>
    </emit>
    + <dest>
    <CNPJ>59275792000150</CNPJ>
    <xNome>GENERAL MOTORS DO BRASIL LTDA</xNome>
    - <enderDest>
    <xLgr>AV GOIAS</xLgr>
    <nro>1805</nro>
    <xBairro>BARCELONA</xBairro>
    <cMun>3548807</cMun>
    <xMun>SAO CAETANO DO SUL</xMun>
    <UF>SP</UF>
    <CEP>09501970</CEP>
    <cPais>1058</cPais>
    <xPais>BRASIL</xPais>
    </enderDest>
    <IE>636003724112</IE>
    <email>[email protected]</email>
    </dest>
    - <det nItem="1">
    + <prod>
    <cProd>XM20C9500PPR</cProd>
    <cEAN />
    <xProd>ESPELHO RETROVISOR EXTERNO</xProd>
    <NCM>70091000</NCM>
    <CFOP>6501</CFOP>
    <uCom>PC</uCom>
    <qCom>80.0000</qCom>
    <vUnCom>35.8700000000</vUnCom>
    <vProd>2869.60</vProd>
    <cEANTrib />
    <uTrib>PC</uTrib>
    <qTrib>80.0000</qTrib>
    <vUnTrib>35.8700000000</vUnTrib>
    <indTot>1</indTot>
    <xPed>XRW001RV</xPed>
    <nItemPed>000001</nItemPed>
    </prod>
    - <imposto>
    - <ICMS>
    - <ICMS00>
    <orig>0</orig>
    <CST>00</CST>
    <modBC>3</modBC>
    <vBC>2869.60</vBC>
    <pICMS>12.00</pICMS>
    <vICMS>344.35</vICMS>
    </ICMS00>
    </ICMS>
    - <IPI>
    <CNPJProd>00000000000000</CNPJProd>
    <cEnq>0</cEnq>
    - <IPINT>
    <CST>54</CST>
    </IPINT>
    </IPI>
    - <II>
    <vBC>0.00</vBC>
    <vDespAdu>0.00</vDespAdu>
    <vII>0.00</vII>
    <vIOF>0.00</vIOF>
    </II>
    - <PIS>
    - <PISNT>
    <CST>08</CST>
    </PISNT>
    </PIS>
    - <COFINS>
    - <COFINSNT>
    <CST>08</CST>
    </COFINSNT>
    </COFINS>
    </imposto>
    <infAdProd>PC.93378954-COMPL.PED.XRW001RV</infAdProd>
    </det>
    + <total>
    - <ICMSTot>
    <vBC>2869.60</vBC>
    <vICMS>344.35</vICMS>
    <vBCST>0.00</vBCST>
    <vST>0.00</vST>
    <vProd>2869.60</vProd>
    <vFrete>0.00</vFrete>
    <vSeg>0.00</vSeg>
    <vDesc>0.00</vDesc>
    <vII>0.00</vII>
    <vIPI>0.00</vIPI>
    <vPIS>0.00</vPIS>
    <vCOFINS>0.00</vCOFINS>
    <vOutro>0.00</vOutro>
    <vNF>2869.60</vNF>
    </ICMSTot>
    <retTrib />
    </total>
    + <transp>
    <modFrete>0</modFrete>
    - <transporta>
    <CNPJ>00980331000488</CNPJ>
    <xNome>THALE TRANSPORTES E LOG. LTDA</xNome>
    <IE>5963866160070</IE>
    <xEnder>ROD BR 459-KM 121 - DIST INDL, S/N</xEnder>
    <xMun>SANTA RITA DO SAPUCAI</xMun>
    <UF>MG</UF>
    </transporta>
    - <veicTransp>
    <placa>DPF8048</placa>
    <UF>SP</UF>
    </veicTransp>
    - <vol>
    <qVol>20</qVol>
    <esp>OUTROS</esp>
    <pesoL>64.000</pesoL>
    <pesoB>104.000</pesoB>
    </vol>
    </transp>
    + <cobr>
    - <fat>
    <nFat>000000395768</nFat>
    <vOrig>2869.60</vOrig>
    </fat>
    - <dup>
    <nDup>1</nDup>
    <dVenc>2012-11-20</dVenc>
    <vDup>2869.60</vDup>
    </dup>
    </cobr>
    - <infAdic>
    <infCpl>VIA DE TRANSPORTE RODOVIARIA CODIGO : 108061 PEDIDO NRO : ACIMA FABRICA :72480 REDESPACHO ATRAVES DE VELOCE LOGISTICA S/A ESTRADA DOS ALVARENGAS SAO BERNARDO CAMPO ASSUNCAO SP CNPJ : 10.299.567/0003-26 IE : 635.600.028.11 IPI - IMUNE CFE.ART.18, INCISO II, DO RIPI - DECRETO No.7.212/2010. REMESSA COM FIM ESPECIFICO DE EXPORTACAOMERC.A SER EXPORT.P/GENERAL MOTORS DO BRASIL LTDA.DECEX=3-0322/10-0007 ESTOCA-GEM TEMPORARIA NA VELOCE LOGISTICA S.A. ESTR.ALVARENGAS,4018 B.ASSUNCAO S.B.C. CNPJ10.299.567/0003-26IE.635.600.028.110 FT NR.431.183 ROMANEIO :131.588</infCpl>
    </infAdic>
    </infNFe>
    + <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    - <SignedInfo>
    <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
    <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
    - <Reference URI="#NFe31121059106377000172550010003957681605366269">
    - <Transforms>
    <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
    <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
    </Transforms>
    <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
    <DigestValue>jN2ozPH3/GvAS8Q5lh/t9bzuXCw=</DigestValue>
    </Reference>
    </SignedInfo>
    <SignatureValue>GAXPLvMCtIYdwMxXDcyL0kr5hCDPCFw8/uNYHFcdTMqBhLgIcEtzHRf8qioWlUVSHNf5jnCLKGjhDV4bEJqkcBhWsKouMzojQ+Z6hkFQAWNuJfPIzutmtRy3AePc5tHK0lI3tF3ws9memboJ8sW21IOWHB6eB0jK2gmhcOlDejc=</SignatureValue>
    - <KeyInfo>
    - <X509Data>
    <X509Certificate>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</X509Certificate>
    </X509Data>
    </KeyInfo>
    </Signature>
    </NFe>
    - <protNFe versao="2.00">
    - <infProt>
    <tpAmb>1</tpAmb>
    <verAplic>13_0_32</verAplic>
    <chNFe>31121059106377000172550010003957681605366269</chNFe>
    <dhRecbto>2012-10-03T17:35:55</dhRecbto>
    <nProt>131120853536488</nProt>
    <digVal>jN2ozPH3/GvAS8Q5lh/t9bzuXCw=</digVal>
    <cStat>100</cStat>
    <xMotivo>Autorizado o uso da NF-e</xMotivo>
    </infProt>
    </protNFe>
    </nfeProc>

  • Compare two members from the same dimension in HFR

    Hi,
    Is it possibe to compare two members from the same dimension in HFR? The requirement is to compare Year and Week members from the same dimension. The Week date will be selected from POV. The corresponding Year date should be displayed in the report. Week dates are in the format W2008-03-07 and Year dates are in YTD2008-03-07.
    The dates are same except the preceding character.I am unable to compare these two. In my understanding there's no substring or replace functions in HFR.
    Kindly help. Thanks in advance.
    Regards,
    Uma

    Hi,
    How is your database structured? it may be possible to use the 'RelativeMember' function if it will always be the same number of steps between the 'W' member and the 'YTD' member, e.g. if your hierarchy is something like:
    Time
    .Weeks
    ..W2008-03-07
    ..W2008-03-10 etc.. for 52 weeks
    .YTD
    ..YTD2008-03-07
    ..YTD2008-03-10 etc.. for 52 weeks
    In your report select 'Current Point of View for Time' in one row/column and in the other use:
    RelativeMember set up as follows:
    Member: Current Point of View for Time
    Offset: 52
    Hierarchy: Time
    RelativeMemberList: Lev0, Time
    UseFirstDescendant: leave unselected
    Hope this helps
    StuartGame
    www.analitica.co.uk

  • Help needed to compare two Key Figures and show out put

    hello experts,
                       I am comparing the Sales data for two year/month. I need to compare these two KF and show the result only if one is greater than the other by 40%. Sample
    Jan/2008                             Jan /2007
    400                                      600
    500                                      300
    300                                      700
    600                                      400 
    The columns should be outputted only if Jan 2008 is greater than Jan 2007 by 40% for all customers in a business area. Thank you all in advance.
    Regards,
    -Akash

    Hi Akash,
    Your requirement could be met by
    Creating a Calculated Key Figure say variance = ( ( Jan2008 - Jan2007 ) / Jan 2008 ) *100
    Then create a new Condition on  Variance so as to display rows only when Variance > 40
    Hope this solves ur issue.Do revert
    Vasavi

  • Comparing data in columns using SUBSTR

    I have a column with a case number(VARCHAR2) and a column with a year(NUMBER) consisting of data similiar to:
    CASENUMBER-----------------------------YEAR
    199713029----------------------------------97
    199713678----------------------------------97
    199713691----------------------------------97
    199713709----------------------------------97
    199713844----------------------------------97
    199714141----------------------------------97
    2001002718--------------------------------01
    2001002725--------------------------------01
    2001002894--------------------------------01
    95 U 9998-----------------------------------95
    95 U 9999-----------------------------------95
    96 A 0019-----------------------------------96
    96 A 0058-----------------------------------96
    96 A 0067-----------------------------------96
    When i run this query:
    SELECT SUBSTR(LOCCASENUM,1,4) as FIRST_FOUR,SUBSTR(YEAR,1,2)as "test"
    FROM DATA_TABLE
    where SUBSTR(LOCCASENUM,1,4) != SUBSTR(YEAR,1,2)I get this result:
    FIRSTFOUR------ test_
    1997----------------- 97
    1997----------------- 97
    1997----------------- 97
    1997----------------- 97
    1997----------------- 94
    1997----------------- 97
    2001------------------ 1
    2001------------------ 1
    2001------------------ 4
    95 U----------------- 95
    95 U----------------- 95
    96 A----------------- 96
    96 A----------------- 96
    96 A----------------- 93
    What i am wanting to do is compare these two columns and display the only ones that do not match. I am not sure if i need to do an LPAD on the year column or what. Can someone help? Thanks
    Deanna

    I see Walter has beaten me to it, but i'll post this anyway in the off chance you're not running on Oracle 10 or better (since that's when regular expression support was introduced).
    ME_XE?with data as
      2  (
      3     select '199713029'   as casenumber,  97 as year from dual union all
      4     select '199713678'   as casenumber,  97 as year from dual union all
      5     select '199713691'   as casenumber,  97 as year from dual union all
      6     select '199713709'   as casenumber,  97 as year from dual union all
      7     select '199713844'   as casenumber,  97 as year from dual union all
      8     select '199714141'   as casenumber,  97 as year from dual union all
      9     select '2001002718'  as casenumber,  01 as year from dual union all
    10     select '2001002725'  as casenumber,  01 as year from dual union all
    11     select '2001002894'  as casenumber,  01 as year from dual union all
    12     select '95 U 9998'   as casenumber,  95 as year from dual union all
    13     select '95 U 9999'   as casenumber,  95 as year from dual union all
    14     select '96 A 0019'   as casenumber,  96 as year from dual union all
    15     select '96 A 0058'   as casenumber,  96 as year from dual union all
    16     select '96 A 0067'   as casenumber,  96 as year from dual
    17  )
    18  select *
    19  from
    20  (
    21     select
    22        casenumber,
    23        year,
    24        to_date(lpad(to_char(year), 2, '0') || '0101', 'RRMMDD') as year_year,
    25        case
    26           when instr(casenumber, ' ') = 0
    27           then
    28              to_date(substr(casenumber, 1,4) || '0101', 'RRRRMMDD')
    29           else
    30              to_date(substr(casenumber, 1,2) || '0101', 'RRMMDD')
    31        end as case_year
    32     from data
    33  )
    34  where year_year = case_year;
    CASENUMBER                                   YEAR YEAR_YEAR                  CASE_YEAR
    199713029                                      97 01-JAN-1997 12 00:00       01-JAN-1997 12 00:00
    199713678                                      97 01-JAN-1997 12 00:00       01-JAN-1997 12 00:00
    199713691                                      97 01-JAN-1997 12 00:00       01-JAN-1997 12 00:00
    199713709                                      97 01-JAN-1997 12 00:00       01-JAN-1997 12 00:00
    199713844                                      97 01-JAN-1997 12 00:00       01-JAN-1997 12 00:00
    199714141                                      97 01-JAN-1997 12 00:00       01-JAN-1997 12 00:00
    2001002718                                      1 01-JAN-2001 12 00:00       01-JAN-2001 12 00:00
    2001002725                                      1 01-JAN-2001 12 00:00       01-JAN-2001 12 00:00
    2001002894                                      1 01-JAN-2001 12 00:00       01-JAN-2001 12 00:00
    95 U 9998                                      95 01-JAN-1995 12 00:00       01-JAN-1995 12 00:00
    95 U 9999                                      95 01-JAN-1995 12 00:00       01-JAN-1995 12 00:00
    96 A 0019                                      96 01-JAN-1996 12 00:00       01-JAN-1996 12 00:00
    96 A 0058                                      96 01-JAN-1996 12 00:00       01-JAN-1996 12 00:00
    96 A 0067                                      96 01-JAN-1996 12 00:00       01-JAN-1996 12 00:00
    14 rows selected.
    Elapsed: 00:00:00.07

Maybe you are looking for

  • I bought "Pages" "Keynote" and "Numbers" Apps for my iPad and iPhone

    I bought "Pages" "Keynote" and "Numbers" Apps for my iPad and iPhone and now I have a new iMac but the Apps didn't install? I thought when you bought an App that is on one device it would be available on all other devices? The App store is now wantin

  • Default Environment layer ?

    Hey, does anyone know how I can specify which Environment layer gets new objects if/when they're created by Track->Create Multiple... ? I've played around with inserting and deleting layers, and I haven't yet found a reliable way to control where the

  • How to display another scene after button click

    In my Application, I've already create tool bar and menu bar at the top, a navigation panel on the left, and a working area in the center. I have an introduction page in opening my application, but I have a problem, when I click a new project button

  • LMS 3.2 discovery problem

    Hi I am doing a POC at one of the customer location for LMS 3.2 Now the problem i am fcaing is that when i have enabled the discovery based on CDP i am only able to discover two to 3 cisoc device only. The customer has around 75 cisco devices includi

  • Communication medium and communication method

    Hello, Please someone please explain to me the difference between a communication medium and a communication method... For example, the communication medium e- mail is the one that I choose in the channels tab on the marketing planner, how do the com