Creating a flag based formula for Dimension

Greetings everyone,
Hopefully this is simple answer.  I have two dimensions "A" and "B" and a measure "C", where "B" is many to one attribute of "A", I would like to create a Flag formula in context that can characterise if a certain attribue of "B" is within "A".
For example:
"A"                "B"        "C"                          "MY FLAG"
ABC              123           12.31                        Y
BCD              123           10.54                        Y
BCD              104         107.83                        Y
BCD              105           11.32                        Y
DCE               101           11.30                       N
DCE               102           11.54                       N
DCE               125           12.00                       N
Pseudo Formula "MY FLAG" = If  ("B" InList ("104";"123")  In "A") "Y";"N")  - however this formula creates "#multivalue" error. 
Would like to use this flag as global indicator for other tables/ reports. 
Regards,
Damian

What if  you try using a max or min function in your formula?
= Max(  If  (<b> InList ("104";"123")  In [A]) "Y";"N")  )  
Does it show the rigth results?

Similar Messages

  • How to create a running total formula for different calendar years

    Hello everyone,
    I am looking for some help in creating a running total formula for different calendar years in Oracle. This is what I currently have organized in the crosstab report: vertically I have the cities from our database organized, then horizontially have the following information for each city:
    2006 /2007 /2008
    Amount /Amount Spent /Unspent Amount Amount Recieved/Amount Spent /Unspent Amount Amount Recieved/Amount Spent/Unspent Amount
    Recieved
    I am trying to create a formula that will specify each calendar year. For example, I'd like to have a formula in 2007 which would total the: 2007= {2006 unspent amount + the unspent amount in 2007} and same for 2008= {2007 unspent amount + the unspent amount in 2008}. I hope this is clear, I have simplified the report into a basic interpretation of what i've been trying to accomplish.
    Would anybody know if this is possible and how to approach this?
    Really appreciate it! Thanks.
    Alex

    Hi,
    you can try and define a running total as a calculation in the crosstab as:
    sum(Unspent Amount) over (partition by city order by year)
    i find the crosstab format comfusing sometime since the aggregation is auto applied.
    I would start with a flat table and then "duplicate is as a cross tab"
    for your running total you can sort the data by the city,year and get it to 3 lines for each city, for example:
    city year Unspent Amount all other amount...
    X 2007 10
    X 2008 20
    X 2009 30
    Y 2007 5
    Y 2008 15
    Y 2009 25
    then you can use a funtion to calculate the amount :
    sum(Unspent Amount) over (partition by city order by year)
    this is the sql i used just to check it:
    SELECT city,year,"Unspent Amount"
    ,SUM("Unspent Amount") over (PARTITION BY city ORDER BY YEAR)
    FROM (
    SELECT 'X' city, 2007 YEAR, 10 "Unspent Amount" FROM dual UNION ALL
    SELECT 'X', 2008 ,20 FROM dual UNION ALL
    SELECT 'X', 2009 , 30 FROM dual UNION ALL
    SELECT 'Y', 2007 , 5 FROM dual UNION ALL
    SELECT 'Y', 2008 , 15 FROM dual UNION ALL
    SELECT 'Y', 2009 , 25 FROM dual
    Tamir

  • Create a UK based image for VMs

    Hello, 
    We are trying to install an application which requires a UK (en-GB) locale, however have not had much success in trying the default images, then converting them to UK regional settings (via group policy, copy settings..." function in Region and
    Languages or via the registry).
    Given we can't get the out-of-the-box images working, we have turned to creating the basic VM locally stating with UK settings, then uploading the image.
    We assume that once sysprep has been run and the image provisioned within Azure, the locale will be configured to US.  Based on this, we are trying to use unattended.xml to set everything to UK settings, so the machine never is configured to US at any
    stage.  On doing so, the provisioning eventually fails.  Reading around the subject, articles state to delete unattended.xml and other articles state that the unatteneded.xml can conflict.
    The question is: Can certain settings be placed in the unattended.xml and if so, can the regional settings be placed here (does anyone have a successful example file used in Azure)?
    If the unattended.xml can not be used to achieve this, can anyone suggest (ideally with detailed steps) how we can achieve a VM with UK based regional settings (not just a US one which we then try to update via registry or the "copy settings..."
    function in Region and Languages)?
    With thanks,
    Richard

    Hi Richard,
    Azure uses an unnatend.xml file as part of the deployment process for new VMs. Currently it is not possible to upload your own unnatend.xml file
    to choose roles, features of settings to be added during deployment.
    I recommend you to submit your requirement in the link below:
    http://feedback.azure.com/forums/34192--general-feedback
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Is it possible to create a compounding interest formula for years?

    Hi forum
    Am recent convert to numbers from Excel. Many built in formulas working fine. But,
    can't find an answer to the subject question or workable formula.
    Has anyone created a formula that reflects a long term stream of compounded interest? Or has it been established that this is beyond numbers capabilities?
    Is numbers formula help just using a different term or expression that does the compounding?
    Any help very much appreciated.
    Mcthomas

    Hi again Jerry and forum
    The FV formula seems to works fine for what it intends but as I understand it is limited for my needs.
    I can get the future value of an amount compounded at 6% over 20 years. I double checked the calculations using an online source.
    I need to show a 20 year compounding buildup year by year. A further complication is that each new annual balance is less a tax calculation.
    Have tried several variations using the FV function as the base but still no cigar.
    Any questions or help appreciated.
    Mcthomas

  • How to create function based index for TO_CHAR

    i need to create a function based index for the function to_char.when i tried ,i got an error,"only pure function can be indexed".what the error really means, help me in creating the index to reduce my query cost.

    It works fine on my database. version 9iR2
    create index IDX_TO_CHAR on emp(to_char(hiredate,'YYYY-MM-DD HH24:MI:SS'));
    explain plan for
    select hiredate from emp where to_char(hiredate,'YYYY-MM-DD HH24:MI:SS')='1981-05-01 00:00:00';
    | Id  | Operation                   |  Name        | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT            |              |     1 |     8 |     2  (50)|
    |   1 |  TABLE ACCESS BY INDEX ROWID| EMP          |     1 |     8 |     2  (50)|
    |*  2 |   INDEX RANGE SCAN          | IDX_TO_CHAR  |     1 |       |     2  (50)|
    Predicate Information (identified by operation id):
       2 - access(TO_CHAR("EMP"."HIREDATE",'YYYY-MM-DD HH24:MI:SS')='1981-05-01 00
                  :00:00')Yours seem like a tuning issue, so why not give us your sql and execution plan and so on.
    maybe there is other ways to tune your sql than creating a function based index?

  • Hierarchy based on one dimension.

    Hi,
    How to create a hierarchy based on one dimension. For example: we have table:
    Category
    Category_ID
    Parent_Category_ID
    I want to create hierarchy, which like as:
    Category_Level_1
    Category_Level_2
    Is it possible without create new alias of table for each level?
    Thanks

    Which version of BO are you using?
    Assuming that you are using BO XI R2 or above version.
    And Is your question - how to create custom hierarchies in Universe Designer..... for two different fields (columns) taken from a single database table?
    If so, yes you can create custom hierachy for above scenario. In Custom Hierarcies option: Add the Parent_Category_ID first and  below that add Category_ID.
    If you want to rename your hierarchy levels as Category_Level_1 & Category_Level_2, then rename their corresponding objects names in Clasess & Objects pane.
    - Anil

  • Is table necessry for dimension?

    Hi Everyone;
    Q:1 I am a student and facing a problem in dimension creation. My problem: it is necessry that i must create table before dimension creation ?
    Q:2 if i do not create dimension and i want to make a cube of these tables, office, accounts,employee, pay etc. i have to mension fk's of these tables in fact table. when i go to owb console and create a cube it does not show my created tables. it just ask for dimensions but i dont have any dimension so what to do?
    Q3: What is dimension modeling
    Please guide me, i,l be thankful to you for this kind

    Q3 :
    Please refer to
    www.rkimball.com (good one)
    http://www.amazon.com/gp/product/0471200247/sr=8-1/qid=1152725383/ref=pd_bbs_1/102-7756454-8024905?ie=UTF8
    http://www.amazon.com/gp/product/0471255475/sr=8-4/qid=1152725383/ref=pd_bbs_4/102-7756454-8024905?ie=UTF8

  • Creating Flag formulas for multiple critical paths

    I'm hoping someone can help me.  I'm wanting to use flags to create my top 10 critical paths in MSP2010.  What forumla do I need to set into each flag in order for it to show me the first critical path, then second and so on?
    Thanks
    Sarah

    Sarah,
    I agree with Guillaume in that you need to define what you mean by first, second, etc. critical paths. However given some assumptions, this might work for you. Let's assume that total slack values less than 1 day are the first critical path, values between
    1 day and less than 5 days are the second critical path, and total slack 5 days or greater is the third critical path. The following formulas could then go into the Flag1, Flag2, and Flag3 fields.
    Flag1=IIf([Total Slack]/[Minutes Per Day]<1,True,False)
    Flag2=IIIf([Total Slack]/[Minutes Per Day]>=1 And [Total Slack]/[Minutes Per Day]<5,True,False)
    Flag3=IIf([Total Slack]/[Minutes Per Day]>=5,True,False)
    You can extend this process to additional flag fields and set up Gantt Bar styles to correspond to the flags.
    Hope this helps.
    John

  • PLEASE HELP: PDF Forms, creating average formula for text?

    Hello,
    I really hope somone can help. I cannot find any answers to my questions on the internet, google etc.
    First time using Acrobat. Im pretty quick learning on compters however the formulas my boss has asked me to do I have no idea if they are possible.
    We have a report form for exams and each section I need to calculate the average mark for that section.
    There are 3 questions for the first section. There are dropdowns for distinction, Merit, Pass and Below pass to select for each questions.
    Please see picture attached to show you what I mean.
    I want to be able to calculate the most selected/average dropdowns selected and not count the N/A's into award1 field?
    The fields must be text and cannot be numbers.
    so for example, track 1 got a distinction, track 2 got a Merit, Track 3 got a distiction. all other fields left n/a
    is there anyway to do this also is there any way to exactly the same as above as check boxes? - please see picture attached
    I appriciate any help. I am working on a mac
    Thanks
    Lauren

    Thank you so much reply
    Yes on the dropdowns the distincion, merit, pass or below pass values are in the correct areas ready for selection. For example on the distiction row you can only drop down for distinction and so on for Merit row dropdowns etc
    Check box is the way I rather do it as its quicker, however I created the dropdown option just incase check boxes average was not possible
    On the check boxes if i select merit for rtack 1 I would just tick the box and leave the the rest of the colum blank with no ticks. So just by seeing the tick I know its in the merit section for Track 1. However I donts know if I can do an average formula for with check boxes.
    If I check boxed/slected distinction for track 1, distnction for track 2 and merit for track 3 (obvisley any box could be ticked depeneding how the exam went so need then all in the script). I would like it to then calculate the avergae mark which would be distinction in the award1 field. While the none ticked boxes or N/A fields not affecting the average.
    This is just the start to a huge form Im doing Im dreading the rest of formulas I have to do lol
    sorry if im confusing you

  • Error while Creating a formula for field AZNOR (T-Code : OP17)

    Dear Experts,
    i am facing a problem in Transaction OP17 while creating a formula for field AZNOR ( No of indivual capacity in work center) in work center (T-Code : CR02) .
    It shows the error
    The data object "F" has no component called "AZNOR''..
    Please let me know the solution..
    Thanks & Regards
    Birendra Kumar

    Hi,
    I have the same problem.
    Could You tell me witch is the correct origin?
    Thanks a lot!
    Bye
    Laura

  • How can I sum up raws? the sum function seems to work for columns only and right now I have to create a separate formula for each raw

    How can I sum up raws? the Sum function seems to work only on columns. Right now I have to create a separate formula for each raw

    Hi dah,
    "Thanks, but can I do one formula for all present and future raws? as raws are being added, I have to do the sum function again and again"
    You do need a separate formula for each group of values to be summed.
    If the values are in columns, you need a copy of the formula for each column.
    If the values are in rows, you need a copy of the formula for for each row.
    If you set up your formulas as SGIII did in his example (shown below), where every non-header row has the same formula, Numbers will automtically add the formula to new rows as you add them.
    "Same formula" in this context means exactly the same as all the formulas above, with one exception: the row reference in each formula is incremented (by Numbers) to match the row containing the formula.
    Here the formula looks like this in the three rows shown.
    B2: =SUM(2)
    B3: =SUM(3)
    B4: =SUM(4)
    That pattern will continue as rows are added to the table.
    Also, because the row token (2) references all of the non-header cells in row 2, the formula will automatically include new columns as they are added to the table.
    Regards,
    Barry

  • How to Create formulas for LIS

    Hi all,
    I want to create formula for LIS.
    i've created formula using MC1D and assigned to update rules but it didnt stop if i put break-point in that routine. I even executed generation program (RV80HGEN).
    Do i need to execute any other generation program or is there any thing else do i need to take care.
    helpful replys will be rewarded.
    Thanks in Advance.

    Hi Sam,
    Please check this PDF document on how to define formula for LIS.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOLIS/LOLIS.pdf
    Hope this will help.
    Regards,
    Ferry Lianto

  • Steps to create a simple formula for 2 KF

    Hi, Can someone please give me steps to create a formula for 2 KF or redirect me.  Do I need to create a formula variable?  I just need to add KF1 + KF2.  I RClicked on KF structure in columns and i can see only structure elements and formula variable.  I don't see my KF.  I am in netweaver 2004s.
    Thanks,
    Radha

    No it isn't new in Netweaver 7.0.
    Left hand side - > Keyfigures - > Calculated Keyfigures - > Right Click - " CKF "
    You shud see keyfigures existing on the Infoprovider & other RKF's , CKF's existing on the query under "Available Operands " 
    When u create a formula ( which is local ) u may not see the keyfigures which doesnot exist in columns - u shud hav the keyfigures in the Columns to use them in the formula - u can use in the formula & to avoid them on the report jst hide em.
    Message was edited by:
            Jr Roberto

  • Can I create JDE BSSV (Business Services) for REST based services?

    Can I create JDE BSSV (Business Services) for REST based services? If yes, then how? In what way it will be different from SOAP based?

    Hi
    Within Oracle SOA Suite, Oracle Service Bus would handle the REST side of things, which in turn would call the JCA adapter to talk to your JDE backend, or vice versa.
    Checkout the JDE adapter docs - http://www.oracle.com/technetwork/middleware/soasuite/documentation/jdewardsweb-1954164.pdf
    and the OSB Docs - HTTP and Poller Transports - 11g Release 1 (11.1.1.7)
    OSB 11.1.1.7 introduced additional REST support, so I'd recommend using that version onwards.
    Cheers
    iain

  • I want to create a formula for telephone numbers in the formula editor

    Is there a way to create a formula for telephone numbers in the "custom" editor in the inspector
    IE if I enter 2123456789 into a cell it automatically formats it to look like this (212) 345-6789

    You can create a new format by opening the Cells Inspector, then selecting "Custom" from the format menu:
    You can add the ### fields and click the menu on the left of the field:

Maybe you are looking for