Slice measure group by dimension related to another measure group

Hello everyone,
My users are wanting to slice one measure group via a dimension related to a different measure group.  I have regular relationships here: Dim_SalesStatus <- Fact_Sales -> DD_Link <- Fact_Mfg, and Fact_Mfg has a many-to-many relationship
to Dim_SalesStatus  (through intermediate measure group, Fact_Sales). The DD_Link is a degenerate dimension that I created with the LinkId's that exist in the Fact_Sales table.  The Fact_Mfg records may or may not have a LinkId. Processed great,
no problem. I was testing the configuration by finding multiple LinkId's that *are* in both fact tables in the data warehouse, then seeing if I can slice. If I slice by only the LinkId, they show the correct counts on both sides as 1.  In my following
example, I have two LinkId's (12345 and 67890).
DD_LinkId, Fact Sales count, Fact Mfg count, MfgQuantity
12345, 1, 1, 387
67890, 1, 1, 50
As soon as I try to slice by the SalesStatus, the Fact_Mfg count goes to null on some (not all). It seems like it can’t find the data through the relationship.
Sales Status, DD_LinkId, Fact Sales count, Fact Mfg count, MfgQuantity
Incomplete, 12345, 1, (null), (null)
Incomplete, 67890, 1, 1, 50
I'm not sure what could be the issue, it looks to be all setup correctly to me.  LinkId 12345 is not behaving the way I would expect, but 67890 is, and I'm not seeing any differences in the way the data is setup in the DW.  What can I check/verify?
Thanks in advance for your help!
Jarret

