Accumulated or calculations of the CDA

Hello

I need to calculate calculation CDA on key primary-claim_id. I learned how I can do this, but in the case, I need to start earning 2 special S_ID folder. Not sure if this is possible. I really appreciate your time.

With the help of 10g and 11g
CLAIM_ID     S_ID     PAID     SERVICE_DATE
123     S001     12     1-Jan-2010
124     S002     14     2-Jan-2010
125     S001     80     3-May-2010
126     S003     -86     4-Jul-2010
127     S001     54     1-Aug-2010
128     S001     45     2-Sep-2010
129     S002     87     3-Sep-2010
130     S001     89     4-Sep-2010
131     S003     55     1-Nov-2010
132     S004     56     2-Dec-2010
133     S003     52     3-Dec-2010
Desired output:
CLAIM_ID     S_ID     YTD_PAID
123     S001     0
125     S001     12
127     S001     92
128     S001     146
130     S001     191
124     S002     0
129     S002     14
126     S003     0
131     S003     -86
133     S003     -31
132     S004     21

Hello

You want the total accumulated from the 2nd line?
If 2nd paid = 80, then the total of cuulative (from the 2nd row) is 80 at this time here, but you said you wanted 12. This isn't the cumulative total from the 2nd row; It is the cumulative total, not counting the current line.

It looks like you want:

SELECT    claim_id
,       s_id
,       SUM (paid) OVER ( PARTITION BY  s_id
                              ,                  TRUNC (service_date, 'YEAR')
                              ORDER BY         service_date
                 ) - NVL (paid, 0)          AS ytd_paid
ORDER BY  claim_id
,            service_date
;

I find it easier to code than the equivalent meanings:

SELECT    claim_id
,       s_id
,       SUM (paid) OVER ( PARTITION BY  s_id
                              ,                  TRUNC (service_date, 'YEAR')
                              ORDER BY         service_date
                   ROWS BETWEEN  UNBOUNDED PRECEDING
                         AND       1          PRECEDING
                 )          AS ytd_paid
ORDER BY  claim_id
,            service_date
;

If paid cannot be NULL, so you can use paid instead of NVL (paid, 0).

If you wish to post CREATE TABLE and INSERT instructions for the sample data, and then I could test this.

Tags: Database

