Scripts - How to define a different dimension

Hi,
I have  data for certain members called "concepto", these data is going to be stored in the dimension TIME but only for year. What i want to do is take this data by year and spread it to each month of the year. But also, the members of the dimension change.
1. Concepts:  MOD, GL, MP (3 members)
Stored for 2011
Stored also with the following dims:  Cliente: Dummy , Concepts: Cd (Parent of the 3 concepts) , Consumibles : Consumibles, Lob: Dummy, Metrica: X, Moneda: Dummy, OI: Dummy, Tiempo: 2011, Version: Esperado_2011, Vendedor: Dummy
2. Spreading the value for the months, calling the 3 concepts with a property (dist):
*XDIM_MEMBERSET TIEMPO=2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021
*WHEN CONCEPTO.DIST
*IS "Y"
*FOR %ANO%= %TIEMPO_SET%
*FOR %MES%= ENE,FEB,MAR,ABR,MAY,JUN,JUL,AGO,SEP,OCT,NOV,DIC
*REC(FACTOR=1, TIEMPO="%ANO%.%MES%")
*NEXT
*NEXT
*ENDWHEN
*COMMIT
So far, it works perfectly, but the destination for those dims is not the right one, I'd like to change 3 dims:
Lob: Servicios_out ,  Metrica: Importe,  Moneda: MXN.
3. How can I define this destination?  I have tried adding FOR (each dimension) along with the FOR statements (time) but it does not work.
Thanx in advance !!
Velázquez

Hi John,
It didnt worked.
I typed:
*XDIM_MEMBERSET TIEMPO=2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021
*WHEN CONCEPTOS.DIST
*IS "Y"
*FOR %ANO%= %TIEMPO_SET%
*FOR %MES%= ENE,FEB,MAR,ABR,MAY,JUN,JUL,AGO,SEP,OCT,NOV,DIC
*REC(FACTOR=1, TIEMPO="%ANO%.%MES%", Lob="Servicios_out", Metrica="importe", Moneda="mxn")
*NEXT
*NEXT
*ENDWHEN
*COMMIT
In order to store the data in the dimensions i want and the rest of them stay as the original, i.e. Version, etc.
It simply ignored this and stored everything in the wrong members for the dimensions.
Any other suggestion?
Velázquez

