Multiplying Measures with different dimensionality

New to Essbase but very experienced with OLAP
My cube has 3 dimensions FCO, STAT and VALID
1st Measure DATA1 is stored at the leaf values for FCO and STAT and at the VALIDTotal (parent) for the Valid Dim
2nd Measure DATA2 is stored at the leaf values for FCO and VALID and at the StatTotal (parent) for the Stat Dim
(Essentially the VALID dimension in DATA1 is irrelevant and the STAT dimension in DATA2 is irrelevant)
When I do a simple calc of DATA1 * DATA2; no data is returned because when you match the dimensions one measure has data at the leaf level but the other doesn't.
I need to multiply each of the leaf values of the STAT dimension in Measure DATA1 with each leaf value of the VALID dimension in Measure DATA2
Below is an example
Data1
Stat1 Stat2 Stat3 StatTotal
FCO1 10 15 5 -
FCO2 20 25 10 -
FCO3 30 35 15 -
FCOT 60 75 30 -
Data2
Valid1 Valid2 Valid3 ValidTotal
FCO1 1 1 -
FCO2 1 1 -
FCO3 1 1 1 -
Total - - - -
Desired Results:
Valid1 Valid2 Valid3 Valid1 Valid2 Valid3 Valid1 Valid2 Valid3
Stat1 Stat1 Stat1 Stat2 Stat2 Stat2 Stat3 Stat3 Stat3
FCO1 10 10 15 15 5 5
FCO2 20 20 25 25 10 10
FCO3 30 30 30 35 35 35 15 15 15
Total 60 40 50 75 50 60 30 20 25
Does anyone have a suggestion as to what the formula would look like?
Thanks in advance

The forum tends to change the post and made it difficult to read, but I think I deciphered what you had (putting zeroes in instead of leaving them blank would have helped with the Data2 section).
BTW: Here is how I decoded the data sets you provided (with slight name changes):
     Stat1     Stat2     Stat3     StatT          Valid1     Valid2     Valid3     ValidT
FCO1     10     15     5               1     1     0     
FCO2     20     25     10               1     0     1     
FCO3     30     35     15               1     1     1     
FCOT     60     75     30                              
     Valid1     Valid2     Valid3     Valid1     Valid2     Valid3     Valid1     Valid2     Valid3
     Stat1     Stat1     Stat1     Stat2     Stat2     Stat2     Stat3     Stat3     Stat3
FCO1     10     10     0     15     15     0     5     5     0
FCO2     20     0     20     25     0     25     10     0     10
FCO3     30     30     30     35     35     35     15     15     15
FCOT     60     40     50     75     50     60     30     20     25For future reference, you can copy/paste excel data inside a "code" tag to show it like I did above.
Here is what I would do, assuming I interpreted the need correctly as above:
1) Create a non-aggregating Stat_Input member (in the Valid dimension) to load the first data set.
2) Create a non-aggregating Valid_Input member (in the Stat dimension) to load the second data set.
3) Load the first data set to the new Stat_Input member of the Valid dimension.
4) Load the second data set to the new Valid_Input member of the Stat dimension.
5) Use a calc script to spread the input member to the Stat1/Stat2/State3 members based on Valid1/Valid2/Valid3 values
- Stat1 = Stat_Input * Valid1->Valid_Input;
- Stat2 = Stat_Input * Valid2->Valid_Input;
- Stat3 = Stat_Input * Valid3->Valid_Input;
It may seem confusing to have the Valid_Input in the stat dimension (and vice versa), the point is that this is where the inputs for the respective data goes, and then they are spread to the intersections based on cross-dimensional references that "link" the inputs to the other members. If you were to give the members names based on the current dimension, it would be more confusing because they wouldn't represent the purpose that they serve.
I realize this is likely to generate more questions, but if you can give this approach a try you may find that it isn't as difficult as it seems.

