Help derived formula

Hi team,

I need assistance with forms (2).

My first ask is the following:

I have two hierarchies with some of the same members each according to level (I inserted the).

I need the formula run all Member in 1 prefix with CCV hierarchy, then go to 2 of hierarchy and return his grandparents pillar value (Core.Abbrev).

I already called formula Custom.GrandParent Just need help to navigate.

My second ask is the following:

Concate (propvalue (Core.ABBREV) with the propvalue (Custom.AccountName) of the CHILD if the child begins by AAA, if this is not the case, down 1 level more and use this value (Custom.AccountName).

Don't know how to go down a level (or 2).

Thank you!

Hello

For your first case create a property derived with this formula:

If)

And)

Equals (String, SUBSTRING (ABBREV (), 1, 3), CCV),

Equals (String, PropValue (Core.HierName),Hierarchy1)

),

HierNodePropValue (Hierarchy2, Abbrev(),Custom.GrandParent),

)

Assuming that your grandparent property is a property derived local containing the formula-

ParentPropValue (Core.Parent)



Second case-


NodePropValue (ListRelatedNodesWith (Descendants, Equals (String, SubString (PropValue (Core.Abbrev), 1, 3), AAA), yesterday, 1), Custom.AccountName)

Let know if thid worked for you

THANKS & Cheers

Denzz

Tags: Business Intelligence