Similar Messages

  • How to define in different controls device and channels in a DAQmx function?

    Hi,
    I need to build a vi that permits the user to change the device of a DAQmx  acquisition system, although I don't want that the user modify the input channels. I`d like to know if it is possible to define in different controls device and channels.
    []´s
    Juliana

    Hello Juliana,
    What you would like to do is possible with some simple string manipulation.  First you will need a Device Name constant from the DAQmx >> Advanced >> DAQmx Constants & Property Nodes palette.  Right-click on the constant and turn it into a control.  Then, use a concatenate strings function to join the device name with the rest of the characters you need to define your input channels.  Wire the output of the concatenate strings VI to your DAQmx Create Channel VI.
    Let me know if you have any questions on this.
    Thanks,
    Laura

  • How to define a different Server for Firefox Sync

    I would like to define a server for sync-data other than the default Firefox- Server. What are the requirements for such a server?
    How is the setup?

    See:
    * http://tobyelliott.wordpress.com/2009/09/11/weave-minimal-server/
    * https://wiki.mozilla.org/Services/Sync

  • How to define Sparse/dense settings through MAXL script ?

    Hi,
    How to define Sparse/dense settings through MAXL script ?
    By default its taking all dimensions as sparse dimension type. I want to define sparse and dense through MAXLand automate everything.
    Please help me out or advice me work around.
    Thanks,
    Rajendra Prasad Gella.

    you cannot modify sparse/desne settings directly through MAXL.
    The only way you will be able to build/modify/remove dimensions/members through maxl is using rules files.
    So if you are building dimensions using rules files, for a new dimension you can specify dimension properties.
    in rules file options -> dimension build settings -> dimension definition -> Rules file -> dimensions.
    Here you can specify new dimensions and after specifying you can right click and edit properties where you can change various dimension level properties including sparse/dense settings.
    And you knw me well (Krishna from Hyd) and so you can call me on my mobile if you need more info.. lol :)
    - Krish

  • How to define namespace with one XSD using in two different DB-Locations ?

    I'm not clear,How to define namespace, targetnamespace, schemaLocation or NoNamespaceSchemaLocation
    when using one common schema.xsd-definition
    in two different database-locations for exchange xml-documents?
    when insert xml-document I've got an error ORA-30937
    do you have an good exsample ?
    thanks
    Norbert
    schema :
    <xs:schema
    xmlns="http://sourcehost.com/namespace"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:oraxdb="http://xmlns.oracle.com/xdb"
    targetNamespace="http://sourcehost.com/namespace"
    xml-document :
    xmlns="http://Sourcehost.com/namespace"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:SchemaLocation="http://sourcehost.com/namespace http://desthost:8080/sys/schemas/PUBLIC/ADRESSEN.XSD">
    SQL> insert into ADRESSEN values
    (XMLType
    (bfilename ( 'XMLIMPORT_DIR', 'adressen.xml')
    , 0 )
    --> error :
    ORA-30937: No Schemadefinition for "SchemaLocation" (Namespace "http://www.w3.org/2001/XMLSchema-instance") in übergeordnetem Knoten "/ADRESSEN"

    Norbert
    The schema location used to register the XML schema with XML DB does not need to be a valid URL for accessing the XML Schema
    I can use the same URL , for instance
    http://xmlns.example.scom/xsd/myXMLSchema.xsd
    on machines dbserver1, and dbserver2. The only reason some people choose to use the hostname / portnumber convention is that this makes it possible to validate the XML Instance documents against the copy of the XML schema stored in the XML DB repository using an external tool like XMLSpy without have to add entries to XMLSpy's OASIS catalog files.
    I am concerned about the message you are getting. That's not correct AFAICT but I'd need to see the complete XML Schema and Instance to be sure.

  • How to define default element in SAP-Script?

    Hi Guys,
    How to define default element in SAP-Script?
    Can you tell me to do this...is it possible in all the windows or only in main window?
    Regards,
    GURU

    Hi,
    Welcome to SDN
    You can't post ur questions in other's threads .Open a new thread.
    click on post new thread and open new thread.
    Regards

  • How to Watermark multiple images with different dimensions in Photoshop ?

    Is there any way that I can place a watermark on the right bottom of multiple images, no matter what dimension the images are? I have tried using Photoshop Scripts > image processor, but it works only for images of same dimension. I want to put watermark on multiple images of different dimensions. This is the output i got.
    For the first image the watermark got placed correctly, but for the second image watermark got distracted. As you can clearly see the dimensions are different. Please suggest me some solution.

    Open an image to watermark. We must have this open before we start recording an action or else it will keep opening this image and watermarking it over and over again.
    In Photoshop go to Windows >> Actions
    At the bottom of the Actions Palette you will see a little folder icon, click on it and create a new folder to hold you action in.
    Once you have a folder to hold your action we need to hit the Create New Action button (next to the new folder Icon we just used.)
    Give our new action a name and set a function key (if required.)
    If the record button is not already depressed which it should be by default, hit it now to start recording our action. (located near the folder icon again but this time to the left)
    Now that our action is recording go to File >> Place
    When the dialog box comes up navigate to your previously created watermark file.
    Hit the Place button
    Position the watermark as you would normally have it (default is dead center) and hit enter.
    Go to File >> Save as,navigate to where you want your watermarked images to finish up and hit save. DO NOT CHANGE THE FILE NAME if you do when you play the batch it will name all the files it saves the same over-writing each other.
    Close the image we just watermarked.
    when a save dialog comes up do not save the image.
    On the Actions Palette hit stop recording.
    Our Action is now recorded.
    To process an entire folder of images we go to File >> Automate >> Batch
    Select the folder in which your images are currently
    Select the folder you wish to save the watermarked copies too.
    Hit OK
    Photoshop is now watermarking all the Images in the selected folder for you.

  • How can you define a different homepage for a user?

    Hi
    I am fairly new to Application express, I have created an application but I would like to define a different homepage for a user when they login. Of course I can modifiy the PLSQL code:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    With a different page, however I would like to setup a different home page depending on the user that logs in - I tried setting up a conditional process specifying P_101_USERNAME but this did not work...any ideas on how this can be achieved?

    Hi
    Thank you for your response, I have created the function:
    create or replace function "GETDEFPAGE"
    (auser in VARCHAR2)
    return VARCHAR2
    is
    Defpage number;
    begin
    select DefaultPageNumber into Defpage from users_table where username='aUser';
    return Defpage;
    end;
    Can you please assist me on how I can call the function in the login process within the block:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    );

  • How to define variables in toad sql script editor - newbie

    I have just pull out the script of a Function and want to run it on toad SQL editor.
    I am little bit confused how to define the VARIABLEs here in toad SQL editor to run my script.
    SELECT
    NVL(SUM(debit), 0) - NVL(SUM(credit), 0)
    INTO l_accountBalance
    FROM
    GLP_VoucherMaster vm
    INNER JOIN GLP_VoucherDetail vd ON vm.GLP_VoucherMaster_ID = vd.GLP_VoucherMaster_ID
    INNER JOIN GLP_ChartOFAccounts coa ON vd.GLP_ChartOfAccounts_ID = coa.GLP_ChartOfAccounts_ID
    WHERE
    vm.isActive = 'Y' AND vd.isActive = 'Y'
    -- *** how to define variables in toad sql script editor ***
    AND vm.voucherDate < p_cDate
    AND coa.AccountCode LIKE p_accountCode || '%';
    Thanks
    w\

    Just prefix with a colon (:)
    SELECT   NVL (SUM (Debit), 0) - NVL (SUM (Credit), 0)
      INTO   L_accountbalance
      FROM           Glp_vouchermaster Vm
                 INNER JOIN
                     Glp_voucherdetail Vd
                 ON Vm.Glp_vouchermaster_id = Vd.Glp_vouchermaster_id
             INNER JOIN
                 Glp_chartofaccounts Coa
             ON Vd.Glp_chartofaccounts_id = Coa.Glp_chartofaccounts_id
    WHERE       Vm.Isactive = 'Y'
             AND Vd.Isactive = 'Y'
             AND Vm.Voucherdate < :P_cdate
             AND Coa.Accountcode LIKE :P_accountcode || '%';
    /:p

  • How to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header 20 for detail and 30 for footer

    how to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header ,20 for detail and 30 for footer.
    here is the sample file
    DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\            2013/09/25 01:19:08 BILLEND     
    DDWTYBILL13092502572 2000000212PRIVATE             PRIVATE             STY5572142     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731543                                           Suspect TB ?CA, (L) EMPIEEM                                           Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000312PRIVATE             PRIVATE             STY5572149     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731548                                           Empyema BPF                                                           Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.9                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000412PRIVATE             PRIVATE             STY5572351     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731584                                           Suspect TB ?EMPIEEM, ?CA                                              Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000512PRIVATE             PRIVATE             STY5572352     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731585                                           Suspect TB ?EMPIEEM, ?CA                                              Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000612MAJOR               MAJOR               STY5577530     010700         INV                              12ZTYG000009                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNS    ZOZI,S,SIYAMBONGA                                                                                                                 27-MAR-2010                              TYG       D3        DR MAHOMED                                                                                          5602181             113799662      TB731663                                           Lymphadenitis                                                         Ward D3                                           TYGERBERG HOSPITAL                                                                                  I88.9                                                       Z03.9                                                       H1 07-AUG-201307-AUG-201324-SEP-2013MEND     58.52
    DDWTYBILL13092502572 2000000712MAJOR               MAJOR               STY5577537     010700         INV                              12ZTYG000009                  06-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNS    DLAMINI,N,NTLANTLA                                                                                                                09-OCT-1976                              TYG       F1        DR WZESE                                                                                            5602181             135524676      TB731666                                           Suspect TB                                                            Ward F1                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                       H1 07-AUG-201314-AUG-201324-SEP-2013MEND     58.52
    DDWTYBILL13092502572 30003034120000003032END

    You can create an nXSD using Native Format Builder and use lookAhead attribute to read values at specific position and use that as the choice. You can find an example here
    http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994/nfb.htm#BGBBAJFD

  • Trying to use 2 different Dimension tables and make a hierarchy on some columns which are split into these dimensions .. how do I do that

    Trying to use 2 different Dimension tables and make a hierarchy on some columns which are split into these dimensions .. how do I do that

    If you need to make a hierarchy in an Attribute view you need to have all relevant fields/columns in the same Dimension table..

  • How to define different styles to different levels of hierarchical titles?

    With difficulty, I found how to define a style for hierarchical titles, i.e.:
    1. First level
    1.1. Second level
    1.1.1. Third level
    etc.
    But all levels will have the same character parameters (font, size, etc).
    What I would like is, e.g.:
    1. First level
    1.1. Second level
    1.1.1. Third level
    In MS Word, it is easy: you define a different style for each level. In Pages, I found no way to do this, and no clue in the user's manual.
    Is it possible (I guess it should be), and if so, how?
    Thanks
    Éric

    You need to use the Styles Drawer. Go to: View > Show Styles Drawer. To define a Style, highlight the formatted text then click the plus sign at the bottom of the styles drawer. To delete a style, secondary click on the style and choose Delete Style.

  • How to define script object for plug-in

    hi all,
    I'm new developer in InDesign Server.
    I'm having a look at the SnipRunner & BasicPersistInterface.
    In the file SnippetRunner.jsx:
    // get the SDKCodeSnippetRunner object
    var snippetRunner = app.sdkCodeSnippetRunnerObject;
    In the file BasisPersitInterface.jsx:
    app.basicpersistinterfacePreferences.bpiData = "default";
    if (app.basicpersistinterfacePreferences.bpiData != "default") {}
    really, I dont understand where & how to define the "sdkCodeSnippetRunnerObject" & "basicpersistinterfacePreferences" in the source code of plug-ins written in C/C++
    so anyone can help me on this?
    thanks

    This is a very basic question. F1 help on statement form will do.

  • How to use property of dimension to filter the 2nd dimension in Allocation?

    Hi experts,
    How do we use a property of one dimension to filter out the members of another dimension in allocation script engine?
    eg of two dimensions
    1.)Entity dimension - (entity dimension)
      memberset:                                        Channeltype (property)
                       Stores
                        Store1                           Boutique
                        Store2                           Kiosk
                        Store3                           Branch
                        Store4                           Concession
                        Store5                           Franchise
                      Nonstore
    2.)business Channel dimension - (user define)
       memberset:
                   Channeltype   
                       Boutique
                       Kiosk
                       Branch
                       Concession
                       Franchise
                       Nochannel
    in allocation code
    *runallocation
    *factor
    *dim entity                          what=Nonstore;                where=bas(Stores)
    *dim businesschannel        what=nochannel;             where= ? ;
    *endallocation
    The thing is that when the engine selected store 2 for entity it should select kiosk as its businesschannel.
    Please advise.
    Thanks as always,
    yajepe

    Hi,
    In this case, I believe, you should have the allocation within a for loop. But you should note that the performance might reduce.
    *FOR %VAR% = BAS(STORES)
       *RUNALLOCATION
       *FACTOR
       *DIM ENTITY WHAT = NONSTORE; WHERE = %VAR%
       *DIM BUSINESSCHANNEL WHAT = NOCHANNEL; WHERE = %VAR%.CHANNELTYPE
       *ENDALLOCATION
    *NEXT
    Hope this helps.

  • How to have multiple default dimension members

    Hi There
    I am using AS2008, when editing a role, under the dimension data tab, under advanced, you can define a default dimension member.
    However i need my default dimension member to be members, i have tried using a attribute set to true for many members and creating a hierarchy.
    But neither works, it seems to randomly pick one Key for a set of members and you cannot use a hierarchy to define members.
    How can i define multiple default members ? what i really want is all members except one.
    Thanx

    We're going to need some more details about exactly what you did because it really sounds like you're making a mistake. This extra attribute should work.
    The only situation I can think of where it might not work as intended is if your new attribute is a property of the state attribute... when you slice by the state attribute, it will override the default member on the new attribute.
    What are your attribute relationships in that dimension? What do you get when you run the following MDX queries?
    with
    member test1 as [Geography].[State].DefaultMember.UniqueName
    member test2 as [Geography].[NewAttribute].DefaultMember.UniqueName
    select {test1,test2} on 0
    from YourCube
    select {} on 0,
    [Geography].[NewAttribute].[NewAttribute].Members
    *[Geography].[State].[State].Members on 1
    from YourCube
    As for the calculated member [Geography].[State].[All].[West], you can add to that to the MDX script (the Calculations tab in the cube designer) and it will be available to all sessions.http://artisconsulting.com/Blog/GregGalloway