Hello Bill,
Neither of those are true.  The FactMfgCount is the default measure added when creating a measure group, and the quantity is a simple column based summed measure.
If I drop the DateEntered dimension altogether, the results returned are shown as expected.  When I then recreate it, with a regular relationship to both measure groups, it stops working.  If I remove the relationship from DateEntered to Sales,
the expected results are presented.  Or, if I remove the relationship from DateEntered to Manufacturing, the expected results are presented.
From what I can tell, as long as a dimension is not related to the fact on both sides of the many to many, the expected results are presented.  As soon as I relate a single dimension to both sides of a many-to-many, the data in the data warehouse must
be the same in the related columns, or the results are "(null)".
Is this supposed to be true?  If you look at my cube structure image above, that's my setup.
Here is the MDX that I was running, which does not reference a date dimension.
//Without Status, expected results.
SELECT NON EMPTY { [Measures].[Fact Sales Count], [Measures].[Fact Manufacturing Count] } ON COLUMNS,
NON EMPTY { ([DD_Link].[Order Link Id].[Order Link Id].ALLMEMBERS ) } ON ROWS
FROM ( SELECT ( {[DD_Link].[Order Link Id].&[18440402] , [DD_Link].[Order Link Id].&[18446846]} ) ON COLUMNS
FROM [TestCube]
go
//With Status, unexpected results.
SELECT NON EMPTY { [Measures].[Fact Sales Count], [Measures].[Fact Manufacturing Count] } ON COLUMNS,
NON EMPTY { ([DD_Link].[Order Link Id].[Order Link Id].ALLMEMBERS * [Sales Status].[On Time Delivery Status Description].[On Time Delivery Status Description].ALLMEMBERS ) } ON ROWS
FROM (
SELECT ( {[DD_Link].[Order Link Id].&[18440402] , [DD_Link].[Order Link Id].&[18446846]} ) ON COLUMNS
FROM [TestCube]
go

Similar Messages

  • How to get the measure total at row level for another measure calculation in DAX?

    Hi There,
    Using DAX, I am trying to get an expression for a calculated measure as follow:
    So basically, I would like to get the AMeasure total highlighted in yellow in the A2Measure calculation:
    Smeasure -(Ameasure total * WMeasure) where Ameasure total is the one highlighted. 
    I think my question would be how to get the total of a measure in order to used in the calculation of another measure.
    Thanks and best regards,
    Joss

    Hi Joss83,
    If you're trying to get the result for [AMeasure] at the total level (i.e. 5.09 in your example) you can do this by creating a version of this measures that is evaluated after ignoring the filters (indirectly or explicitly) placed on
    the 'Customer' and 'Player' columns. You may also need to ignore the filters place on some other tables or columns that must be ignored in order for the correct total to be returned.
    Without knowing much more about your data model, I can only take a vague guess as to what this calculation would look like in your scenario:
    AMeasureTotal:=
    CALCULATE(
    [AMeasure],
    ALL(Customer[Customer]),
    ALL(Player[Player])
    You can read more about the 'ALL' DAX function here:
    http://technet.microsoft.com/en-us/library/ee634802.aspx
    Hope this helps,
    Michael

  • BIDS 2008 - Dimension Usage new relationship Measure Group Column list empty?

    Ive been updating my underlying schema, and DSV and now Im having to update some of the Dimensions.  Looks like things got a bit "sideways" somewhere along the way.  Now that Im going back to reassign dimensions being used within the
    Dimension Usage tab of the Cube, the measure group column list is empty when I go to create a new relationship (regular type)

    Hi shiftbit,
    According to your description, you get an empty Measure Group Columns list when defining relationship. Right?
    Based on your screenshot, you may notice that Measure group table is empty, so definitely it can't show any column in the dropdown list. If there's columns in the measure group that are related to the dimension columns, at least it will show the fact
    table for Measure group.
    In this scenario, please check if the fact table for the Measure group is existing. Re-process the Measure group and try again. If the issue persists, please re-create that measure group.
    Reference:
    Define Relationship Dialog Box (Analysis Services - Multidimensional Data)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Is it possible to group the dimensions and measures into respective folders in SAP BO Analysis office - excel?

    Hi Guys,
    We can group the similar dimensions or measures into folders in Universe which can be further consumed in other BO reporting tools.
    Is it possible to do the same while connecting AO with HANA?
    I want to group similar dimensions and measures so that it comes as respective folders in AO and makes the experience for the user better. Is it possible?
    Regards,
    Krishna Tangudu

    Hi Michael,
    Thanks for your reply. If this feature is not present or not in the roadmap too then i might have to follow the same solution as well.
    Hoping Tammy Powlas has some answer for this.
    Regards,
    Krishna Tangudu

  • Grouping of measures in accounts dimension Essbase

    I am new to essbase .
    I am developing a cube for one of the requirements which has got
    following measures in accounts dimension
    1) Allocated quantity
    2) Picked Quantity
    3) Shipped Quantity
    4) Allocated Amount
    5) Picked Amount
    6) Shipped Amount
    Now I want to group these measures in 2 groups viz a) Qtys b) Amounts
    means
    Qtys : Allocated quantity
    Picked Quantity
    Shipped Quantity
    Amounts : Allocated Amount
    Picked Amount
    Shipped Amount
    wanted to show these groups along with its measures in Excel add in report .
    I am using Essbase Integration Services 11 to develop the metaoutline
    How to define these groups in accounts dimension
    Regards
    Amit

    If you have a way to differeniate these measures you can add user defined measures in EIS. One way you could differeniate them is to put in filtering sql the uses like clauses to select members with Quantity or amount in them and have them put under the headings you want

  • How to control the measure based on the related dimension.

    Hi Experts,
    In order to improve performance, I have created three kinds of time tables in DB,such as Year .Month, Day.
    Then import them into the physical layer in RPD, and combine them into one dimension in BMM.
    Actually, it has three level fact related with three time tables,so they are also dragged into one fact in BMM,and one column will be corresponding with three column derived from different Fact table in physical layer.
    So I want to know how to control the measure based on the related dimension.
    For example:
    when users drag the Year,Sales column, it will come from Year Dimension and Year Fact Table.
    when users drag the Month,Sales column, it will come from Month Dimension and Month Fact Table.
    when users drag the Day,Sales column, it will come from Day Dimension and Day Fact Table.

    Hi,
    Create a dimension Hierarchy, with Year >> Month >> Day Levels and
    Next Double click on Year Table LTS >> click on Ocntetnt Tab >> set as Year
    same way for Month LTS and Day LTS.
    So now when you select year column then server canknow which LTS to hit and Hits Year LTS.
    Mark If Helpfu/correct
    Thanks.

  • Using a Dimension/ Measure in a Where clause of Another Dimension/ Measure in IDT

    Hi All
    I am building a Universe using Information Design Tool. In the Business Layer, I need to use a created Business Layer Dimension (not Tables) in a Where clause of another dimension as follow:
    Dimension: "Current Week No"
         SELECT
              budgets.dbo.Calenderweeks.WeekNo
         WHERE
              budgets.dbo.Calenderweeks.EndDate = convert(SMALLDATETIME, fn CURDATE()})  
    Dimension: "Last Week No"
         SELECT
              budgets.dbo.Calenderweeks.WeekNo
         WHERE
              budget.dbo.Calenderweeks  .WeekNo = @Select(Dimension\Current Week No) - 1
    The first dimension is working well. However, the "Last Week No" shows NOTHING (I do not get any value)
    Anyone can explain why I am not get any value from the second dimension, and how I can use a Dimension/ Measure in a Where clause of another Dimension/ Measure ?
    Thanks

    Short answer:
    Beware of object WHERE clauses. They are rarely (I'd almost say never) the solution to the problem you're trying to solve.
    Long answer:
    It doesn't work because you are inadvertently filtering the same value twice in two incompatible ways in the same SQL statement.  Both objects SELECT the same column in the database.  The first object uses a WHERE clause to set it to the current week.  The second object attempts to use a WHERE clause to set it to the previous week, but does so by selecting the first object, so you end up with both objects in your data provider.
    Remember that BO is going to place all the objects in your data provider in the same SQL (except of course where your context definition has ensured otherwise.), so you have two WHERE clauses in your generated SQL which attempt to find a line equal both the current week and the previous week... and returns, naturally, no results.
    Rewrite it with a derived table (as explained in the response above) and you'll get what you want.

  • DAX - Aggregating measures by multiple dimensions.

    I have a pretty simple data warehouse (star schema). DimDate, DimProduct, DimCustomer, FactSalesOrders. I have created a Tabular Model with this data and have several measures in FactSalesOrders. Ultimately, I am trying to consume this data in SSRS
    with a DAX query. Therefore, I need to perform a "group by" function in DAX to group by several attributes from each of the Dimensions and aggregate the measures in the FactSalesOrders table. I've tried summarize, and addcolumns, but the performance
    is slow. 10 seconds to pull a simple "group by" DimDate.FiscalYear, DimProduct.SKU, DimCustomer.CustomerName. Analysis Services within Excel is able to slice this data in less than a second. I'm looking for some insight as to how to write the
    DAX query.

    Hi Mstaples123542,
    According to your description, you want to create "group by" function in DAX query. Right?
    In DAX, the only way to achieve "group by" is using summarize, addcolumns. There's no better way the get the same result with better performance. Since you are using SSRS, I suggest you just use the DAX to get the whole dataset without any group
    and order, then you group and order all data in the SSRS.
    If you have any question, please feel free to ask.
    Regards,
    Simon Hou
    TechNet Community Support

  • How to transfer the tables from one file group to another file group in SQL 2008.?

    Hello all,
    I have few issues regarding the transfer of the tables from one file group to another file group  in SQL 2008 and also How can we  backup
    and restore the particular database based on file group level.
    Let’s say I have a tables stored within the different FG. such as
    Tables                                                    
      File group
    Dimension tables                                              
                                                                     Primary
    Fact tables                                               
                                                                              FG1
               FG2…
    zzz_tables                                               
                                                                              DEFAULT_FG    
    dim.table1                                                                                                                          DEFAULT_FG
    dim.table2                                                                                                                          DEFAULT_FG
    Here all I want to transfer the dim.table1 ,dim.table2  from  DEFAULT_FG to the Primary File
    group .So is there simple methods for transfer the dim.table1,2  from one FG to another .I have tried somewhat but I couldn’t get the exact way .So if someone have better idea please share your knowledge that would be really appreciated.
    Secondly after moving those dim.table1 ,dim.table2 from DEFAULT_FG to Primary ,All I want to backup and restore the database only containing  the Primary and FG1,FG2… not
    a DEFAULT_FG.Is it possible or not.?
    Hope to hear from the one who knows better approach for this kind of task .Your simple help will be much appreciated.
    Regards,
    Anil Maharjan

    Well after all my full day research on this topic had paid off, I finally got the solution and am so happy to research on these things. It makes
    us feel really happy after all our research and hard work doesn't goes as waste.
    Finally I got what I am looking for and want to make sure that I am able to transfer the tables from DEFAULT_FG to another FG without tables
    having clustered index on that tables .
    With the help of the link below I finally got my solution where Roberto’s coded store procedure simply works for this.
    Really thanks to him for his great post and thanks to all for your response and your valuable time.
    http://gallery.technet.microsoft.com/scriptcenter/c1da9334-2885-468c-a374-775da60f256f
    Regards,
    Anil Maharjan

  • Logical grouping of dimensions

    Hi,
    What is criteria to enter dimension into the cube and what does mean by logical grouping of dimensions
    Thanks in advance
    krish

    Hi,
    While designing the dimensions, you must ask to yourself that "What will be the size of dimension table if I add this characteristic to this dimension?".The smaller ratio of size of dimension table/ fact table means  better performance.For this ratio, 20% is dangerous and 10% is preffered.
    If the characteristics included in one dimension have mxn relationship, then your dimension table will be too big(specially if those charactersitics are already big) and performance will be decreased.Therefore, 2 characteristics that have mxn relationship(e.g sales document and sales document item) must be in seperate dimensions i.e two characteristics that have nx1 relationship(e.g material and material group) may be put into one dimension(Not logically related(groupped) characteristics, this is not a criteria)Two characteristics that have nx1 relationship in one dimension will add only m+n rows to dimension table instead of mxn.To sum up, you must create the dimensions by considering the relationships of characteristics that will be included in the cube.I propose you to activate some SAP cubes(e.g 0FIAR_C03) from BI content to view their dimensions.You can see the logic there.
    You can see the size of dimension table and fact table by executing the program SAP_INFOCUBE_DESIGNS in se38.
    Useful threads:
    Regards,
    Güneş

  • AWM Set Aggregation Operator based on Measure instead of Dimension?

    Is there anyway to base an operator of a measure over a dimension on the measure instead of the dimension? In AWM, I notice that each Measure has an Aggregation tab that summarizes its operator over each dimension, but it is greyed out. The way I'd like it to work is to have one Measure be summed over the Dimensions, while another Measure is averaged over the Dimensions.

    Found my answer: Not only do I need to make sure my cube is not compressed, but I also need to select "Override the Aggregation specification of the cube" under each Measure's General tab. This results in the contents of the Aggregation tab no longer being grayed out.

  • New calculated member based on existing measure and a dimension value

    Hi
    I’m trying to create a new calculated member in my cube based on an existing measure and a dimension value.
    I can do it easily in DSW but I want to do it as a Calculated Member in Calculations tab from my cube.
    I have a dimension called Product in which one attribute is UOM (unit of measure) and a measure called Quantity. The relationship with the fact table is “Regular”.
    For each product we have a unit of measure and an associated quantity measure:
    Product Name   
    UOM     Quantity
    Product 1   
              Km  
             50
    Product 2   
              Kg   
             60
    Product 3   
              Kw 
              25
    Product 4              L               
    15
    Product 5              T     
             1.5
    Total                                     151.5
    The calculated member I want to create is “Kw” and has to contain the value from Quantity measure when Product.UOM is “kW” and should look like this:
    Product Name   
    UOM     Quantity   
    Kw
    Product 1   
              Km  
             50           
    Product 2   
              Kg   
             60
    Product 3   
              Kw 
              25           
     25
    Product 4              L  
                 15
    Product 5              T     
             1.5
    Total                                     151.5        
    25
    So far I tried using the MDX with “IIF” or “Case” but with no results.
    What statement I should use in this case?
    Thank you.

    Hi Cees,
    Thank you for your answer.
    I never used yet the “Scope” statement and yet it’s an elegant solution.
    I use it as in your example:
    CREATE
    MEMBER CURRENTCUBE.[Measures].[Kw]
    AS NULL,
    FORMAT_STRING =
    VISIBLE = 1 , 
    ASSOCIATED_MEASURE_GROUP =
    'TR Other';
    Scope [Measures].[Kw];
     Scope [Product].[UOM].[kW];
     This = [Measures].[Quantity];
     End
    Scope;
    End
    Scope;
    …and the calculations are solid…with one exception: when I took out UOM from the query there are no more any resuts:
    Product Name    Quantity    Kw
    Total      
    It’s only working
    if using UOM in the query.                         
    I also thought that a
    tulpe might be another solution as:
    ([Measures].[Quantity],[Product].[UOM].&[kW])
    On this last one I’ve got the expected results with one exception: when I use UOM in the query all the other UOM values are listed each one of them
    having the [Kw] measure calculation value.
    Product Name    UOM     Quantity    Kw
    Product 1              Km  
             50           
    Product 2              Kg   
             60
    Product 3              Km 
              25             25
    Product 3              Kg 
               25             25
    Product 3              Kw 
              25             25
    Product 3              L 
    25              25
    Product 3              T 
    25           
      25
    Product 4              L  
                15
    Product 5              T     
             1.5
    Total                                     151.5        
    25
    …and without UOM in the query I have what I’m expected:
    Product Name    Quantity   
    Kw
    Product 1              50           
    Product 2              60
    Product 3               25           
     25
    Product 4              
    15
    Product 5             
     1.5
    Total                       151.5        
    25
     Maybe we can work together to find a solution.
    Thank you,
    Oks

  • Unit of measurements with no dimensions

    Hi,
    CUNI has 'No Dimensions' for Unit of measurements Case and Each. Is there any way to create a dimension for these or add to some other existing dimension in order to use the FM UNIT_CONVERSION_SIMPLE? Are these changeable or are they supposed to be in the dimension AAAADL? No luck searching the forum.
    Thanks

    What would be the best method to convert something to EAches? FM UNIT_CONVERSION_SIMPLE is throwing a dimensionless error message.
    Would copying the CS and EA definitions to another dimension cause an overlapping of dimensions? Asking before actually doing the work to ensure time spent is productive in doing the copy?
    How accurate are the Denominator and Numerator fields from the Line Items? How are these fields populated? Are they manually populated by the data entry person or are they read off from the master data tables?
    I would think these fields are not manually entered by the data entry persons who are posting the documents. The VA01, for example, only allows users to enter the quantities. Why would someone configured the VA01 to have the end users post a document and have to enter these fields  manually.

  • Using measures against unconnected dimension?

    Hi,
    I have two dimentions D1 and D2 and two facts F1 and F2. D1 is connected to both F1 and F2 and D2 is only connected to F2.
    With this configuration when I create a report with one column from D1 one measure from F1 and one measure from F2, the reports works fine and results in proper data.
    As soon as I add a column from dimension D2 on the above request I cant see any data for measure from F1.
    When I set the level for measure from F1 to all for dimension D1 I got proper data.
    So far so good :)
    but as soon as I add another measure from F1 it again results in no data for this new measure :(
    The senario goes on and is very tedious to handle if we have tens of facts and hundreds of measures.
    I just want know Is there any alternate or better way to do this?
    Cant we set the level to business layer table instead of all its individual columns ( I tried this but doesnt worked for me) ?
    Kind Regards,
    Zubair.

    Thanks gerardnico, that is what exactly I am doing.
    I just want to to confirm is there any alternate way of setting level not on individual column but for the whole table? because setting level for each individual column for numerous dimensions seems to me a tedious task.
    Is it possible through logical table source content tab? I have tried this but did not work for me:(

  • Free Goods from One Material Group to Another Material Group

    Salute Masters!! 
    I need your valuble suggestion, please provide.
    I need to configure Free Goods of Material Group to Material Group.
    User want:
    1) Free Goods from one Material Group to another Material Group, like F010 to F040
    2) User should have option to change from one Material Group to Other Material Group, which He / She want, like F010 or F020, F030, F040 any one of them.
    Suppose;
    Line Item Material Belongs to One Group Quantity in Gallons Free Goods from Any Material Group Quantity in Gallons
          1            A                                              3                                    F010                                             4
          2            B                                              3                                     F020
          3            C                                              4                                     F040
    Any No. of Line Item Any No. of Material
                                       from One Group      Total 10                   From Any Material Group
    (Comprising of 3-4 Different Material from 1 Group, they should be able to choose/provide Free Goods from other Material Group)
    3) While creating Sales Order what Quantity (Gallons/No./Ltr) to be put?
    How I can configure this scenario?
    Please suggest, is it  possible through KEY COMBINATION?
    Rgds.
    Srivastav
    +91 7829755109
    Skype ID: sanjai.srivastav1

    Hi,
    if you want to give free goods from other group it can be possible only for EXCLUSIVE free good type
    In exclusive free goods, a material different from the orignal material can be specified as the free goods.
    Example: A customer who buys 200 crates of beer, gets 5 boxes of glasses free.
    In VBN1 >> Exclusive
    See column ADD FREE MATERIAL
    While creating Sales Order what Quantity (Gallons/No./Ltr) to be put?
    Maintain alternative units in material master >> Additional data >> Material master,BUT it is only main item
    Those item u want to give free that items unit is derived from free goods condition record and it CANNOT be change in order

Maybe you are looking for

  • How change default language in Safari 5.0.5 for Windows?

    My home system (Windows Vista Home Premium SP1 32bits) is in English, but I want Safari working in Brazilian Portuguese. At work, I installed Safari too, with the same "setup.exe" file, and it works in Brazilian Portuguese without any further configu

  • Mac book pro charger

    My Mac Book pro charger has broken. The Mac is from the u.k but I am living in South Korea now. Can I buy a charger out here and it will work ok ???

  • How to import whole song in WaveBurner

    Hi When I import into WB it imports all the different tracks i have eg guitar, drums synth sepratly and not as one song . How do I get it to condence all my tracks into one song. cheers!

  • Inserted Picture Occupies Entire Page

    My iD document consists of two-page spreads with light gray background ("BG") layers.The two pages in any given spread respond differently to the picture insertion command, using Cmd+d or Ctrl+d (same response under Win XP and Mac OS X). When I try t

  • I used to use the cs4 before, but I couldn't activate them recently! Why??

    I need the cs4 to finish my homework, but I couldn't use them recently, when I click anyone of them, it opens up a window and says the authorization of using the product has gone and error 3!!! I don't understand what is happening, I bought the produ