Need clarification on the calculation IF statement script

Hello guys,.


Usually in my other projects, I used IF statement while writing scripts of calculation by mentioning some members in the LHS and assigning certain values to this member on the RIGHT side. But rrecently in one of my projects, I came with a new typical script which involves the IF function.

Please find the script calc which is present in the system already below. Inviting you to give some idea on what it executes.

Consider that I have seven Dimensions called account, Time_Period, JOBS, management, Source, Centre, matrix.

DIFFICULTY ("no job, Apr)

Fix (@UDA ("Account", "allowance"))

DIFFICULTY (@RELATIVE ('A domestic', 0), @RELATIVE("Source A",0), @LEVMBRS("Centre A",0))

SET CREATENONMISSINGBLK

"Ratio" of the size of the matrix

(

IF ("BegBalance->" no branch "->" no Centre "->" input "of the size of the matrix == 1")

'Ratio'->' value Allocated ' account dimension;

ELSEIF ("BegBalance"-> "no branch"-> "No Centre"->"Input" == 2)

'Ratio'->'value UnAllocate' account dimension;

ELSEIF ("BegBalance"-> "no branch"-> "no Center"-> "Input" == 5)

'Ratio'->'value Midalloc' account dimension;

ENDIF;

ON THE OTHER

#Missing;

ENDIF;

)

Here in the above script, after the condition of the IF statement, they did not mention any LHS = 'Ratio'-> "value Allocated"; but directly affected 'Ratio '->' value Allocated '... This means it applies to anywhere in the cube?

Please explain.

It is attributed to "Ratio", because it is the Member that you opened a calco block for with:

"Ratio" (...)

Tags: Business Intelligence

Similar Questions

  • I need help on the matrix of action script 3.0

    I need help on the matrix of action script 3.0

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    to apply a matrix for mc mat oppose:

    var mat: Matrix = new Matrix;

    mat.a = Whatever;

    mat.b =

    mat.c =

    mat.d =

    mast. TX =

    mat.Ty =

    MC. Transform.Matrix = Matt;

  • Need clarification on the ANSI joins

    Hi all

    I need some clarification on the ANSI join I am building to avoid an error when I try to run the same in standard join.

    With standard join, I get the error ORA-01417: a table can be external joined as another table.

    Regular join condition:
    Select null
    Of
    land_event_device_fraud dealer update,-T1
    land_event_device_upgrade T2, - New Subscriber first Set
    syn_intg_event_device_state T3, - subscribed existing
    land_event_device_upgrade T4 - new Subscriber Second Set
    WHERE T1.event_id = T2.event_id (+) AND T1.rate_plan_id = T2.rate_plan_id (+)
    AND T1.event_id = T3.event_id (+) AND T1.rate_plan_id = T3.rate_plan_id (+)
    AND T4.event_id = T1.event_id (+) AND T4.event_id = T1.rate_plan_id (+)
    AND T4.event_id = T3.event_id (+) AND T4.event_id = T3.rate_plan_id (+);

    -Get the error ORA-01417.

    Replaced the join above with ANSI join

    SELECT NULL
    OF land_event_device_fraud t1
    LEFT OUTER JOIN t2 land_event_device_upgrade
    WE (t1.event_id = t2.event_id AND t1.rate_plan_id = t2.rate_plan_id)
    LEFT OUTER JOIN syn_intg_event_device_state t3
    WE (t1.event_id = t3.event_id AND t1.rate_plan_id = t3.rate_plan_id).
    land_event_device_upgrade t4
    LEFT OUTER JOIN land_event_device_fraud t5
    WE (t4.event_id = t5.event_id AND t4.rate_plan_id = t5.rate_plan_id)
    LEFT OUTER JOIN syn_intg_event_device_state t6
    WE (t4.event_id = t6.event_id AND t4.rate_plan_id = t6.rate_plan_id);


    I want to know if the ANSI join is goig work properly or it will give me any Cartesian production information.

    Appreciate your help here.

    Thank you
    MK.

    Hello

    Maldini says:
    Hi all

    I need some clarification on the ANSI join I am building to avoid an error when I try to run the same in standard join.

    With standard join, I get the error ORA-01417: a table can be external joined as another table.

    Regular join condition:
    Select null
    Of
    land_event_device_fraud dealer update,-T1
    land_event_device_upgrade T2, - New Subscriber first Set
    syn_intg_event_device_state T3, - subscribed existing
    land_event_device_upgrade T4 - new Subscriber Second Set
    WHERE T1.event_id = T2.event_id (+) AND T1.rate_plan_id = T2.rate_plan_id (+)
    AND T1.event_id = T3.event_id (+) AND T1.rate_plan_id = T3.rate_plan_id (+)
    AND T4.event_id = T1.event_id (+) AND T4.event_id = T1.rate_plan_id (+)
    AND T4.event_id = T3.event_id (+) AND T4.event_id = T3.rate_plan_id (+);

    -Get the error ORA-01417.

    Replaced the join above with ANSI join

    SELECT NULL
    OF land_event_device_fraud t1
    LEFT OUTER JOIN t2 land_event_device_upgrade
    WE (t1.event_id = t2.event_id AND t1.rate_plan_id = t2.rate_plan_id)
    LEFT OUTER JOIN syn_intg_event_device_state t3
    WE (t1.event_id = t3.event_id AND t1.rate_plan_id = t3.rate_plan_id).
    land_event_device_upgrade t4
    LEFT OUTER JOIN land_event_device_fraud t5
    WE (t4.event_id = t5.event_id AND t4.rate_plan_id = t5.rate_plan_id)
    LEFT OUTER JOIN syn_intg_event_device_state t6
    WE (t4.event_id = t6.event_id AND t4.rate_plan_id = t6.rate_plan_id);

    You mix ANSI joins and the old joints. It's very confusing. Use all of one type or the other.
    >

    I want to know if the ANSI join is goig work properly or it will give me any Cartesian production information.

    What happens when try you it? Is it produces the results you want?

    Whenever you have any questions, post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data. Explain how you get these results from these data.
    Always tell what version of oracle you are using.
    See the FAQ forum {message identifier: = 9360002}

    Why the SELECT clause includes only NULL? Is that going to serve as an EXISTS subquery? If so, why bother to make the outer joins, and why do you care if it is a Cartesian product? What is the query to go for?
    For the purposes of debugging, you can include something that you see in the SELECT clause.

  • Need help with the calculation on the invoice form

    I've never used Adobe Acrobat and know nothing about JavaScript.  I am creating a form of invoice.  I have it almost complete but can't do 2 things resolved.

    1. If a line on the invoice is not used, I need the amount column empty, not 0.00.

    2. I need to add 2 totals (parts and labor) and calculate the sales tax on the total of these 2 items.

    Everything I read is way over my head. I'm an accountant, not a programmer!

    Thank you

    # 1, you can configure a custom JavaScript validate it is simply:

    // Custom Validate JavaScript
    if (+event.value === 0) event.value = "";
    

    # 2, use the simplified notation next to the calculation field:

    Parts * work * 0.085

    Replace 0.085 with tax rate that you use

  • Need clarification on the explanation of size on a DVD

    Hi all

    I did a certain DVD so far with yet. Some are as short as 1 hour, some are as long as 2.5 hours. I continue to expect again to say "too video for the project"... but is not. I look at the menu "Generate" and he always says the same thing in 'disc info '.

    Here is a screenshot:

    Screen shot 2011-11-22 at 6.37.42 PM.png

    This project is of 2 hours 25 minutes. Is still somehow force on this 4 GB drive? Does this mean that certain quality will degrade? I bought a double disc burner layer thinking that soon I have to use it but so far I have burned projects that are big enough on my single layer.  Yet tell me when the project is too large for single layer?  Here is my system info:

    System: Mac OS X, version 10.6.8

    2.66 GHz Unknown processor

    Total physical memory: 8 GB

    Adobe still serial number: 976xxx

    Product version: 5.0.0.508

    First Media layer Version: -.

    Devices Blu - ray installed:

    None

    Installed DVD features:

    HL-DT-ST DVD - RW GA11N (Firmware KA19)

    Thank you guys!

    The answer will vary according to which challenge the material is (much higher than motion natures/low datarates needs movement), and the importance of quality is in your project.

    A rule of thumb is 2 hours is OK for a single layer, but some time at higher quality projects will be max on a disc single layer.

    And Yes, your 2 hours the project will be compressed to a high data rate (best quality) if still has two layers.

  • Need clarification for the code below:

    Hi all

    On the one hand of my requiremnet, I found a solution that worked as expected... But I was not able to understand the logic... Can someone explain me the below
    the syntax what exactly the meaning for the code below:


    Code:

    SELECT NULL
    Of apex_application_page_ir_cond cond
    WHERE cond.application_id = v ('APP_ID')
    AND cond.page_id = v ('APP_PAGE_ID')
    AND cond.condition_type = 'filter '.
    AND cond.condition_enabled = 'yes '.
    AND cond.report_id = (SELECT report_id
    Of apex_application_page_ir_rpt
    WHERE application_id = v('APP_ID')
    AND page_id = v ('APP_PAGE_ID')
    AND application_user = v ('APP_USER')
    AND report_type = 'SESSION '.
    AND TO_CHAR (session_id) = v('SESSION')
    AND report_name IS NULL))


    For your refernec, I am attaching the link too
    URL: Re: Interactive_Report with the search only bar



    Thank you
    David...

    David,

    Two things. First, it makes it much easier if you put '{code}' (without quotes) around your SQL when you publish:

    SELECT rowid "EDIT", attr_code,ATTR_ATCL_CODE "Atcl Code", attr_description, attr_atcl_code,
                    attr_abbreviation,
                    attr_include_short_desc "Include short desc",
                    attr_include_long_desc "Include long desc",
                    attr_attr_type "AttrType", rowid "DELETE"
               FROM t_new WHERE EXISTS (SELECT 1 FROM APEX_APPLICATION_PAGE_IR_COND WHERE APPLICATION_ID = :APP_ID AND PAGE_ID = :APP_PAGE_ID AND CONDITION_ENABLED = 'Yes'
    AND APPLICATION_USER = :APP_USER) ORDER BY attr_description;
    

    If the spacing still needs work, it is a little easier to read.

    Second, your query exists clause checks just a State on, without checking the condition type. Without checking, I guess either APEX creates at least an inner State, or that your IR has a default condition on it (other than a filter). Try to add the constraint condition_type to your where clause to see if that solves it.

    Also, I noticed that you don't have additional code to get the report_id. It should not be necessary, because there are currently only supported for an IR by page, but you asked what are the differences.

    -David

  • Need help with the calculation

    I need to calculate 3 numeric fields and have an 'A' in the 4th textField.

    example numericField1 = 40 = 40 numericField3 = 20 numericField2 and numericfield4 is the sum of 1, 2 and 3 If the total is 100 on numericfield4 =

    If this total is 100, the letter A is necessary for the value of TextField1

    I did it on compute - javascript

    If (numericField3 > 90 & & numericField3 < 100) {}

    (TextField4 = 'A');

    }

    Well something like that and work.

    What I need and I have no idea how do it, is to have a (letter) results more as if the sum is between 70 and 89 the letter B and is between 50 and 69 that the letter is C.

    but also if numerifield1 = 35, then even if the total is between 90 and 100 change of the letter b

    Here's why: NumericField1 is the COLOR. NumericField2 is the DEFAULT. NumericField3 corresponds to CHARACTER and NumericField4 in the total puntiation. If the puntuation is understood between 90 and 100 is a GRADE A product

    But if the puntuation is between 90 and 100, but the NumericField1 is = to 35, then the result is between 90 and 100 must be a letter B (grade B)

    I don't know if I did clearly. hope and hope someone can help me.

    Thank you

    I think I understand.

    Form1.Page1.Subform1.grade_::calculate - (JavaScript, client)

    If (!) (Form1.Page1.subform1.total_). RawValue == ' | Form1.Page1.Subform1.total_. IsNull)) {}

    n_ var = form1.page1.subform1.total_.rawValue;

    If (form1.page1.subform1.color_.rawValue == 35) {}

    this.rawValue = "B";

    }

    else {}

    If {(n_ > 89)

    this.rawValue = "A";

    }

    else {}

    If {(n_ > 69)

    this.rawValue = "B";

    }

    else {}

    If {(n_ > 49)

    this.rawValue = "C";

    }

    else {}

    this.rawValue = "";

    }

    }

    }

    }

    }

    Steve

  • Need Clarification on the casting in Java

    Here's the question,

    class {Alien
    String invade (short ships) {return 'a little' ;}}
    Invade the string (... brief ships) {return 'a lot' ;}}
    }
    {Defender class
    Public Shared Sub main (String [] args) {}
    System.out.println (new Alien (.invade) (7));
    }
    }

    The answer is the compilation fails because the 7 argument must be cast for short.

    Now my doubt is that more short is 16 bits in Java, 7 can be stored in a variable short, why do we need to cast?
    If someone can clarify it?

    5.3 reading here:

    http://Java.Sun.com/docs/books/JLS/second_edition/HTML/conversions.doc.html

    The above explains why the narrowing conversions do not apply when choosing a method to call (from possible overloads).
    What they don't say is why they do not have an exception for the literal arguments, like 7.
    I guess that's for simplicity and consistency.

  • Presario SR1400IL: need clarification in the motherboard for windows 7 Home basic system installation

    Dear support,

    We have a computer desk pc Compaq Celleron. Model No.Presario SR1400IL, Celeron 2.6 GHZ, 256 MB DDR RAM, 40 GB drive HARD, Motherborad MS - 6577, Version 4.1.This pc is having windows XP home operting system.

    We want to install windows 7 Home Basic Operating System.

    My question is that if this pc will support and install operating systems Windows 7 Home Basic Edition. We of the original licese of the Windows 7 operating system. We want to install Windows 7 Home basic System [operating system in Compqa Celleron computer.

    Please let me know that this pc will install and basic Windows 7 Home Edition support.

    Waiting for your reply at the earliest.

    Thanks in advance.

    Concerning

    Pradeep.

    It is not DDR3 or DDR2 even... it's the original DDR, just DDR PC2700 aka. PC3200 or DDR400 (same thing) also works

    One of the great debacle of recent years was when the industry was selling computers with 512 MB Vista. They have been slow and caused much of the poor reception for Vista. Windows 7 manages memory better than Vista and "work" on 512 megs, but there is nothing you want to try to use.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Disassemble the Slate2? I need to remove the drive solid state drive, is this possible?

    I get two tablets of Slate2 in a closed area, and when I leave, I turn SSDS for destruction. Is it possible to get out the discs? Otherwise I'll destroy the tablets that I would avoid.

    Sure.

    Instructions for disassembly with pictures are here.

    Instructions.

  • need clarification on the requirements for Adobe Acrobat Reader XI

    On the page, it says that these requirements are:

    Mac OS

    • Intel® processor
    • Mac OS X v10.6.4, v10.7.2 or v10.8
    • 1 GB of RAM
    • 350 MB of available disk space
    • screen resolution 1024 x 768
    • Safari 5.1 for Mac OS X 10.6.8 or v10.7.2; Safari for Mac OS X v10.8 5.2; Safari 6.0 for Mac OS X v10.7.4 or v10.8

    Now are these minimum specific condition, which would have been nice to have indicated on your site and it market with OS for example, 10.6.8 or what should I do if I never use Safari?

    I see you are using 10.6.8.  Unfortunately, it's now a non supported version of Mac OS X with the latest versions of Acrobat XI.

    11.0.11

    Support has dropped:

    • Mac OSX 10.6
    • Mac OS x 10.7
  • Need clarification on the export of an mxf with 8 audio channels Windows 7 first Pro CS 6.0.3

    I have read and followed the many discussions on this subject. I am grateful that the broadcaster has the patience to endure my test files. Yet once the broadcaster rejected my fifth test file, I am asking for help.

    I've set up a channel Master 8. Channel 1 is a frazzled left stereo mix. Channel 2 is a frazzled right stereo mix. Channel 7 is a copy of channel 1. Channel 8 is a copy of channel 2.

    The broadcaster said that there is no sound on channels 7 and 8, although I see these channels in my mixer as with audio. Posted you a screenshot of my setup of editing and mixing.

    Please tell me what I'm doing wrong. Thank you!

    Screenshot_1.PNG

    Bring your export in PP.  If you add to that a sequence and see audio 7 and 8, then the problem lies in the diffuser.  If you don't see not audio it, post back with a screenshot of your export settings.

  • Need Clarification on the deployment of customizations OFA

    Hi all

    I'm new to OAF and I have a question about the deployment of customizations in the OPS.

    The customizations are overwritten?

    If I make a change to the MyRequisitionsPG(for example), the MyRequisitionsPG.xml will contain the information together?

    As... Here is my scenario:

    I have a forum for production and two instances of development.

    The MyRequisitionsPG for the production and DEV1 are different.

    If I make changes to the DEV1 instance and deploy in my prod, how the page will look like? Will be my prod page crushed with all the other changes.

    MyRequisitionsPG (Prod) has a currency field.

    MyRequisitionsPG (DEV1) has date and currency fields.

    If I make changes to MyRequisitionsPG (DEV1) money on the ground and to deploy the Prod page, will be the date the field also comes in the prod?

    Thank you

    MyRequisitionsPG (DEV1) has date and currency fields.

    If I make changes to MyRequisitionsPG (DEV1) money on the ground and to deploy the Prod page, will be the date the field also comes in the prod?

    Yes, it will come to the Production instance as Dev1 page.xml is containing the date files and when you deploy that it will appear here.

    Thank you
    -Anil
    http://oracleanil.blogspot.com

  • Need help with the calculation of the inventory running

    Hi Team, 
    
    I have requirement below,
    
    _*Input*_
    
              
    Pck     TotInv     Qty 1     Qtry 2     Qty 3
    Pck 1     10000      0      0      0
    Pck 2     0     50     30     100
    
    _*ouput*_
    Pck     TotInv     Qty 1     Qtry 2     Qty 3
    Pck 1     10000     9950     9920     9820
    Pck 2     0     50     30     100
    
    The following logic is used
    Qty 1 for Pck 1 = Tot Inv - Qty 1 from PCK2 
    
    Qty 2 for Pck 1 = Qty 1 from PCK1 - Qty from PCK 2
    
    Qty 3 for Pck 1 = Qtry 2 for Pck 1 - Qty 3 from PCK 2
    
    Kindly assist me here, i hope i am clear in my explanation,
    
    Regards
    nic

    Right button correct Please push or useful.

    select *
    from t
    model
    dimension by(pck)
    measures(TotInv,Qty_1,Qty_2,Qty_3)
    (
    Qty_1['Pck 1']=TotInv['Pck 1']-Qty_1['Pck 2'],
    Qty_2['Pck 1']=Qty_1['Pck 1']-Qty_2['Pck 2'],
    Qty_3['Pck 1']=Qty_2['Pck 1']-Qty_3['Pck 2']);
    
  • Need help with custom calculation Script

    Hey everybody.  I'm using Acrobat X Pro and stumbling a bit on the syntax of the following equation.  I need to add the value of "Cell1" & "Cell2" then add the value of "Cell3.  However, the value of "Cell3" is entered by the user and specifies a percentage of the sum of "Cell1 &"Cell2".  For example: If the user enters "3" in "Cell3" I need the value returned at 3% of the sum of "Cell1" + "Cell2".  If the user enters "9" in "Cell3" I need the value returned for "Cell3" 9% of the sum of "Cell1 and Cell2" and the end result should be the sum of "Cell1 Cell2 + Cell3.  In more detail:

    If "Cell1" = "Cell2" $ 500 = $500 and "Cell3" = '3' then I need the returned value to be $1030,00.

    I hope this makes sense. Here's what I have so far, but alas, it does not work.  Any help would be GREATLY appreciated.

    Get the first value in the field, as a number

    var v1 = + getField("Cell1").value;

    Get the second field value, as a number

    var v2 = + getField("Cell2").value;

    Get the value of a field, a number transformation

    var v3 = + getField("Cell3"/100).value;

    Calculate and set the value of this field for the result

    Event.Value = v3 + (v1 + v2);

    Thank you

    Solan

    I have posted a reply, but realized that it wasn't what you wanted. There is some confusion about what you want for Cell3. A hand, you say that the user enter a vaule in the area, but them you say you want its calculated value based on what the user has entered and two other field values. It seems to me Cell3 should be the domain that the user enters the percentage, and the calculated field (Cell4) script could be:

    Get the first value in the field, as a number

    var v1 = + getField("Cell1").value;

    Get the second field value, as a number

    var v2 = + getField("Cell2").value;// get treatment field value, as a number

    Get the percentage

    var v3 = + getField("Cell3").value;

    Calculate and set the value of this field for the result

    Event.Value = (1 + v3 / 100) * (v1 + v2);

Maybe you are looking for