Similar Messages

  • Two measures with Different filters in a query

    Hello,
    I have requirement where I have two measures in a query and have to filter those measures differently based on month. Like For actual values, I want to restrict the data as per end user selected parameter but for Plan data, I want to show till the end of
    the year. Eg. If user select July 2014 as month parameters then we have to display Actual data  from Jan 2014 to July 2014 where for Plan, I have show data from Jan 2014 to Dec 2014.
    Here is an example of query  which works in Management studio but does not work in query designer for ssrs:
    SELECT NON EMPTY
    { ([Measures].[actual]*[Date].[Year to Month].[Month]),
    ([Measures].[plan],ANCESTOR(strtomember("[Date].[Year to Month].[Month].&[2014]&[7]"),2).FIRSTCHILD.FIRSTCHILD:strtomember("[Date].[Year to Month].[Month].&[2014]&[7]"))}  ON COLUMNS,
    NON EMPTY
      ( [Date Calculations].[Date Calculations].AllMembers )
    } on ROWS
    FROM
    [abc]
    I want a functionality similar to this query replacing data parameter with date prompt. How do I do this kind of stuffs in query designer?

    For multiprovide scenario that's ok if you didn't have same key figures between them,
    but your record in report will be doubling.
    Have you try infoset? Check this link:
    [http://help.sap.com/saphelp_nw04/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/content.htm]
    Regards,
    Steph

  • Collapse multiply layers with different transparency into a single solid filled layer

    Hi,
    I want to collapse a complex scene with all different layers and different transparency into a single layer (or as few as possible) to optimize the flash file for online (were experince proformance issues).
    I have tried the combine and manually copying pasting into one layer but it cuts the fill below and replace with transparent fill. I want to have a end file that is 100% solid.
    Is this possible?
    Thank you
    Darren

    You can create groups and then paste all your groups in a single layer. That won't 'cut' them into each other and the transparency should be maintained. It won't help you with performance though, since the complexity remains the same.
    If you have tons of complex vector shapes, it might be a good idea to create a transparent PNG bitmap from illustrator.
    That may increase your filesize but it will give you a tremendous performance boost.

  • Fact table  with different  granularity

    I have a fact table , the measure with different granualrity , for example, there are a fact table named project, and in the project , there are some columns measure like project value, Opportunity value, (one opporuntity have many project). so I have to sum the project value and Opportuntity value
    by month, how to sum opportuntity value? (I want to sum the value distinct Opportuntity ). anyone have suggetion. thanks in advance.

    The purist answer is that you should NEVER have a fact table with multiple levels of granularity - it's asking for trouble. Better solution is to split off a new fact table at the proper level of granularity. Having said that, I've worked with BI Apps before so I understand the pain you're going through. In the long run though we found it better to add new fact tables and track the data at the proper levels. Less confusing (long run) than trying to kludge round data to fit in a square fact table.
    Thx,
    Scott

  • Configuring measures with custom aggregation for hierarchies

    Can I Configuring different measures with different aggregation for hierarchies . in AWM the aggregation for measures are disabled, am I missing something.
    For example
    Dimension : supplier
    Measure : risk score
    Aggregation : maximum
    Dimension : supplier
    Measure : spent
    Aggregation : sum

    Yes it is possible. But make sure that you have turned the compression off in the cube

  • Alternate Unit of Measure with several Qty KF's

    Case is as follows:
    3 different plain KFs related to qty. Sales volume, net weight anddelivery qty.
    All need to be dispalyed in the same report. All have different base unit of measure.
    I have only one variable [YTAUNIT) for entering required unit.
    Now if I enter all KFs using this same YTAUNIT variable for them each separately I get error message on the query that this is not permitted.
    How should I change the structure ?
    - add new variable for each KF ? (YTAUNIT1, YTAUNIT2, .....) -> do I need to change any of the ABAP codes? is there a link only picking YTAUNIT ?
    Please can You give me an example (detailed) how to proceed ?
    Thanks in advance
    Petri

    Hi,
    I have worked on single variable But from the understanding of working I feel you need to create three diff variable (input var) YTAUNIT1, YTAUNIT2 ect Because they are on same base unit of measure with different units of measures. And you will have to take corresponding variable for every key figure in the calculated KF.
    Just try with different variables.
    Assign points if it helps.
    Regards,
    Wrushali

  • Follow up material with different base unit of measure

    Hi all,
    I have the BOM with material Mat1 as a component. The base unit of measure of Mat1 is KG.
    Is it possible to replace Mat1 with Mat 2 material in MRP once the Mat1 warehouse stock is depleted.
    The base unit of measure of Mat 2 is KGK.
    The required quantity of MAT1 should be recalculated from KG to KGK accordanly unit ratio.
    Please, expain, where does it maintain?
    Thanks,
    Peter

    Hello Peter,
    You can use follow-up setting (set Mat2 as follow-up of Mat1 in MRP 4 view of material master if this follow-up scenario is valid for all BOM) with discontinuation indicator '1', w/o effective-out date. In this case Mat1's stock will run out (no PldOrd, PR, etc) will be created, and from the date, when Mat1's stock runs out, MRP will calculate with Mat2.
    As I told you, according to my best knowledge, you cannot realize this with different base unit of measures. (you have to change the buom of one of the related material masters or create a new material master if you cannot cope with buom-change).
    Follow-up group scenario can also be used but I guess different buoms will be a problem in that case as well.
    Maybe there are better solution but I'm not aware of it...
    BR
    Csaba

  • ME51N : how to deal with different units of measure as defined in MM01?

    Hi Folk,
    Could you please help me ?
    Some of our materials booked in stock are purchased by our purchasing department in Europe but as well by our purchasing department in US.
    The base unit of measure of those materials are defined with KG (kilogram) in the masterdata file (MM01).
    Why this is not allowed to enter a purchase requisition (ME51N) with other unit of measure than KG?  My purchasing department in US is not able to work with kilogram and thus they need to enter the requisition with US units of measure (pounds).
    However when we create purchase orders, we can play with other units of measure.
    Does someone can explain to me how to create a PR with a unit of measure different from the default one?  Or could you share your experience to bypass this issue.  Note that we really would like to have the same material number both for Europe and US (with different plants and storage locations).
    Thank you very much!
    François.

    Please check these answered links:
    PR UOM
    Re: Can't Change UOM in PR
    Alternate UOM in PR & PO
    Edited by: Afshad Irani on Jun 14, 2010 7:11 PM

  • Mdx error : Query (11, 9) Two sets specified in the function have different dimensionality.

    Hi all
    i am getting the fallowing error for the below mdx , what may be the issue?
    Query (11, 9) Two sets specified in the function have different dimensionality.
    WITH SET LastSample AS TAIL(NONEMPTY([Date].[Hierarchy].members *[Time].[Hierarchy].members,[Measures].[Overall LU SR]))
    MEMBER [KPI Name] AS "Overall LU SR"
    MEMBER [KPI Value] As KPIValue("Overall LU SR")
    MEMBER [KPI Status] AS KPIStatus("Overall LU SR")
    MEMBER ObjectName as "Overall LU SR"
    MEMBER [Critical Threshold] as  [KPI Thresholds].[Threshold1].&[Overall LU SR].member_value
    MEMBER [Major Threshold] AS  [KPI Thresholds].[Threshold2].&[Overall LU SR].member_value
    MEMBER [Minor Threshold] AS 0
    MEMBER latestDate as [Date].[Hierarchy].membervalue, format_string = 'mm/dd/YYYY'
    MEMBER latestTime as [Time].[Hierarchy].member_caption
    SELECT  {latestDate,latestTime,ObjectName, [KPI Name], [KPI Value],[KPI Status],[Measures].[Critical Threshold],[Measures].[Major Threshold],[Measures].[Minor Threshold]} ON COLUMNS
    ,nonempty(LastSample) ON ROWS
    FROM [DRA]
    Surendra Thota

    hi all
    i got the solution . i have add measures dimension to the name  ie ,[Measures].[KPI Name],
    WITH SET LastSample AS TAIL(NONEMPTY([Date].[Hierarchy].members *[Time].[Hierarchy].members,[Measures].[Overall LU SR]))
    MEMBER [KPI Name] AS "Overall LU"
    MEMBER [KPI Value] As KPIValue("Overall LU SR")
    MEMBER [KPI Status] AS KPIStatus("Overall LU SR")
    MEMBER ObjectName as "Overall LU SR"
    MEMBER [Critical Threshold] as  [KPI Thresholds].[Threshold1].&[Overall LU SR].member_value
    MEMBER [Major Threshold] AS  [KPI Thresholds].[Threshold2].&[Overall LU SR].member_value
    MEMBER [Minor Threshold] AS 0
    MEMBER latestDate as [Date].[Hierarchy].membervalue, format_string = 'mm/dd/YYYY'
    MEMBER latestTime as [Time].[Hierarchy].member_caption
    SELECT  {latestDate,latestTime,ObjectName,[Measures].[KPI Name], [KPI Value],[KPI Status],[Measures].[Critical Threshold],[Measures].[Major Threshold],[Measures].[Minor Threshold]} ON COLUMNS
    ,nonempty(LastSample) ON ROWS
    FROM [DRA]
    Surendra Thota

  • Joining two fact tables with different dimensions into single logical table

    Hi Gurus,
    I try to accomplish in Oracle Business Intelligence 11.1.1.3.0:
    F1 (D1, D2 and D3)
    F2 (D1 and D2 and D4)
    And we want to build a report F1 F2 D1 D2 D3 D4 to have data for:
    F1 that match only for D1-D2-D3
    and data for
    F2 that match only D1-D2-D4
    all that in one row, so D3 and D4 are not common dimensions.
    I can only do:
    F3 (D1, D2)
    F4 (D1, D2 and D4)
    And report
    F3 F4 D1,D2,D4 (all that in one row, and only D4 is not a common dimension)
    Here is the very good example how to accomplish the scenario 1
    http://108obiee.blogspot.com/2009/08/joining-two-fact-tables-with-different.html
    But looks like it does not work in 11.1.1.3.0
    I get
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 14025] No fact table exists at the requested level of detail: [,,Clients,,Day,ROI,,,,EW_Names,,,,,,,,,,,,,,,,,]. (HY000)
    I am sure I set up everything correctly as advised in the blog but it works with only one not a common dimension
    Is it a bug in 11.1.1.3.0 or something?
    Thanks,
    Kate

    Thanks for all your replies.
    Actually, I've tried the solutions you guys mentioned. Generally speaking, the result should be displayed. However, my scenario is a little bit tricky.
    table Y's figures are not the aggregation of table X for D dimension. Instead, table Y's figures include not only D dimension total, but also others (others do not mean A, B, C dimension). For example, table Y stores all food's figure, while table X stores only drink's figure. D dimension is only about drink's detail. In my scenario, other foods' figure is not provided.
    So, even if I set D dimension to all/total for table X, table X's result is still not the same as table Y.
    Indeed, table Y does not have a column key to join to D dimension's key. So, if I select D dimension and table Y's measures at the same time in BI Answer, result returns no data. Hence, I can't compare table X and table Y's results with selection of D dimension.
    Is there any solution to solve this problem?
    Edited by: TomChan on Jun 3, 2009 9:36 AM

  • Two Fact tables with Different set of Dimension Tables

    Here is my scenario:
    I got two fact tables: X and Y (actually, they are the same tables, but with different level of data)
    and four dimension tables: A, B, C, D
    X joins relationship to all dimensions (A, B, C, D).
    Y joins relationship to only A, B, C, but no D.
    When I select dimension A, B and C together with fact tables X and Y in BI Answer, result is displayed and compared.
    However, if I select dimension D together with fact tables X and Y, only data from fact table X is displayed. There is no result displayed for fact table Y. I know that this is because fact table Y does not join to dimension D.
    If the above relationship unchanged, how can I display both X and Y's result in BI Answer when dimension D is selected?

    Thanks for all your replies.
    Actually, I've tried the solutions you guys mentioned. Generally speaking, the result should be displayed. However, my scenario is a little bit tricky.
    table Y's figures are not the aggregation of table X for D dimension. Instead, table Y's figures include not only D dimension total, but also others (others do not mean A, B, C dimension). For example, table Y stores all food's figure, while table X stores only drink's figure. D dimension is only about drink's detail. In my scenario, other foods' figure is not provided.
    So, even if I set D dimension to all/total for table X, table X's result is still not the same as table Y.
    Indeed, table Y does not have a column key to join to D dimension's key. So, if I select D dimension and table Y's measures at the same time in BI Answer, result returns no data. Hence, I can't compare table X and table Y's results with selection of D dimension.
    Is there any solution to solve this problem?
    Edited by: TomChan on Jun 3, 2009 9:36 AM

  • XY Graph overlay multi plot with different colors

    Hi,
    I want to do a cyclic X-Y plot in a for loop and plot the graph for each cycle in different colors.
    I want a plot like XYgraph2 but with different colors and probably even without that tracing line. How do i modify my diagram?
    Thank you for your time and efforts.
    SUCHIT
    Suchit Shah
    Graduate Student
    Electrical & Computer Engineering,
    Northeastern University,
    BOSTON
    MA 02115
    Certified LabVIEW Associate Developer
    Solved!
    Go to Solution.
    Attachments:
    block dia.JPG ‏45 KB
    front dia.JPG ‏122 KB

    Hi all! This is my first post
    My name is Francesco and I'm programming a keithley for measure some FET
    using labview 8.6. I plot my output data on a XY graph but I have several curves,
    one for each value of Vgs. Looking in your forum I've found the code
    MultiplePlots.vi (21 kb) posted by Darin.K about a month ago that use Multiple
    plots and it is perfect for my goal because with this I can plot every curve with a
    different color. The only problem is that I like to plot my data in real time.
    The code, however, use a Loop with N=50, accumulates the values on the edge
    and plot at the end of the Loop the entire line.
    My question is if someone can explain me how to modify the code to plot the line
    point by point, so in real time and not at the end o the loop because I need to see
    the current values during the measurement and not only at the end.
    I think that I need to move the XYgraph inside the loop. I try but without lucky.
    Can anyone help me?
    thanks and sorry for my very bad english.
         Francesco

  • Replace colors on multiply layer with predefined color

    Hello,
    This is my first time here and I've tried to find an answer to my question but haven't been able to. Maybe someone can help me whith this.
    My process:
    I scann my artwork (linedrawing)
    I color my artwork with multiply mode on different layers (as i'm sure many do)
    Now what I haven't been able to figure out is how to replace the color on this multiply layer with a predefined color from my colorswatch.
    I've found tutorials on how you can change colour  around by using hue/saturation and stuff like that but I have a predefined colorpalette. So I just want to replace a certain color blue I always work with, for a specific color green from my palette.
    I've used the replace brush tool but the colors that appear are a blend of the first color and the second color I use.
    So my solution so far has been to set up a new layer and color again. I'm hoping there is an easier way.
    Thanks in advance for your suggestions!
    Kind regards,
    Lineke from Amsterdam

    You could have a Color Fill layer for each color selected from your Swatches, with the blending mode set to Multiply, and the layer mask filled with black. Then, paint on the mask with white to do your coloring.

  • "Semi/Non additive measure with" : "LastChild Across All Dimension" OR "LastChild Across Time and MAX across All Other Dimension"

    Hey All
    I am using the SQL SERVER 2008R2 standard edition so please be mindful when posting any suggestion if that will work on this edition or not.
    Here is the situation: I have Cube with one fact table "Positions". Measure I am querying is "AUM" and Dimensions across user can query are combinations of {"Portfolio", "Security" and "Time"}.
    I am receiving the "AUM" values at "portfolio+Security+Time" level. AUM is actually the Portfolio level value. so sample data I receive would like this.
    PORTFOLIO SECURITY TME AUM
    A SEC1 JAN-1 100
    A SEC2 JAN-1 100
    B SEC1 JAN-1 200
    B SEC3 JAN-1 200
    A SEC1 JAN-2 300
    A SEC2 JAN-2 300
    B SEC1 JAN-2 400
    B SEC3 JAN-2 400
    So, as shown in above example , we received same "AUM" value for a given portfolio and time. (regardless of what security value is).  
    And as AUM is the snapshot values, we can not sum across time as well, so if user is looking across time we need to pick Last values.
    Now when user wants to view this data from cube, two different ways s/he wants to look at it.
    option one: AUM at port+sec+time level. that is same as shown above in example.
    option two: AUM at portfolio level only,  (notice that this is across time so results are picking values for time=JAN-2)
    PORTFOLIO AUM
    A 300
    B 400
    GRAND TOTAL 700
    I have applied the "LastChild" aggregation property to measure to achieve "Do no Sum across Time "behavior. but with this I also get "SUM Across Except time" and hence my AUM values get summed across Portfolio and security as
    well. I have also enable Time Intelligence to enable MTD, YTD calculations.
    I tried to add SCOPE statement for Security before and after the "time calculations" yet I am not able to achieve expected behavior.
    here is the calculated member definition, and scope statement i have tried.
    CREATE MEMBER
    CURRENTCUBE.[MEASURES].[AUMNetBaseCurrency] AS
    [Measures].[AUMNetBaseCurrency_Raw_Max],
    FORMAT_STRING = "#,##0.00 ;( #,##0.00 )",
    VISIBLE = 1 , DISPLAY_FOLDER = 'Position';
    After this I have MTD and YTD time calculation for few measures including AUM.
    I tried placing the following SCOPE for AUM before and after the Time calculations but it no difference in result, in fact it seems like it has no affect of scope at all due to the "LastChild" aggregate property applied on measure.
    SCOPE([MEASURES].[AUMNetBaseCurrency]);
    SCOPE([Security].[Symbol].[All]);
    THIS = MAX([Measures].[AUMNetBaseCurrency_Raw_Max]);
    END SCOPE;
    END SCOPE;
    so options I am thinking of but do not have clear idea how to implement those are:
    0) why my Security Scope Statement are not showing any effect, and can we do something about it?
    1) Can be change "SUM" behavior to "MAX" / "MIN" across all Dimension except time.
    2) Is there a way to implement "LastChild" across all dimension instead only across Time.
    3) Should I need to make any changes at Fact table level to achieve this ? I refer one Q&A in this forum that suggested to create such measure in different measure group but it doesn't have any clarification.
    Any help would be appreciated.
    Thanks
    Anup Shah

    hi,
    you will have to enable cache in your nqsconfig.ini file under the section
    # Query Result Cache Section
    [ CACHE ]
    ENABLE     = YES;
    cache seeding is also a mechanism through which the data would be updated in the cache.

  • 2 facts with different dimensions in 1 logical table

    hello,
    im trying to accomplish the set up as described per blog:
    http://108obiee.blogspot.com/2009/08/joining-two-fact-tables-with-different.html
    i.e. i have 2 facts, F1: D1 ; F2: D1,D2,D3;
    i followed the instructions and all seem to be working fine;
    however: when i put the total on the report in Answers: D1,D2, F1, F2 then the measures from F1 that are repeated every row for D2 are being added , like regular sum on the column; this is not correct;
    the only correct result i can get if manually i change the Aggregation Rule to :Server Complex Aggregate on all F1 measures;
    id like to ask if this is a bug of this OBI version? 10.1.3.2
    i wish not to instruct my users to change the aggregation rule; id like to have the set up via rpd such, that they dont have to manipulate the aggregation rules;
    did anyone got the above working with correct totals without changing the aggregation rule?
    if so, id appreciate any tips on how to achieve that
    thanks
    rgds

    Basically, you need to :
    * create your physical schema with the relationship
    * drag and drop your Forecast Facts measure in the same logical table than your sales fact
    * define your Forecast measure as level based measure (logical column/levels/properties) with the grain of the forecast table
    Documentation
    http://download.oracle.com/docs/cd/E12103_01/books/admintool/admintool_BusModSetup12.html
    And you have an example in OBE series with quota in excel sheet :
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html#t8
    Success
    Nico

Maybe you are looking for