Similar Questions

  • Calculation of the CDA

    Hi guys,.

    I have a requirement with Oracle Reports to develop pay check the legislation we...

    did with the income and calculate inferences...

    Could you please tell me how the amount of the CDA must be calculated for all items.

    A method other than the calculation... Could achieve us through base of DB tables.

    Any help is appreciated.

    Thanks in advance

    Hi, Swat,

    I'm afraid there is no easy way.

    You must call the function of package which relates to the combination balance & dimension.

    An example:

    1. download the defined_balance_Id

    Select defined_balance_id

    from PDB pay_defined_balances

    pay_balance_types pbt

    pay_balance_dimensions pbd

    where pbt.balance_name = 'gross Remuneration.

    and (pbt.legislation_code = "GB" or pbt.business_group_id = 82)

    and pbd.database_item_suffix as '_ASG_YTD '.

    and pbd.legislation_code = 'Go '.

    and pdb.balance_type_id = pbt.balance_type_id

    and pdb.balance_dimension_id = pbd.balance_dimension_id;

    2. download the Assignment_Action_Id

    SELECT MAX (paa2.assignment_action_id)

    OF pay_payroll_actions MRVR2

    pay_assignment_actions paa2

    per_all_assignments_f paaf2

    per_all_people_f women's wear

    WHERE ppa2.payroll_action_id = paa2.payroll_action_id

    AND paaf2.person_id = papf.person_id

    AND ppa2.effective_date BETWEEN paaf2.effective_start_date AND paaf2.effective_end_date

    AND ppa2.effective_date BETWEEN papf.effective_start_date AND papf.effective_end_date

    AND paaf2.assignment_id = paa2.assignment_id

    AND ppa2.action_type IN ('Q', 'R', 'B')

    AND papf.full_name like ' Ben % Vigneswar %.

    AND ppa2.effective_date BETWEEN to_date('1-JAN-2013') AND to_date('31-DEC-2013');

    3. get the value of the balance

    Select pay_balance_pkg.get_value (p_defined_balance_id =>

    p_assignment_action_id-online ) twice;

    Make sure that you change the values accordingly.

    If the dimension of balance uses tax_unit_id (GRE) or any other context, then you would use another function overloaded with the package pay_balance_pkg.

    See you soon,.

    Vignesh

  • Calculations of the CDA in Dataforms

    Hi all

    I use Hyperion Planning 11.1.1.1.0...

    I am facing difficulties in showing the values of the CDA in my dataform.


    Let me describe in detail the appearance of my data form...
    Dimensions and their members;

    On the dimension of the line I have accounts. +
    The column dimension I period (monthly)+.
    Scenarios (actual and budgeted)+.

    Now I need to present a YearTotal Budget and a real as well as monthly values CDA... +

    Can someone help me in what should be my approach to achieve this goal?

    Thanks in advance...

    Kind regards.

    Alicia

    Hello
    If you have enabled the dynamic time series in your application, YTD function will be available in the periods dimension member selection section. You can either periods of rise to the columns just as YTD (Aug) or the dynamicaly with a variable substitution such as YTD (& CurMonth).

    See you soon,.
    Alp

  • Cumulative / calculation of the CDA

    Hello

    I came across a situation where I have to calculate calculation CDA on primary. Not sure if this is possible. I really appreciate your time.
    CLAIM_ID     S_ID     PAID     SERVICE_DATE
    123     S001     12     1-Jan-2010
    124     S002     14     2-Jan-2010
    125     S001     80     3-May-2010
    126     S003     -86     4-Jul-2010
    127     S001     54     1-Aug-2010
    128     S001     45     2-Sep-2010
    129     S002     87     3-Sep-2010
    130     S001     89     4-Sep-2010
    131     S003     55     1-Nov-2010
    132     S004     56     2-Dec-2010
    133     S003     52     3-Dec-2010
    Desired output:
    CLAIM_ID     S_ID     YTD_PAID
    123     S001     12
    124     S002     14
    125     S001     92
    126     S003     -86
    127     S001     146
    128     S001     191
    129     S002     101
    130     S001     280
    131     S003     -31
    132     S004     56
    133     S003     21
    Published by: 788729 on April 26, 2011 11:27

    Like this...

    select t.*, sum(paid)over(partition by s_id order by claim_id) as YTD
    from t
    order by claim_id
    

    HTH

    Thank you...

  • CDA & QTD calculation using the calculation Script

    Hello

    I named 'Periodicity' in my Essbase database, which has 3 members under the name "BAT", 'QTD' & 'CDA' dimension.
    I'm figuring "CDA" & "QTD" and I wrote following script for the calculation of the "CDA":

    DIFFICULTY)
    @GENMBRS ("VFS planning Dimension entity", 6);
    @GENMBRS ("VFS planning Dimension entity", 7);
    & CurYear,
    @LEVMBRS ("P & L", 0);
    "Local."
    "CDA",.
    "HSP_InputValue,"
    @CHILDREN (the ' scenario Dimension'),
    @CHILDREN ("Dimension" version)
    )

    "Jan" ="BAT"-> "Jan";
    "Feb" ="BAT"-> @PTD("Jan":"Feb");
    'Mar ' =' BAT'-> @PTD("Jan":"Mar");
    "Apr" ="BAT"-> @PTD("Jan":"Apr");
    "May" ="BAT"-> @PTD("Jan":"May");
    "Jun" ="BAT"-> @PTD("Jan":"Jun");
    "Jul" ="BAT"-> @PTD("Jan":"Jul");
    "Aug" ="BAT"-> @PTD("Jan":"Aug");
    "Sep" ="BAT"-> @PTD("Jan":"Sep");
    "Oct" ="BAT"-> @PTD("Jan":"Oct");
    "Nov" ="BAT"-> @PTD("Jan":"Nov");
    "Dec" ="BAT"-> @PTD("Jan":"Dec");

    ENDFIX

    However, the above script gives me following error:

    [Error: 1200354 error compiling formula [Feb] (line 22): type [MEMBER] [number] ([@PTD]) in function]

    Please help me with this calculation "CDA" & "QTD.

    Thank you and best regards,

    AK

    Yep, I missed that...
    but you can get by using the @sumrange function.

    DIFFICULTY)
    @GENMBRS ("VFS planning Dimension entity", 6);
    @GENMBRS ("VFS planning Dimension entity", 7);
    & CurYear,
    @LEVMBRS("P&L",0),
    "Local."
    "HSP_InputValue,"
    @CHILDREN (the ' scenario Dimension'),
    @CHILDREN ("Dimension" version)
    )
    datacopy mtd to CDA.

    Fix (YTD)
    "Feb"=@sumrange(MTD,"Jan":"Feb");
    "Mar"=@sumrange(MTD,"Jan":"Mar");
    "Apr"=@sumrange(MTD,"Jan":"Apr");
    "May"=@sumrange(MTD,"Jan":"May");
    "Jun"=@sumrange(MTD,"Jan":"Jun");
    "Jul"="@sumrange(MTD,"Jan":"Jul");
    "Aug"=@sumrange(MTD,"Jan":"Aug");
    "Sep"=@sumrange(MTD,"Jan":"Sep");
    "Oct"=@sumrange(MTD,"Jan":"Oct");
    "Nov"=@sumrange(MTD,"Jan":"Nov");
    "Dec"=@sumrange(MTD,"Jan":"Dec");
    endfix
    endfix

    Alternatively, you can use as follows:

    DIFFICULTY)
    @GENMBRS ("VFS planning Dimension entity", 6);
    @GENMBRS ("VFS planning Dimension entity", 7);
    & CurYear,
    @LEVMBRS("P&L",0),
    "Local."
    "HSP_InputValue,"
    @CHILDREN (the ' scenario Dimension'),
    @CHILDREN ("Dimension" version)
    )
    datacopy mtd to CDA.

    Fix (YTD)
    "Feb" = Jan + Feb-> MTD;
    "Mar" = Feb + Mar-> MTD;
    "Apr" = MAR + APR-> MTD;
    "Peut" = APR + may-> MTD;
    "Jun" = May + June-> MTD;
    "Jul" = June + July-> MTD;
    "Aug" = July + August-> MTD;
    "Sep" = August + Ms-> MTD
    "Oct" = Ms + Oct-> MTD
    "Nov" = Oct + Nov-> MTD
    'Dec' = Nov + Dec-> MTD
    endfix
    endfix

    -Krish

    Published by: Krish on August 9, 2010 16:41

  • Issue of calculation of rules - CDA vs periodic problem

    Our application is defined as one year. In the rules file, I want to set up a somewhat simple calculation to multiply a tax rate times the net pre-tax profit for each legal entity. So, let's enter the tax rate in a basic account each period for each entity, quite simple. The system will have a value in a parent account for RNAI, pretty simple.

    I wouldn't have a problem if we were watching this CDA, that the rule would be written to simply take the RNAI times tax rate.

    Given that the tax rate should be applied to the periodic RNAI and the result of the calc is placed in a database (default application) ADC account, how this is possible via the rule? I guess it is farily common and simple, and I'm just not up to something.

    Can I set the values calculated in our application of CDA based as periodic? Things would still work properly?

    Thank you!

    I wouldn't change the parameters of the script for this. This setting has a much broader impact on your application. Instead, you can write a calculation as you wish:

    HS. Exp ' has #TaxAmount.W #Periodic = a #NIBT.» W #Periodic ".

    HFM will draw the correct values of the CDA.

    -Chris

  • Error with action on the part of the CDA of AW OLAP in OBIEE

    I have created an AW using AWM 11 g, OBIEE repository that uses it, and I'm unable to get a calculated including measure to display in OBIEE.

    I created a measure called YTD_SHR_REG_PROF, which is the share of Profit of the CDA for the region, and I have included this measure calculated in my SPR file, as well as sales, profit and several other measures, base and calculated.

    Other measures can be displayed in OBIEE. For example, by selecting a month and sales of associated business, YTD_Sales and Profit works very well. However, including my YTD_SHR_REG_PROF measure causes my Oracle database instance stop. Ouch!

    Here's the definition generated by the wizard of the measure:
    (SHARE (UNITS_CUBE. YTD_PROFIT OF THE CUSTOMER. CUSTOMER SERVICE LEVEL STANDARD. REGION)) * 100

    I select month, region, warehouse, Sales, YTD_Sales, Profit and YTD_SHR_REG_PROF in my request for answers. If I omit YTD_SHR_REG_PROF, it works very well. If I understand this measure, it stops my Oracle service.

    I captured the OBIEE SQL and executed in SQL Developer and got the same result, shown here:

    Error from the 1 in the command line:
    Select
    T902. MONTH_LONG_DESCRIPTION C1,
    T858. REGION_LONG_DESCRIPTION C2,
    T858. WAREHOUSE_LONG_DESCRIPTI as c3,
    sum (T930. Turnover) as c4.
    sum (T930. YTD_SALES) as c5.
    sum (T930. Benefit) as c6,.
    sum (T930. YTD_SHR_REG_PROF) as c7,.
    T902. MONTH_END_DATE as c8,
    T858. CUSTOMER_REGION_ID as c9,
    T858. CUSTOMER_WAREHOUSE_ID in c10,
    T902. TIME_MONTH_ID as c11
    Of
    TIME_CALENDAR_VIEW T902,
    T858 CUSTOMER_STANDARD_VIEW,
    UNITS_CUBE_VIEW T930
    where
    (T858. DIM_KEY = T930. CUSTOMER
    and
    T902. DIM_KEY = T930. TIME
    and
    T902. MONTH_LONG_DESCRIPTION = ' (APR-01').
    Group
    T858. CUSTOMER_REGION_ID,
    T858. CUSTOMER_WAREHOUSE_ID,
    T858. REGION_LONG_DESCRIPTION,
    T858. WAREHOUSE_LONG_DESCRIPTI,
    T902. MONTH_END_DATE,
    T902. MONTH_LONG_DESCRIPTION,
    T902. TIME_MONTH_ID
    order of c8, c2, c3

    Error in the command line: 1 column: 0
    Error report:
    SQL error: IO Exception: connection reset

    Moreover, the measure shows very well in AWM with data display. The values are correct, no problem at all.

    If someone from the OLAP team monitors this forum, could I ask you to try to recreate this issue? I use the Global schema.

    I will also post the question in the OBIEE forum, but since the bombs SQL in SQL Developer, I don't think it's a question of OBIEE.

    Thank you!

    Published by: Mark Thompson on December 29, 2008 10:54

    Hi Mark,

    Thanks for the model.

    I see exactly the same behavior on my local 11.1.0.7 instance. I found a mistake in a trace file associated with a background thread ("qerfxGCol:KQFDTTIM - LdiDateArray conversion error"), but I can't be 100% sure it's related.

    Oddly, I found that if I remove the group_by/sum of my request, he succeeded, and the result seems reasonable

    for example.

    Select
    T902. MONTH_LONG_DESCRIPTION C1,
    T858. REGION_LONG_DESCRIPTION C2,
    T858. WAREHOUSE_LONG_DESCRIPTI as c3,
    T930. SALES in c4,
    T930. YTD_SALES as c5,
    T930. Take ADVANTAGE as c6,
    T930. YTD_SHR_REG_PROF in c7,
    T902. MONTH_END_DATE as c8,
    T858. CUSTOMER_REGION_ID as c9,
    T858. CUSTOMER_WAREHOUSE_ID in c10,
    T902. TIME_MONTH_ID as c11
    Of
    TIME_CALENDAR_VIEW T902,
    T858 CUSTOMER_STANDARD_VIEW,
    UNITS_CUBE_VIEW T930
    where
    (T858. DIM_KEY = T930. CUSTOMER
    and
    T902. DIM_KEY = T930. TIME
    and
    T902. MONTH_LONG_DESCRIPTION = ' (APR-01').

    I can only assume at this stage that you've discovered a bug - it's a big problem for you? and if so, are you able to open an SR?

    Thank you

    Stuart Bunby

    OLAP blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW OTN: http://www.oracle.com/technology/products/bi/db/11g/index.html

  • calculation of the average value of the sorted data and polar route drawing

    Hello

    I did a VI that calculates the average value of the wind rotor/speed-ratio in the sections of 30 degrees (wind direction). He also called the polar plot of calculated data. Everything works, but I would like to make more detailed calculations and drawings, by increasing the resolution to 1 degree, or...

    Problem is VI, I did, is not easy on a large scale. At the moment, I have 12 parallel structures of switch-box to calculate the average value and build the array function to collect data calculated for Polar plot to draw the image in real time. I know it's probably the worst way to do it, but since I have done a few things with LV, it was the only way I managed to do what I wanted.

    Now, if I continue in same way to reach my goal, I have to create 360 Parallels switch-case structures... that are crazy.

    Something like the calculation of the average of the table or matrix (zero/empty values should not be calculated on average) inside the loop or similar way would probably be the best solution.

    So, polar plot drawing is not a problem, but creating a reasonalbe average metering system is. Any ideas?

    I would also like to rotare northward to the top (0 deg), and degrees of increase in a clockwise direction on polar ground dial plate (as on the compass).

    VI on the attachment. (simplified version of the complete system)

    I have signals:

    -Wind speed

    -wind direction

    -Rotor speed

    I want to:

    -calculate the average value of the speed of the wind / rotor - ratio in sections (5 degrees, 1 degree)

    -Draw a polar path of the wind rotor/speed-ratio of averages in propotion of wind direction

    I'm using LabView 2009

    Thank you very much.

    It is closer to what you're looking for?

  • Translate 'Weird' in the calculation of the capacity of MOSFET

    Hello world

    I have a problem with the result of the simulation to calculate N - CH Mosfet capacitance (Cgs, CGD and CBD).

    In this simulation, I tried to check my manual calculation with the result of Spice to 11.0 Multsim. But the result in Multism simulation is stopped different from the manual calculation or Pspice/Hspice simulation.

    Manual calculation:

    Multisim simulation:

    Definition of parameters in Multisim:

    . Multisim DC

    > DC of PSPICE

    It appears from these results that Pspice gave a value close to the theoretical calculation of the MOSFET here.  And I got the result in Multisim.

    Can someone help me solve this problem?... Multisim is not as powerful as other spices software? or simply, I messed up with the Multisim formatting settings and ended up with the wrong answer?

    According to me, you go always peripheral the capacitances output variables. These would be only the capabilities reported and identical to the DC - incorrect. We checked the code and capabilities used in the analysis are the right ones.

    To illustrate so, using variables real circuit - voltage and current, I calculated the impedance looking in the door to a range of 1 GHz (its a little non-trivial to demonstrate the impedance of specific capabilities because you can't get out easily aware of the capacity). The results are similar to PSpice.

    So to reiterate - the real circuit test results are not affected. For now, we ask that you do not watch the variable capacitance device because it is incorrect.

    Hope that helps.

  • Rapid calculation of the exponential decay constants

    Hi all

    I try to develop a routine that quickly calculates the exponential decay of a given waveform constant.  I use two different techniques, dealing with the calculation of the directions and another using corrects successive integration (LRS).  The two usually give the correct time for the input waveform even constant with a significant amount of noise.  The LRS solution is significantly less sensitive to noise (desirable), but much more slowly (DFT computations run the order of 10s of microseconds for a waveform pt 1000, while the LRS, such that it is coded in Labview, running at about 1.5 ms).  The LRS technique has been developed by researchers at the George Fox University in Oregon, and they claim that they could perform some computation time on the order of 200 US for both techniques.  I have been unable to reach this time with the LRS technique (obviously) and attempted to use a node of the library Call to call a dll compiled this code in C.  However, at best, I get a growth factor 2 in speed.  In addition, additional calculations using the dll seem to be additive - i.e. for four calculations similar running in the same structure with no dependence on each other, the total computation time is about 4 times that of one.  In my case, this is not enough because I try to calculate 8 x to 1kH.

    Looking through the discussion, I have been unable to determine if I should wait for a performance for C gain well written on Labview well written (most seem to ask why you want to do something external).  In any case, I join the code, then you can be the judge as to if it's well-written, or if there is no improvement in performance.  The main function is the Test analysis Methods.vi that generates a wave exponential scale, offset and noise and then the decay constant tau is calculated using the VI is Tau.vi.  In addition, I am attaching the C code as well as the dll for solving the equations of LRS.  They were coded in Labview 8.6 and the C has been encoded using the latest version of Visual C++ Express Edition from Microsoft.  Themain VI uses the FPGA VI module ' Tick count to determine the rate of computation in microseconds, so if you do not have this module you should remove this code.

    Any thoughts are appreciated.  Thanks, Matt

    Hi Matt,

    After changing the summation loop in your calculation of CWR, the routine runs as fast (or faster) than the variants of the DFT... Anyway: check the results to be sure it is still correct.

  • How do reinstall you the calculator in the start menu?

    original title: HOW to REINSTALL THE CALCULATOR ON YOUR COMPUTER at STARTUP PROGRAMSHOW you

    HOW DO REINSTALL YOU THE WINDOWS CALCULATOR IN THE MENU START IN ACCESSORIES?

    Go to: Add or remove programs, click Add/Remove Windows components, accessories and tools, click details, accessories, click details, and then put a checkmark in the calculator click OK, OK, then click.

    If there is already a check calculator uncheck, click OK, OK, then. Then go back and check, click OK, OK, then.

  • Impossible to import the .cda in Movie Maker: codec is not installed

    Original title: codec download

    Juliet E. Day: The file as e:\track01. CDA cannot be imported because the codec required to play the file is not installed on your computer. If you have already tried to download and install the codec, close and restart Windows Movie Maker, and then try to re-import the file. I need to know where to find the downloads for this

    The .cda file format is not supported by the windows Live movie maker. You need a third party application to operate. S.Sengupta Media Center MVP

  • What happens to the audio cd after the cda file are converted to mp3 format? Only the original cd remains unchanged?

    What happens to the audio cd after the cda file are converted to mp3 format? Only the original cd remains unchanged?

    She remains totally unchanged, regardless of how many times it is loaded in the computer.

  • How is the Score calculated to the Disqualification/OWS priority

    How is the Score calculated to the Disqualification/OWS priority?

    I tried to ask support and they directed me in the direction of this forum?

    The implementation guide did not help http://www.oracle.com/technetwork/middleware/ows/documentation/ows-impl-guide-2235293.pdf

    Thank you

    Karen

    Pretty simple (and support should have been able to say, sorry).

    An alert can have several connections. Normally because registration of a given client (name) matches a number of names of different aliases of the same person or entity.

    Each of these relationships has a priority score that is configured in the matching to the Disqualification rules. Whatever the rule of correspondence formed this relationship has a priority associated with score that indicates the power of this game.

    (Default), the score of the priority of the alert is set to be the highest score of any relationship in the alert priority; in other words, the score of the game stronger.

    Mike

  • Magazines reporter in the coming months in the CDA application

    Hi all

    I wonder if it is possible not to download a worksheet for each month for the purpose of the CDA.

    Openings and closures are generated by rules, periodic movements are downloaded as new journals.

    Is there a way to prevent the repetition of the preceding months adjustments? An option? A rule?

    Thank you in advance for advice.

    Kind regards

    Alice

    Hi Alice,.

    You bet.  Indeed, you could add a new Member or members of a custom dimension and carry it forward through rules.  An example of this situation would be historic USD overrides.  In this case, you would put just in the journal with the desired balance of USD and he would carry forward until what needed.  This is commonly done with a few new members in the dimension of the Audit/DataType... a member member of adj_input, one would be the adj_calc Member who gets deferred through rules and then there will be an adj_tot as a parent member.

    Thank you

    Erich

Maybe you are looking for

  • iOS 9.3 released

    Just look at the Apple Town Hall event and they announced that iOS 9.3 is available for download today. However, when I try to get I says I'm up-to-date with iOS 9.2.1. Someone knows what Apple means by "today"? Edit: I even tried to re-boot of my iP

  • Hp18All-OnePc: my computer freezes when it restarts

    Hello. My problem is that I installed 10 Windows to restart the computer freezes and the only solution I found is to unplug and re - connect. any help? Hello. My problem is that I installed Windows to restart the computer 10 crashes and the only Sulu

  • Reading of data of Agilent 34401

    I read the voltage measured on a 34401 Agilent using measurment single Point in a loop For (so that I can graph results in real time). The only problem I'm having is that when I try to write data to a file, it is not written on two columns (literatio

  • How can I make an invisible control?

    I asked where the front panel is black, most of the controls are invisible.  The task is a task 'by pushing the button' - a button on the screen, and the subject is tap it (if it is green) or press no (if it is red).  I would like to place an 'invisi

  • OfficeJet Pro 8630: Features ADF

    Hello! Since I was 2, I don't know what is the importance of the ADF. In other words, when and how to use the ADF. For example, what size and type of paper should I use? Is it ADF double sided capable. Can I use ADF to scan, copy, and send faxes? Ano