MAX newbie confused on data configuration

I'm trying to get a handle on an existing application that was written before I was hired.
I have a test Fieldpoint rig setup about the same as the production unit. I am able to communicate with the Fieldpoint in MAX and query it with LabWindows/CVI.
If I go into MAX and change the data configuration range from 0 to 20 volts to -120 volts to 120 volts, the reading in MAX doesn't change. Also, the value I read in LabWindows/CVI doesn't change either. I am hitting the Apply button.
So is this range adjustment used anywhere, or is it just for documentation?
(Attached is a screen capture of the value I am changing)
Attachments:
MAX1.JPG ‏66 KB

Is your analog input within the ranges that you are defining?  Are you changing the analog input between configuration changes?  Let's say you are putting in 10V,  it's within range of 0--20V.  It's also within range of 0-120V.  So you should be able to read the value with either range.  Of course with the larger range, you will have a little worse accuracy and/or resolution.  If you were trying to read 30V, then you wouldn't be able to read it at all with the 0-20V range, but would be able to read it with the 0-120V range.

Similar Messages

  • Complete confusion over date timestamp functions

    hi all
    i am completely confused with date/timestamp in oracle as i m moving from mssql to oracle
    what i am trying to do is :
    i have a table called rawcdr
    which has a date field in which i imported data from MSSql
    IT CONTAINS date and time
    now i have another table called processedcdr in which i put my processed data
    only those records from rawcdr are selected which have calltime greater than the max calltime from processed table
    in srt
    something like
    select * from rawcdr where calltime>max(calltime) from processedcdr
    when i try doing it in my procedure it doesn match proper records
    instead gives improper results where records time is not what is expected
    please help me out
    i m stucked up

    hi
    Dmytro
    this is the schema of my tables
    rawcdr (srcip,callto, duration,calltime,....)
    sample data(202.1.1.1,00919869356549,50,01-JAN-05 3:00:00 AM)
    in this calltime is date field whereas rest are varchar
    testcdr(accid,country,cost,calltime...........)
    sample data (invoip001,india,.0015,01-JAN-05 2:50:00 AM)
    Now suppose this is the last record or the max calltime record in the processedcdr
    than i want the records greater than this time from rawcdr
    ie between 2:50 and 3:00
    for that i wrote a block
    declare
    lastcall varchar2;
    total number;
    begin
    select max(calltime) into lastcall from processedcdr;
    select count(*) from rawcdr into number where calltime>lastcall;
    end;
    i tried many combinations of to_char and date func but didnt get any result
    thanks 4 d help

  • Boot data configuration missing or with errors

    I have a Satelllite L870-15W, and no way to turn the system on.
    All it says is "Toshiba" (the welcome screen) and then (after having pressed f8 or f9):
    file: efi/micorsoft/boot/bcd,
    status 0x0000001;
    the boot configuration data for your or is missing or contains errors.
    I have only recovery partition at D: but cannot access it. What shall I do?

    Satellite L870-15W (PSKFNE-00700CHU) <- Hungarian version
    Spec here too.
    boot data configuration missing or with errors
    It probably means the BCD is missing or corrupt.
    To repair this, you need to access the recovery environment. Microsoft says Windows 8 will eventually take you there if it fails to boot many times. You can also get there using a System Repair Disc or a Windows 8 installation DVD like this downloadable one. You need the 64-bit disc.
    It's possble this will also work on your Toshiba machine. Restart the computer by pressing the power button and immediately start tapping the F12 key until the Boot Menu appears. Using the arrow keys, select <HDD Recovery>.
    WinRE looks like this. Select Troubleshoot and then Advanced options.
    Lots of things to try. See KB2622803 for boot sector problems. The article assumes Windows Vista/7. The same fixes look different in Windows 8, but are all available.
    If Automatic Repair (Startup Repair in 8.1) and System Restore fail, use the bootrec tool at the command prompt. This applies to Windows 8 also.
       Use the Bootrec.exe tool in the Windows Recovery Environment to troubleshoot and repair startup issu...
    Don't give up until you have tried replacing the BCD itself as follows. (Sometimes the partition is not named "c" and you need to try another letter.)
       c:
       cd boot
       attrib bcd -s -h -r
       ren c:\boot\bcd bcd.old
       bootrec /RebuildBcd
    -Jerry

  • Why can't Max Size of Post Data be increased?

    We need to do a CFFILE upload of 1 – 3 GB videos and are having troubles.
    (I know this is crazy, but FTP, network mapped drives, etc. aren’t going to leave an audit trail like an HTML form will for when people have to upload/update/delete bus incident videos.)
    I can't increase the Max size of post data to even 2048MB without people getting "500" errors who are trying to upload small gifs or pdfs.  If I move it above 2047MB, no one can upload anything.
    Our setup:
    CF Enterprise 8.0.1 with Hot Fix 2
    2 - Win Servers 2003 R2 Enterprise x64 using replication, load balancing, and MS virtual machine.
    CF is clustered so the Java class paths begin with
    C:/JRun4/servers/HSWSD0C1O/cfusion.ear/cfusion.war/WEB-INF/...
    CF Admin settings:
    Max size of post data = 2047MB
    Request throttle threshold = 4MB
    Request Throttle Memory = 3072MB
    Setting of 10 simultaneous requests.
    Restarted CF services after Hotfix 2 install.
    On the Application.cfm page I put
      applicationtimeout="#CreateTimeSpan(0,4,0,0)#"
    Basic code for uploading:
    <!--- upload file and get results --->
       <cffile action="upload"
          filefield="file"
          destination="#fileDirectory#"
          nameconflict="error"
          result="uploadResult">
    This code works for small files IF I don't raise the max size of post data above 2047MB, which means we'll never get those videos up.
    I've been fighting with this for weeks.  Any ideas?
    Thanks!

    First thought is that Web Servers can impose their own upload throttles.  You should check the documentation of your web server as well.
    Secondly
    I know this is crazy, but FTP, network mapped drives, etc. aren’t going
    to leave an audit trail like an HTML form will for when people have to
    upload/update/delete bus incident videos
    What wouldn't FTP leave an audit trail?  FTP communication can leave just as much, if not more, of an audit trail as HTTP communications.
    Network mapped drives, I'm not so sure about, but I imagine there are ways to audit these as well.  But then if you can use network mapped drives, you must be working with a well defined set of users all of which belong to a well defined network domain.
    P.S.  Also make sure that the max post size limits fit inside the overall limits of jvm memory.  Trying to upload a file larger then the memory it can fit in sounds like a likely source of problems.

  • Max function on a date field

    Hi,
    I would like to know if it's possible to do a Max function between two dates ?
    For instance I would like to do:
    Date Y = Max (created date + 4 days) and (Date X + 3 days)
    Thanks for your help,

    Thank you Dinesh for your fast reply.
    My request refer to a field management/WF.. So as you mentionned it's not possible in a standard way.
    But what kind of "other conditional statement" are you talking about?
    Regards,
    Vincent

  • Cellular data configuration on Iphone 5

    Hi,
    I would like to configure my cellular data configuration so I can start using 3G.
    Im with O2 carrier and live in UK.
    Does anybody know the exact settings ??
    Thanks

    O2 have a number of plans and each has different APN Settings. The details APN set is idata.o2.co.uk I think,  but if you are using a Pay Monthly Account then the APN is mobile.o2.co.uk. The iPhone has no way of knowing what plan you are so uses the default one.
    So what do you do?
    Go to http://www.unlockit.co.nz on your iPhone  - Choose  Country of United Kingdom  and Carrier of O2 (Pay Monthly) and it will install the Correct APN for your Plan. (or the hard way - download the Apple iPhone Configuration Utility, Install it, Work out how to run it, work out what settings you need to put in it and install it)

  • Internet data configuration for unlocked BB Curve 8310

    After much research I was directed to this site for help.
    I have an issue with BB 8310 Curve internet data configuration.
    I bought an unlocked BB Curve and I am  unable to access internet.
    I have an internet plan with my carrier; Consumer Cellular. I  have the settings that I received from them (they do not carry BB) that I can input manually; but have no clue how to do this. I tried to register, but was unsuccessful.
    Any help would be greatly appreciated!!
    Solved!
    Go to Solution.

    Blackberry's require a specific Blackberry Data Plan in order to function properly where the information is pushed from your service provider to the phone in the form of "Service Books". 
    Without those service books you will be unable to use the majority of features on your phone - and as you have said your carrier does not support Blackberrys then I would imagine they do not offer a Blackberry Data Plan. 
    Some more details on what you can and cannot do with a generic data plan can be found here. 
    http://www.blackberryfaq.com/index.php/What_do_I_need_a_Data_Plan_for%3F

  • Master Data Configuration

    I am looking for Master Data Configuration Step by Step guide.
    my contact info is asharkazmi at the rate of hotmail dot com
    Regards,
    Ashar

    Ashar, (and Abhishek)
    Please do not use e-mail addresses in this forum.  It means that the info will go only to you.  This deprives all of the other users the benefit of any answers.
    Master data does not have it's own configuration guide.  The way that your master data will be configured is totally dependent on the business scenario you are creating.  Most of the critical steps are contained in the configuration docs for the scenarios.
    Review the basic Materials Management configuration guide below.  It should get you started for a basic purchasing environment.  This version localized for Pakistan for the benefit of Ashar.
    http://help.sap.com/bp_bl603/BBLibrary/Documentation/104_BB_ConfigGuide_EN_PK.doc
    There are other documents for you to review that may also assist you in the BP guides.  http://help.sap.com/bp_bl603/BBLibrary/Content_Library_BL_EN_PK.HTM
    The important configuration for a vendor is the relationships between the vendor and the various organizational structures in your company(s).  For these relationships to be configured, you first need to know how your company(s) will be structured, as mentioned in the earlier posting.  For some hints, look in the above link under Enterprise structure and Enterprise structure extensions.
    Rgds,
    DB49

  • Unsupported Data Configuration

    Hi all,
     After I got my MSI GF4 Ti4400 I installed XP Home on one of my drives, (I have three) and since XP would not run  some of my games, I reformatted and reinstalled 98SE. I have my drive cloned on another drive for backup.
    Anyway, it might be coincidence, or it might be card related, but when I reboot, the first time I get an error message (Unsupported Data Configuration) and my system shuts off. Turning it back on, it will work fine,but every time I reboot, the first attempt fails and the second attempt works fine.
    Any clues ? Can this be BIOS related?
    System:
    Asus A7M266
    256 Mb Crucial DDR
    3 WD drives (13.6, 20, 60 Gb)
    MSI GeForce4  Ti 4400
    crappy onboard sound(will eventually get a Turtle Beach)
    XP 1800+
    Also, what are the best BIOS settings for this card?
    Thanks in advance! :P

    I'm not sure if the BIOS is at fault or if it's just some leftover from the XP installation,or if it's the card's configuration. I think since I formatted the drive, it should have wiped out all traces of XP, or does XP put crap on your other drives (not the one it's installed on)?
    I thought a fresh clean install would solve the problem, but it didn't. SE had no problems with it before. That's what makes me think it might be a small problem with the card.

  • Data Configuration in OWB

    Hi all, i'm newbies in Oracle Warehouse Builder.
    I need to trace data depedency from table target. If I wanna see the source table from the table target I should use lineage tools right.
    Know it's writen to be default configuration. So how that data comming from ? Just not knowing what is default configuration is.
    I just know if I using lineage there would be mapping that create that table target.
    Just anyone tell me what is default configuration in Lineage tools.
    Thanks,
    Regards
    George Felix

    Hi George,
    in owb you may have different configuration for different environments like test and production. You may set properties like parallel mode different for each configuration, i.e. for each environment. This influence is displayed in the lineage diagram. But configuration do not have any influence on the logic of the data flow!
    Even if you do not use different configurations, you have a least one: the DEFAULT_CONFIGURATION.
    If you do not know what configurations are you probably don't need them right now and you can just ignore the "default configuration" in the lineage diagram.
    Regards,
    Carsten.

  • Function (ABAP) to select Max of the avaliable dates

    Hi,
    Every Employee will have a health Insurance Policy which is valid for 6 six months.
    From Source System i am getting
    Employee and his policy Start date,Based on Policy Start Date in Transformations i am calculacting the Policy Expiry date (Policy Start date + 6 Months)(Ex:If Policy Start Date is 01/Nov/2007 then Exp date is 01/May/2008)
    My report is to Show employees who doesn't had a valid policy on the day report executed (Sys Date)
    For that i created a Customer Exit Variable on Policy Expiry Date
    (If Policy Expiry date is < Sys Date)
    IF i_step = 2.
    CLEAR l_s_range.
    l_s_range-low = sy-datum.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'LT'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    Problem:
    Data in the cube
    Employee--Policy Start date-Policy Expiry Date
    1--01/01/2008-----30/06/2008
    1--01/07/2007-----31/12/2007
    1--01/01/2007-----30/06/2007
    When i execute the report i should expect the Emp 1 shouldn't be displayed as he had valid policy which is going to expir in June 2008....but the above exit is displaying the below 2 records
    Can i include any changes in the above exit that will select the Max Policy Expire date and then it will check with the Sys Date
    Please update me on how to proceed
    Thanks

    Hello,
    You can do this in couple of ways:
    (1) Select <..> from <Table> into Itab ORDER BY expiry_date. Then read internal table to know the validity.
    (2) Select <..> from <Table> into itab where expiry_date > SY-DATUM. You will get only unexpired records.
    Thanks,
    Venu

  • Foreign Trade Data configuration

    All,
    I have the following scenario/issue:
    1. Orders (OR) created for Argentina country (goods coming from US to Argentina, not intercompany) are getting the commodity code printed on the invoice which the business doesn't want to happen. Researching the problem I figured out the commodity code is somehow automatically added for each item during the delivery creation (I confirmed it's not being included manually).
    2. Orders (OR) created for Mexico country (goods coming from US to Mexico, not intercompany, same origin plant as the above scenario) are NOT getting the commidity code printed on the invoice which the business DOES want to happen. Researching the problem I figured out the commodity code IS NOT being added for each item during the delivery creation.
    A workaround is in place on the business as I noticed both can be done manually: include or exclude commodity code.
    However, I'm looking for some guidance on how to configure the system to STOP including the commodity code on the Delivery Document for Argentina and START including this code on the Delivery document for Mexico. What is happening actually is exactly the opposite but I couldn't figure out how the system is making it happen.
    Both Orders for Argentina and Mexico contain some similar items (material) which are coming from the same plan in the US. Verifying material master data I can see the material has the commodity code there. This is the code that is being brought to the delivery document for Argentina and somehow not being brought for Mexico.
    Please let me know if any additional info is required for you guys to help me. I'd appreciate if some guidance could be provided.
    Thanks!

    Hi,
    Check in Transaction code OVE1 (PATH SPRO -> sales and distribution ->foreign trade/customs->Basic data for Foreign trade ->Define commodity code/import code numbers by country) that the commodity codes are maintained for country Mexico.
    Make sure that for each code, the field additional info is filled appropirately like 1 -Export/Dispatch.
    If maintained for Mexico, then it should pull in the delivery document -> line item level export control tab. Based on the ship-to county, the commodity code is populated.
    Regarding printing the commodity code in invoice, why don't you add a logic in the ABAP program that prints the invoice?
    You can add the logic, that if the ship-to country is Argentina, dont print the commodity code and if the ship-to country is Mexico, then print the commodity code in the invoice.
    Hope this helps.
    Regards,

  • Foreign Trade Data Configuration (commodity code, legal categorization)

    All,
    I have the following scenario/issue:
    1. Orders (OR) created for Argentina country (goods coming from US to Argentina, not intercompany) are getting the commodity code printed on the invoice which the business doesn't want to happen. Researching the problem I figured out the commodity code is somehow automatically added for each item during the delivery creation (I confirmed it's not being included manually).
    2. Orders (OR) created for Mexico country (goods coming from US to Mexico, not intercompany, same origin plant as the above scenario) are NOT getting the commidity code printed on the invoice which the business DOES want to happen. Researching the problem I figured out the commodity code IS NOT being added for each item during the delivery creation.
    A workaround is in place on the business as I noticed both can be done manually: include or exclude commodity code.
    However, I'm looking for some guidance on how to configure the system to STOP including the commodity code on the Delivery Document for Argentina and START including this code on the Delivery document for Mexico. What is happening actually is exactly the opposite but I couldn't figure out how the system is making it happen.
    Both Orders for Argentina and Mexico contain some similar items (material) which are coming from the same plan in the US. Verifying material master data I can see the material has the commodity code there. This is the code that is being brought to the delivery document for Argentina and somehow not being brought for Mexico.
    Please let me know if any additional info is required for you guys to help me. I'd appreciate if some guidance could be provided.
    Thanks!

    you are talking about printing, but printing is often done with customized programs and forms, so I never trust what gets printed, it somehow like a magic show.
    First check the document in SAP. e.g. with VF03 the billing document. at item level is a tab called foreign trade, does this have the commodity code? in both of your cases?
    In my opinion it should, because the value is defaulting from the material master to the Sales order and from there to the billing document.
    If the number is finally shown on the print out or not, has pretty much to do with skills of the people who wrote the fuctional design spec and the skills of your SAPScripter.

  • Newbie question: Send data to printer from ABAP program

    Hello, I am a newbie.
    I do not use  SAPScript nor SmartForms.
    But I need to send a printer command stream from my ABAP to printer.
    Is it possible?
    How can this be possible? Please give me some guideline.
    I will reward you points. Promise.
    Thanks

    hi,
    u can send ur program details to printer using submit to sap-spool statement.
    SUBMIT TO SAP-SPOOL
    Basic form
    SUBMIT rep ... TO SAP-SPOOL.
    Extras:
    1.... DESTINATION dest         ... COPIES cop
            ... LIST NAME name
            ... LIST DATASET dsn
            ... COVER TEXT text
            ... LIST AUTHORITY auth
            ... IMMEDIATELY flag
            ... KEEP IN SPOOL flag
            ... NEW LIST IDENTIFICATION flag
            ... DATASET EXPIRATION days
            ... LINE-COUNT lin
            ... LINE-SIZE  col
            ... LAYOUT layout
            ... SAP COVER PAGE mode
            ... COVER PAGE flag
            ... RECEIVER rec
            ... DEPARTMENT dep
            ... ARCHIVE MODE armode
            ... ARCHIVE PARAMETERS arparams
            ... WITHOUT SPOOL DYNPRO
    2. ... SPOOL PARAMETERS params
             ... ARCHIVE PARAMETERS arparams
             ... WITHOUT SPOOL DYNPRO
    3. ... Further parameters (for passing variants)
            are described in the documentation for SUBMIT
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Missing print parameters with SUBMIT.
    Effect
    Calls the report rep with list output to the SAP spool database.
    Additions
    ... DESTINATION dest(output device)
    ... COPIES cop(number of copies)
    ... LIST NAME name(name of list)
    ... LIST DATASET dsn(name of spool dataset)
    ... COVER TEXT text(title of spool request)
    ... LIST AUTHORITY auth(authorization for display)
    ... IMMEDIATELY flag(print immediately ?)
    ... KEEP IN SPOOL flag(keep list after print ?)
    ... NEW LIST IDENTIFICATION flag(new spool request ?)
    ... DATASET EXPIRATION days(number of days list
    retained)
    ... LINE-COUNT lin ( lin lines per page)
    ... LINE-SIZE  col(col columns per line)
    ... LAYOUT layout(print format)
    ... SAP COVER PAGE mode(SAP cover sheet ?)
    ... COVER PAGE flag(selection cover sheet ?)
    ... RECEIVER rec(SAP user name of
    recipient)
    ... DEPARTMENT dep(name of department)
    ... ARCHIVE MODE armode(archiving mode)
    ... ARCHIVE PARAMETERS arparams(structure with archiving
    parameters)
    ... WITHOUT SPOOL DYNPRO(skip print control screen)
    With the parameters IMMEDIATELY, KEEP IN SPOOL, NEW LIST IDENTIFICATION and COVER TEXT, flag must be a literal or character field with the length 1. If flag is blank, the parameter is switched off, but any other character switches the parameter on. You can also omit any of the sub-options of PRINT ON. mode with SAP COVER PAGE can accept the values ' ', 'X' and 'D'. These values have the following meaning:
    ' ' : Do not output cover sheet
    'X' : Output cover sheet
    'D' : Cover sheet output according to printer setting
    armode with ARCHIVE MODE can accept the values '1', '2' and '3'. These values have the following meaning:
    '1' : Print only
    '2' : Archive only
    '3' : Print and archive
    arparams with ARCHIVE PARAMETERS must have the same structure as ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS.
    Effect
    Output is to the SAP spool database with the specified parameters. If you omit one of the parameters, the system uses a default value. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
    ... TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    You could use this option if all the spool parameters have already been set!
    Note
    When specifying the LINE-SIZE, you should not give any value > 132 because most printers cannot print wider lists.
    Addition 2
    ... SPOOL PARAMETERS params(structure with print
    parameters)
    ... ARCHIVE PARAMETERS arparams(Structure with archive
    parameters)
    ... WITHOUT SPOOL DYNPRO(skip print parameters
    screen)
    Effect
    Output is to the SAP spool database with the specified parameters. The print parameters are passed by the field string params which must have the structure of PRI_PARAMS. The field string can be filled and modified with the function module GET_PRINT_PARAMETERS. The specification arparams with ARCHIVE PARAMETERS must have the structure of ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
    ... WITHOUT SPOOL DYNPRO
    Example
    Without archiving
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Example
    With archiving
    DATA: PARAMS   LIKE PRI_PARAMS,
          ARPARAMS LIKE ARC_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION            = 'LT50'
                COPIES                 = COUNT
                LIST_NAME              = 'TEST'
                LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY            = 'X'
                RELEASE                = 'X'
                NEW_LIST_ID            = 'X'
                EXPIRATION             = DAYS
                LINE_SIZE              = 79
                LINE_COUNT             = 23
                LAYOUT                 = 'X_PAPER'
                SAP_COVER_PAGE         = 'X'
                COVER_PAGE             = 'X'
                RECEIVER               = 'SAP*'
                DEPARTMENT             = 'System'
                SAP_OBJECT             = 'RS'
                AR_OBJECT              = 'TEST'
                ARCHIVE_ID             = 'XX'
                ARCHIVE_INFO           = 'III'
                ARCHIVE_TEXT           = 'Description'
                NO_DIALOG              = ' '
      IMPORTING OUT_PARAMETERS         = PARAMS
                OUT_ARCHIVE_PARAMETERS = ARPARAMS
                VALID                  = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        ARCHIVE PARAMETERS ARPARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.

  • Need help regarding complex calculation using Max value and limiting data after Max date in MDX

    I am working on a bit complex calculated measure in SSAS cube script mode.
    Scenario /Data Set
    Date
    A
    B
    C
    A+B
    5/29/2014
    Null
    34
    Null
    34
    6/30/2014
    Null
    23
    45
    68
    7/15/2014
    25
    -25
    Null
    0
    8/20/2014
    -34
    Null
    Null
    -34
    9/30/2014
    25
    Null
    60
    25
    10/15/2014
    45
    -45
    Null
    0
    11/20/2014
    7
    8
    Null
    15
    a) Need to capture latest non-null value of Column C based on date
    with above example it should be 60 as of 9/30/2014
    b) Need to capture column A+B for all dates.
    c) Add values from column (A+B) only after latest date which is after 9/30/2014. 
    with above example it's last 2 rows and sum is 15
    d) Finally add value from step a and step c. which means the calc measure value should be = 75
    I need to perform all this logic in MDX. I was able to successfully get step a and b in separate calc measure, however i am not sure how to limit the scope based on certain date criteria. In this case it's, date> Max date(9/30/2014) . Also how should
    i add calculated members and regular members?
    I was able to get max value of C based on date and max date to limit the scope.
    CREATE MEMBER CURRENTCUBE.[Measures].[LatestC] AS
    TAIL( 
      NONEMPTY(
        [Date].[Date].CHILDREN*[Measures].[C]),1).ITEM(0) ,visible=1;
    CREATE MEMBER CURRENTCUBE.[Measures].[MaxDateofC] AS
    TAIL( 
      NONEMPTY(
        [Date].[Date].CHILDREN,[Measures].[C]),1).ITEM(0).MemberValue ,visible=1;
    Please help with Scope statement to limit the aggregation of A+B for dates > MaxDateofC? Also further how to add this aggregation value to LatestC calc measure?
    Thank You

    Hi Peddi,
    I gave TRUNC to both of the dates. But still the same issue. I think the problem is in returning the BolbDomain.
    return blobDomain;
    } catch (XDOException xdoe) {
    System.out.println("Exception in XDO :");
    throw new OAException("Exception in XDO : "+xdoe.getMessage());
    catch (SQLException sqle) {
    System.out.println("Exception in SQL :");
    throw new OAException("SQL Exception : "+sqle.getMessage());
    catch (OAException e) {
    System.out.println("Exception in OA :");
    throw new OAException("Unexpected Error :: " +e.getMessage());
    Thanks and Regards,
    Myvizhi

Maybe you are looking for