Maybe you are looking for

  • Problem: Adding support for non-english charachter sets in UCCX 8.0

    We have just moved from windows-based UCCX 7.0 to UCCX 8.0, the upgrade process went successfully so far, but for some reasons, Cisco Agents are experiencing problems displaying non-english charachter sets, everything was working fine prior to upgrad

  • ITunes Hung-Freezes Upon Opening

    Before I go into the specific problem, here is a brief history of what has gone down the last few months, just in case you see the problem there. November 07: System begins to systematically fail. Back everything up to an external hard drive, then re

  • Unicode conversion - ABAP.

    I am working in unicode conversion assignment. Please help me to resolve the issue. The data displayed in the report ( data from database it is displayed in english even though logon language is chinese ). Please tell me how to have those information

  • I have a windows 7 system and use Adobe Reader XI, 11.0.05  All my excel spreadsheet files have conv

    I have a windows 7 system and use Adobe Reader XI, 11.0.05  All my excel spreadsheet files have converted to Adobe files and I cannot access my excel spreadsheets.  I uninstalled Adobe and reinstalled the version all over, and I also downloaded a sec

  • Ipad mini very slow after ios7 update

    A) Since installing IOS7 on my Ipad Mini (which I purchased only in April) everything runs slow B) Facebook flashes and disappears and I have to relaunch the program C) When switching screens the animation is very choppy So what's the deal?  Were the