Similar Questions

  • Help with formula Mdx ASO

    Can anyone help me please with the conversion. I want to convert the below formula member of ASo Member mdx formula.

    IF (@ISMBR (@IRDESCENDANTS ("AID3EF")))
    '895672' - '237674 ';
    ON THE OTHER
    #Missing;
    ENDIF

    TIA

    Published by: user13146947 on December 14, 2011 09:19

    Yes, you are right, is to be GOLD.

    Kind regards
    RSG

    Published by: RSG on December 14, 2011 11:27

  • SQL Help: Derive from 'News' columns based on condition

    Hi all

    Can someone help me with this please? I am trying to achieve in a SQL (no), if this can be done in two different stages, even that is fine too...

    Thanks in advance,
    Chavigny
    SELECT * FROM
    (
    SELECT 2765 BTCH_ID,'payroll' BTCH_NM,'payroll~EUR~EUR~DE'NEW_BTCH_NM,'1234'TMPLT_ID FROM DUAL
    UNION
    SELECT 2765,'payroll','payroll~USD~USD~US','1235' FROM DUAL
    UNION
    SELECT 2765,'payroll','payroll~USD~USD~US','1236' FROM DUAL
    UNION
    SELECT 2765,'payroll','payroll~GBP~GBP~GB','1237' FROM DUAL
    UNION
    SELECT 2766,'SALARY','SALARY~USD~USD~US','1238' FROM DUAL
    UNION
    SELECT 2766,'SALARY','SALARY~USD~USD~US','1239' FROM DUAL
    ) T_BATCH;
    For a "batch - id", there are several Transactions that are denoted by (cr_crncy_cd, dr_crncy_cd, recvr_cntry_cd), and the "NEW_BTCH_NM" column is basically a concatenation of 'BTCH_NM' + above 3 columns (with a ~)

    I'm trying to derive two new columns "SEQ" & "Output_Batch_name".

    The SEQ column:
    For every batch_id, the first row will be assigned by sequence.nextval.
        For all transactions within BTCH_ID, 
                       all the rows with same NEW_BTCH_NM, share the same sequence number
                        if different, then SEQ.nextval for all distinct rows
    Output_BTCH_NM:
       for a given batch_id, 
             if the NEW_BTCH_NM is the same for all transactions ( batch_id 2766 in the below example) ,  
                             then Output_BTCH_NM = BTCH_NM should be marked for All transactions which belong to this Batch_id,
            Else 
                Output_BTCH_NM = New_BTCH_NM
         END if
    EXPECTED RESULTS
    *BTCH_ID     BTCH_NM             NEW_BTCH_NM          TMPLT_ID     SEQ         Output_BTCH_NM*
    2765       payroll                payroll~EUR~EUR~DE     1234         1          payroll~EUR~EUR~DE
    2765       payroll                payroll~GBP~GBP~GB     1237         2          payroll~GBP~GBP~GB
    2765       payroll                payroll~USD~USD~US     1235         3          payroll~USD~USD~US
    2765       payroll                payroll~USD~USD~US     1236         3          payroll~USD~USD~US
    
    2766       SALARY                SALARY~USD~USD~US     1238         4          SALARY
    2766       SALARY                SALARY~USD~USD~US     1239         4          SALARY
    Published by: user10711957 on 25 Sep, 2010 16:37

    An extension of the solution of the (slightly modified) jiq

    function my_sequence(whichval in varchar2) return number is
    begin
      if whichval = 'currval' then
        return your_sequence.currval;
      else
        return your_sequence.nextval;
      end if;
    end my_sequence;
    
    WITH t AS
    (
    SELECT 2765 BTCH_ID,'payroll' BTCH_NM,'payroll~EUR~EUR~DE'NEW_BTCH_NM,'1234'TMPLT_ID FROM DUAL
    UNION
    SELECT 2765,'payroll','payroll~USD~USD~US','1235' FROM DUAL
    UNION
    SELECT 2765,'payroll','payroll~USD~USD~US','1236' FROM DUAL
    UNION
    SELECT 2765,'payroll','payroll~GBP~GBP~GB','1237' FROM DUAL
    UNION
    SELECT 2766,'SALARY','SALARY~USD~USD~US','1238' FROM DUAL
    UNION
    SELECT 2766,'SALARY','SALARY~USD~USD~US','1239' FROM DUAL
    )
    select btch_id,btch_nm,new_btch_nm,tmplt_id,
           case when lag(seq,1) over (order by tmplt_id) = seq
                then my_sequence('currval')
                else my_sequence('nextval')
           end seq,
           out_btch_nm
    select btch_id,btch_nm,new_btch_nm,tmplt_id,
           dense_rank() over(partition by btch_id order by new_btch_nm) seq
           case when count(distinct new_btch_nm) over (partition by btch_id) = 1
                then btch_nm
                else new_btch_nm
           end out_btch_nm
      from t
    

    Concerning

    Etbin

    Posted before you see the following

    the sequence # must be continuous, must avoid any shortfall or gaps with the numbering.

    the foregoing must be the only user of its own sequence somehow and maybe...
    Search for "sequence free gap"... http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:4343369880986
    Edited by: Etbin on 26.9.2010 08:21

  • Help derivatives (probably my ignorance)

    I take the derivative of a curve of time of position to get the speed. This works except the first and the last point vertically shot excessively. This is probably where my ignorance of not being in a classroom of calculation in a while. I guess it has something to do with how the functions derived from VI.

    I've attached an example graph to show what he does.

    You have a very large DC offset in the data.  Average about 5.7 with variations less than 0.1.  Subtract the average before you take the derivative.

    The top graph is derived from (signal - average). Chart at the bottom is the signal.

    Lynn

  • BSO to the conversion of the ASO - helps the formula of Member

    We have a BSO cube and it is converted to ASO. The account dimension has the attribute SOLDETEMPS properties, and therefore the time dimension cannot assign to either dynamic or multiple hierarchies because of which I'm not able to define formulas for Member in the time dimension to ASO, this requires the dimension to be either dynamic or more hierarchies to have member formulas. MDX scripts is the way to go I'm not very familiar with the scripts, MDX and its use. Please advise and also I would like to know if there is another way to solve this problem.

    do not use the properties of balance.

    You will need to take the time to be dynamic, created shared hierarchy similar to

    FOR A YEAR
    Jan shared
    Feb shared
    ......

    Then mark up your TB accounts with udas as TBFirst, TBLast, TBAverage.

    You have two options where you can join the MDX formula of time CDA/QTD or attach the MDX formulas to members of the account saying IIF YTD then make first/last/moy.

    You can choose between the two, if you have less number of accounts of TB, so I would say that set the formula to members as well as other members can obtain the value of CDA Member rolls.

    Concerning

    Celvin

    http://www.orahyplabs.com

    Please check the answers as useful/correct as appropriate

  • Need help subtraction formula.

    Hey aboard.

    I have a form with some math on it and everything was fine until I had to do the subtraction between two

    two fields; to my surprise, Acrobat 9 Pro will add, multiply, and a few other things but

    you won't not subject. Strange.

    In any case, I found a formula on the net to use the custom calculation script (I guess it's Java)

    calculate function in the tab - nice and good, the formula works, BUT does no rounding. For example

    instead of giving me the right amount of 112,87 it gives me 112.8766554433221; that is, it will forever.

    So, how can I get my formula to round cents to two numbers?

    Event.Value = this.getField('QPBGrand').value - this.getField('BravGrand').value;


    See you soon,.

    PCA.

    The calculation is simple in JavaScript. Here is an example of what has been proposed:

    // Custom calculate script
    (function () {
    
        // Get the field values, as numbers
        var v1 = +getField("QPBGrand").value;
        var v2 = +getfield("BravGrand").value;
    
        // Perform the caluclation
        var result = v1 - v2;
    
        // Set this field value, rounding the result to two decimal places
        event.value = util.printf("%.2f", result);
    
    })();
    

    More information on util.printf are available here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1252.html

  • Need help on formula

    Hello

    Still looking for advice! What I'm hoping to do is, I want to be able to choose a plan from the drop menu and plan what I choose, it would put the amount in the cell to the right.

    Please notify

    Ron

    Hi Ron,

    I rework your table of choice and then use INDEX/MATCH.

    Quinn

  • DRM formula to generate a Parent; Need 2 round help

    Hello world

    TFDC and Denzz have been kind enough to help me solve one of my problems with the other day.  Here is some information.

    Hi people,

    I need business which is quite complex.  I'll try to explain it the best I can to please reach out if you need more details.

    Here is my mock up, I did:

    "

    The structure on the left is my current hierarchy.  The structure on the right, this is what I want the new Parent/child relationship to look like.  Now, you may ask why I don't make this new structure? The reason is the company is unwilling to add any additional hierarchies, so I have to use attributes to generate this outcome (export), which will be transferred to a target system.

    Things to consider:

    IND-members will NOT be included in this new structure

    All PFI-members shall a PFC-parent, as shown in the right structure. The parent of PFC is created prefixing 'PFC -' the first set of 5 numbers after the first '-' symbol in the PFI member. The string after the second '-' symbol in the PFC parent is set back 2 levels (the PFI member) and grabbing the chain after the first "-" symbol.

    So, basically, the members of the PFC will be at the same level as the current Independent members.

    Please let me know if this is even possible? If so, what attributes do I need? Thanks to you all! Looking forward to your answers! Evil begins to take a crack at it on my end.

    SOLUTION! :


    TFDC suggested the following syntax for a formula (Custom.TA) and it worked perfectly!


    If (Equals (String, SUBSTRING (ABBREV (), 1, 3), PFI), Concat (PFC, SUBSTRING (ABBREV (), 4, 7), SUBSTRING (ParentPropValue (Core.parent), 4, 100)), if (Equals (String, SUBSTRING (ABBREV (), 1, 3), IND), PropValue (Core.parent)))


    QUESTION:


    So it works perfectly, and I replaced this derived formula in for the "Parent Node" attribute in my export.


    Everything works, except for PFC was now generated in the above formula and then put under the Parent node, I'm unable to add an alias, as it does not lie in the name column:


    REQUIREMENT:

    Now I think I need to create a new derived 'name' property to take care of this, but I don't know where to start. Ideas or workarounds?  Thank you, everyone!

    The formula TA_Name is incorrect-

    Current

    If (and (Equals (String, SUBSTRING (ABBREV (), 1, 4), IND-), GreaterThan (PropValue (Core.Children), 0, Integer)), ListNodePropValues (ListChildren (), [comma],Custom.ParentTest), Abbrev())

    Should be

    If (and (Equals (String, SUBSTRING (ABBREV (), 1, 4), IND-), GreaterThan (PropValue (Core.Children), 0, Integer)), ListNodePropValues (ListChildren (), [comma],Custom.TA_Parent), Abbrev())

    Parent_Test was my property, you should have your property parent instead.

    Thank you

    Denzz

  • Numbers 3.6.1 list expressions or formulas.

    How can we view and/or print the list of expressions or formulas that have been used in a Numbers spreadsheet.

    It was very easy to iWorks 09.

    Numbers v3.6.1 Help menu: formulas and functions help.

    You can have Numbers ' 09 v2.3 in your Applications: iWork ' 09 file. Use it.

  • pulling a description field in a hierarchy based on an ID to a different hierarchy

    Hello

    I could use some help, I am a newbie of DRM and use it for the first time, picking up some old data for my company who have nobody to ask, and I am way over my head at the moment.

    I am shooting a description local property (testDescription) on a hierarchyA in a hierarchyB node node based on two different local properties that have the same value, call the testIDa to hierarchyA and testIDb for hierarchyB.

    I created a property called testPullDescription , with a derived formula that I hope to use the hierarchyB for this reason, the formula takes the 'empty' value now.

    HierNodePropValue (hierarchyA,testIDa,testDescription)

    Right now, when I look at hierarchyB, testPullDescription value is empty.

    I know it's fake because nowhere in the syntax can I specify testIDb to actually compare the two IDS, but I don't know enough about the DRM to know what is the right formula to get this working correctly?

    Thank you and best regards,

    Derek

    Hi Derek,.

    One of the challenges of DRM is keeping in mind when a local node attempts to access to a global node property and vice versa. Bugs will often result when not done properly. Rather than focus on forms of DRM, you should really start to pass to the Script, because they are more efficient, and that coding is easier to read and manage.

    TestPullDescription in order to become a property derived local, try to use the below in your script and see if it works for you:

    yesterday var is node. Version.HierByAbbrev ("hierarchyA");

    var / / desc = null;

    If (yesterday. NodeExist ("testIDa"))

    {

    Var NodeA is yesterday. NodeByAbbrev ("testIDa");

    DESC = nodeA.PropValue ("testDescription");

    }

    return of ESCR;

    Sonny

  • T-test in figures

    Hi I was just wondering if anyone knows of a formula or a way to make the T Test in figures?

    Thank you very much, Ryan

    Is what you are looking for?

    I found this, via the Help menu > formulas and functions help.  It is a good resource.

    SG

  • Calculation of frame rates of acquisition image using the 7 Format

    So I finally got my Basler firewire (IEE1394b) camera to capture images at his rate max (120 fps).

    But to do this, I need to use the '7' Format.... which is a bit confusing to me.  When I use the '7' Format, I can't specify the frame (frames per second) rate.  Apparently, you only specify the parameters (length, width, color / mono) of the image and the size of the packets and a few other things.

    So, how can I calculate speed?  I need to know exactly how much time elapses between each image.  And it must be constant.  I can't have a different frame rate.

    NEITHER told I can calculate the frame rate using this equation:

    That comes from this article.

    But I am skeptical because the article also says:

    Please note that the time to transfer an image is slightly faster than the time it takes to acquire an image.

    People out there can clarify this for me?  Is the frame rate constant?  And then I actually calculate when using size 7?

    The rate will be constant.  It won't change from image to image.  The difficult part is to find what it is.

    Basler camera manual will tell you how to calculate the frame rate.  There are three different calculations, and gives you the slower pace is one you use.  These calculations are accurate enough, I think.

    Another possibility is to measure the frame rate, but that requires several seconds (or minutes) for a measurement precise.  The simplest method is to start a life-long and save a frame in time at the beginning, wait several seconds (or minutes) and save the time of another framework.  Subtract the chassis numbers, subtract the time and divide to get the frame rate.  With a wait of several minutes, it's extremely accurate.  To get the acquisition time, read an image whose value "Next Image", then save the chassis number and read the msec timer immediately after reading.  Using a flat sequence structure is probably the best to ensure that everything happens in the desired order.  If you loop playback, you will see real cadence cadence converge slowly.  Stop it when it is pretty accurate.

    In a program I wrote, I controlled the pace by setting the shutter exposure time.  I used the derived formula of the Basler manual for cadence and reversed to calculate the shutter speed.  This only works if you have another way to adjust the brightness levels (opening, lighting, etc.).

    Bruce

  • PROPVALUE (inactive Core.Node) is not valid

    I am creation settings in a definition of the property and would like to capture idle core.node, but I get the error ' DRM-25623: property name not valid "Core.Node Inactive" found as a parameter to the function: varValeurProp (I also tried Core.NodeInactive with the same results). "  Someone know how I can get this value?  The goal is to have the definition of the property to be generated in one export so that users can filter by various properties (being inactive node a). I looked in the manual and the inactive nodes have no replacement, so ReplacementAbbrev/ReplacePropValue cannot be used.


    Hello

    Use this derived formula "PropValue (Core.Inactive).

    It gives fake it is true of other assets.

  • Repeat the value of the column derived from formulas

    I need to repeat a value derived for a particular combination of column and line to all the rows in the table. However when I put the 'case' function it does not repeat the values I want. The value is displayed only in the line of 1at

    The formulas used are the following

    CASE WHEN D_MILLS.MILL_NO = 1 THEN (F_MILL_PRODUCTION. FN_YTD_CPO_PRODUCED/F_MILL_PRODUCTION. FN_YTD_CROP_PROCESSED) ELSE (FILTER (F_MILL_PRODUCTION. FN_YTD_CPO_PRODUCED/F_MILL_PRODUCTION. WITH THE HELP OF FN_YTD_CROP_PROCESSED (D_MILLS.MILL_NO = 1.00))) END


    Note: No. Mill is the Dimension user for the report on the ground that I have. and I need the value of the derivative for mill = 1 to be repeated for all the other mills (mill No. = 2,3, etc.)

    Published by: Shaz01 on August 7, 2010 01:45

    Hello

    Use the formula like this,

    Max (CASE WHEN D_MILLS.MILL_NO = 1 THEN (F_MILL_PRODUCTION. FN_YTD_CPO_PRODUCED/F_MILL_PRODUCTION. FN_YTD_CROP_PROCESSED) ELSE (FILTER (F_MILL_PRODUCTION. FN_YTD_CPO_PRODUCED/F_MILL_PRODUCTION. (WITH THE HELP OF FN_YTD_CROP_PROCESSED (D_MILLS.MILL_NO = 1.00))) END)

    You must also, for all values don't indicate the value of factory No 1, so no need of instruction box.

    MAX (FILTER (F_MILL_PRODUCTION. FN_YTD_CPO_PRODUCED/F_MILL_PRODUCTION. WITH THE HELP OF FN_YTD_CROP_PROCESSED (D_MILLS.MILL_NO = 1.00)))

    Thank you
    Vino

  • Nested formula helps VLOOKUP/IF/AND/SUM?

    Hello

    I use 3.6.2 on an iMac numbers to make a spreadsheet of accounts for my partner who is independent and desperate self with its accounts.

    The worksheet aims so he could enter its revenues and expenses (and easily), then for the spreadsheet sort the data in the months/years, etc., which can then be calculated as profit/loss etc. As he was loose with his accounts and catch up, I thought it would be convenient and save countless piles of sorting on the floor of the reception hall! Formulas combos I've tried so far, however, do not work! So I was hoping someone with more knowledge could enlighten us.

    So far, I have created 3 main leaves, revenue, expenses and exercises (as pictured below).

    For each month in the year, I would like to that it search for "revenue" "Billing month" and "Year" then add UP the values in "amount paid".

    For example, for April 2015 - search ' April' AND ' 2015/16 ' SUM then all the "amount paid values" meets the criteria to end up with a monthly income total. I tried a range of formulas, but nothing seems to work properly, but I'm sure it's possible and logical, right? What do you think?

    The same thing that I hope for expenses. Research of the month & year (that I happen to be the same as the sheet of revenue) and total monthly SUM for the corresponding values. I could also fit the same formula for categories, to then make a table to see where spending will etc.

    I'm used to some basic formulas and can see the logical way to pursue this goal, but do not have the know-how to achieve this more complex formula! Hours in google didn't really help either! the syntax and exclamation error still appear somewhere!

    If anyone has any suggestions/advice form, they would be very appreciated! I am happy to share the final worksheet (if everything will work well) with any such freelancers / small businesses that have similar problems with soft accounting!

    Thank you very much

    Chloe

    Hi clrey,

    I would like to recommend SUMIFS() as your go to formula to obtain a total of say, "bindings" on April 16.

    Give it a try and after return with specific questions, if things do not work as expected.

    Quinn

Maybe you are looking for

  • Manufacturing possessed 6 s calls on its own...

    My iphone 6 s has been calling of numbers in my address book randomly and not hot. I installed everything at the time of the new update and I hope it helps anyone else having this problem? If so, is there a solution? The battery life seems also short

  • How to remove ads from disruptive?

    I think I got bugs in my iMac after that I connected my USB on my iMac and started deleting the old files, so I think that he has been infected. Because I have some annoying ads when I point my mouse over some of the links. It is the screenshot of th

  • Cannot get on Internet with computer Vista, getting 169 ip address

    We have a problem with Vista my boyfriend. He said that everything was working fine yesterday, and then we left for lunch. He thought that he turned off the computer, but when we came back he was and would not connect to the internet. We first though

  • NTLDR is missing when you try to clean install of Windows 7 Pro x 64

    I have an old newly reformatted hard drive HD in any new system, when you try to install Windows 7 Pro x 64 I get the message "NTLDR is missing Press Ctrl + Alt + Delete to restart» How past this to install the OS?

  • BlackBerry Smartphones to connect to the e-mail Blackberry devices folder

    Is it possible to connect to the mailbox to Blackberry 9000 with a laptop computer so that the computer plays a Visual display and the keyboard a bit as a dumb terminal.  I can't get used to the tiny keys and my eyes are not so good.  I know you can