Measure grouping in WEBI

Hi ,
I have data in table like below
Product     Order count     Cost
A     1     20
A     2     30
B     3     40
B     4     50
expected results
Product      Total (Order Count* Cost)
A     80
B     320
but getting like below
Product      Total (Order Count* Cost)
A     150
B     630
Please help me how we can solve in report level

to achieve the desired result, the Order Count object has to be a dimension, not a measure.
So, create a dimension object for count and then use the following function for Total calculation:
=Sum([Order Count]*[Cost])

Similar Messages

  • Ssrs 2014 errorrule 'Create list of measure group-dimension pairs

    I'm getting this error generating a model for a ssas tabular model in ssrs 2014.  When I test the tabulur definition in Excel under SSAS everything works fine and there are no errors.
    Thanks
    From the log
    semanticmodelgenerator!ReportServer_0-1!b58!06/13/2014-15:39:25:: e ERROR: Semantic Model Generator: ModelGeneratorExtention
    An error occurred while executing rule 'Create list of measure group-dimension pairs':Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'..
    semanticmodelgenerator!ReportServer_0-1!b58!06/13/2014-15:39:25:: e ERROR: Semantic Model Generator: ModelGeneratorExtention
    An error occurred during the generation of semantic model : [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'..
    library!ReportServer_0-1!b58!06/13/2014-15:39:25:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ModelGenerationErrorException: , Microsoft.ReportingServices.Diagnostics.Utilities.ModelGenerationErrorException: An error occurred while
    generating model. ---> System.InvalidOperationException: An error occurred during the generation of semantic model : [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'..
    ---> System.InvalidOperationException: [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'. ---> Microsoft.AnalysisServices.Modeling.Generation.ModelGenerationException:
    Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'.
       at Microsoft.AnalysisServices.Modeling.Generation.ModelGenerationDiagnostics.Assert(Boolean condition, String message, Boolean throwOnFail)
       at Microsoft.AnalysisServices.Modeling.Generation.Rules.MapMeasureGroupsToDegenerateDimensions.Process(RuleFlowRecords& generatedRules, RuleExecutionRequirement& rulesExecutionRequirement)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRule(IRule rule, RuleContext ruleContext)
       --- End of inner exception stack trace ---
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRule(IRule rule, RuleContext ruleContext)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRuleFlowRecord(RuleFlowRecord ruleFlowRecord)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRule(IRule rule, RuleContext ruleContext)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.ProcessRuleFlowRecord(RuleFlowRecord ruleFlowRecord)
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.Process()
       --- End of inner exception stack trace ---
       at Microsoft.AnalysisServices.Modeling.Generation.Flow.RuleProcessor.Process()
       at Microsoft.AnalysisServices.Modeling.Generation.ModelGenerator.Generate()
       at Microsoft.AnalysisServices.Modeling.Generation.ModelGeneratorExtention.ReGenerateModel(IDbConnection connection, XmlReader currentModelReader, XmlWriter newModelWriter)
       at Microsoft.ReportingServices.Library.GenerateModelAction.GenerateModel(DataSourceInfo dataSource)
       --- End of inner exception stack trace ---;
    ui!ReportManager_0-2!3f3c!06/13/2014-15:39:25:: e ERROR: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: An error occurred while generating model. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ModelGenerationErrorException:
    An error occurred while generating model. ---> System.InvalidOperationException: An error occurred during the generation of semantic model : [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for
    cube dimension '[$DimDate].[DimDate]'.. ---> System.InvalidOperationException: [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'. ---> Microsoft.AnalysisServices.Modeling.Generation.ModelGenerationException:
    Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.GenerateModel(String DataSource, String Model, String Parent, Property[] Properties, CatalogItem& ItemInfo, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.GenerateModel(String DataSource, String Model, String Parent, Property[] Properties, CatalogItem& ItemInfo, Warning[]& Warnings)
       at Microsoft.ReportingServices.UI.NewDependentItem.ApplyChanges()
       at Microsoft.ReportingServices.UI.BaseApplyPage.ApplyBtn_Click(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ui!ReportManager_0-2!3f3c!06/13/2014-15:39:25:: e ERROR: HTTP status code --> 200
    -------Details--------
    System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: An error occurred while generating model. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ModelGenerationErrorException: An error occurred while generating model.
    ---> System.InvalidOperationException: An error occurred during the generation of semantic model : [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'..
    ---> System.InvalidOperationException: [Create list of measure group-dimension pairs]Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'. ---> Microsoft.AnalysisServices.Modeling.Generation.ModelGenerationException:
    Unexpected error occurred : Unable to obtain cube schema object for cube dimension '[$DimDate].[DimDate]'.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.GenerateModel(String DataSource, String Model, String Parent, Property[] Properties, CatalogItem& ItemInfo, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.GenerateModel(String DataSource, String Model, String Parent, Property[] Properties, CatalogItem& ItemInfo, Warning[]& Warnings)
       at Microsoft.ReportingServices.UI.NewDependentItem.ApplyChanges()
       at Microsoft.ReportingServices.UI.BaseApplyPage.ApplyBtn_Click(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    library!ReportServer_0-1!b58!06/13/2014-15:39:25:: i INFO: Call to GetSystemPropertiesAction().
    ui!ReportManager_0-2!3f3c!06/13/2014-15:39:25:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
    library!WindowsService_2!bd0!06/13/2014-15:41:25:: i INFO: Call to CleanBatch()
    library!WindowsService_2!bd0!06/13/2014-15:41:26:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings, 0 edit sessions.
    library!WindowsService_2!bd0!06/13/2014-15:41:26:: i INFO: Call to CleanBatch() ends
    rshost!rshost!3f3c!06/13/2014-19:37:27:: i INFO: Currently registered url http://+:80/ReportServer_SQLEXPRESS/ on endpoint 2
    rshost!rshost!3f3c!06/13/2014-19:37:27:: i INFO: Currently registered url http://+:80/Reports_SQLEXPRESS/ on endpoint 3
    rshost!rshost!3f3c!06/13/2014-19:37:27:: i INFO: Endpoint 4 is disabled and no url is registered vdir=/ReportServer_SQLEXPRESS/ReportBuilder, pdir=C:\Program Files\Microsoft SQL Server\MSRS12.SQLEXPRESS\Reporting Services\ReportServer\ReportBuilder.
    rshost!rshost!e38!06/13/2014-19:37:27:: i INFO: Derived memory configuration based on physical memory as 16487384 KB
    appdomainmanager!DefaultDomain!e38!06/13/2014-19:37:27:: i INFO: Appdomain:5 ReportServer_SQLEXPRESS_0-1-130471616741701355 unregistered.
    library!WindowsService_2!22c!06/13/2014-19:37:29:: i INFO: Call to CleanBatch()
    appdomainmanager!ReportServer_0-1!e38!06/13/2014-19:37:30:: i INFO: Appdomain:5 ReportServer_SQLEXPRESS_0-1-130471616741701355 unloading
    appdomainmanager!DefaultDomain!e38!06/13/2014-19:37:33:: i INFO: Appdomain:6 ReportManager_SQLEXPRESS_0-2-130471623126349107 unregistered.
    appdomainmanager!ReportManager_0-2!e38!06/13/2014-19:37:33:: i INFO: Appdomain:6 ReportManager_SQLEXPRESS_0-2-130471623126349107 unloading
    servicecontroller!DefaultDomain!e38!06/13/2014-19:37:41:: i INFO: Recycling the service from the default domain
    dbpolling!WindowsService_2!376c!06/13/2014-19:37:41:: i INFO: EventPolling polling service stopped
    dbpolling!WindowsService_2!376c!06/13/2014-19:37:41:: i INFO: NotificationPolling polling service stopped
    dbpolling!WindowsService_2!376c!06/13/2014-19:37:41:: i INFO: SchedulePolling polling service stopped
    dbpolling!WindowsService_2!376c!06/13/2014-19:37:41:: i INFO: UpgradePolling polling service stopped
    runningjobs!WindowsService_2!e38!06/13/2014-19:37:41:: e ERROR: Timer Database Cleanup (NT Service) still executing, breaking...
    rshost!rshost!e38!06/13/2014-19:37:48:: i INFO: Application domain type WindowsService statistics: created: 3, unloaded: 3, failed: 0, timed out: 0.
    appdomainmanager!DefaultDomain!e38!06/13/2014-19:37:48:: i INFO: Appdomain:7 WindowsService_3 started.
    library!WindowsService_2!22c!06/13/2014-19:37:52:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
    or low disk condition within the database.;
    library!WindowsService_2!22c!06/13/2014-19:37:52:: w WARN: Transaction rollback was not executed connection is invalid
    dbcleanup!WindowsService_2!22c!06/13/2014-19:37:52:: e ERROR: Error in CleanExpiredSessions: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
    failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Database 'ReportServer$SQLEXPRESSTempDB' is being recovered. Waiting until recovery is finished.
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: SQLDump flags: ReferencedMemory, AllThreads, SendToWatson
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: MiniDump flags: DataSegs, UnloadedModules, ProcessThreadData
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: Dump on: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException,Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: Do not dump on: System.Threading.ThreadAbortException,System.Web.UI.ViewStateException,System.OutOfMemoryException,System.Web.HttpException,System.IO.IOException,System.IO.FileLoadException,Microsoft.SharePoint.SPException,Microsoft.ReportingServices.WmiProvider.WMIProviderException
    library!WindowsService_3!e38!06/13/2014-19:37:55:: i INFO: Minidump location: C:\Program Files\Microsoft SQL Server\MSRS12.SQLEXPRESS\Reporting Services\Logfiles
    resourceutilities!WindowsService_3!e38!06/13/2014-19:37:56:: i INFO: Reporting Services starting SKU: Developer

    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

  • Distinct count inside a measure group with other measures

    Hello,
    I have 1 distinct count inside a measure group with other measures, sum, count etc. I know this is not recommended due to poor processing performance and query response time.
    Processing performance I can live with if it means not having another measure group, which increases processing time anyway.
    I have used the recommended approach before and it generated many questions about what this second measure group is for (visible via excel), even though I made the distinct count appear in the main measure group via a calculated measure.
    (it would be nice if you could hide measure groups)
    However my question is: is query response time only effected when the distinct count is used in the query? Or is query response time effected regardless if the distinct count is used or not??
    Below is an extract from the 2005 distinct count optimizer white paper. It’s not completely clear but I assume if effects queries regardless if distinct count is used or not?
    "By adding other measures to the measure group holding a distinct count measure, all of the other measures will be at the same granularity as the distinct count measure, resulting in inefficient data structures and suboptimal
    queries."

    You might also be interested in reading this blog post, which deals with a similar scenario, to get a feeling for some of the things that might be going on behind the scenes:
    http://cwebbbi.wordpress.com/2012/11/27/storage-engine-caching-measures-and-measure-groups/
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.

    Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.
    I have dropped and recreated a fact table to refresh the data as the table is having identity columns. So not able to directly insert data. After that cube is throwing above error.
    Please suggest.

    Hi Md,
    It hard to analyse the issue base on the limited information, Are there any error message on the log? Under C:\Program Files\Microsoft SQL Server\MSAS11.\OLAP\Log (this could be different for your server), there are 3 log files that are generated:
    msmdrrv.log
    FlightRecorderCurrent.trc
    FightRecorderBack.trc
    The msmdrrv.log simply points to the other two logs. There might be some detail information for this error. Please provide us the detail information about it, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • I WANT TO DO GROUPING IN WEBI

    Dear Expert,
    I want to do grouping in webi , I have Project , Marketing Element , Calendar Day and Quarter.
    When I am taking Calendar day at that time its showing perfect data ,Please see below screen shot.
    But when I am removing Calendar Day from table then its now showing me perfect data, Please  see the below screen shot.
    Please help me to resolve this issue.
    Regards,
    Divyesh Patel
    (9930578182)

    your question is not clear...
    Can you please give some more detail related to issue faced by you?
    Thanks,
    Swapnil

  • Error occurred while processing the "sales" partition of the "sales" measure group in the cube

    Hi 
    when i ran the job for processing the cube it showing the error like "error occurred while processing the sales partition of the sales measure group in the cube". but in log files no error massage was there. after get that error message we ran
    the cube manually
    at that time the cube executed  successfully. 
    my aim when the job was run it will be process automatically but it is not like that.
    can you suggest  the solution.
    thank you
    satyak248

    Hi Satyak248,
    According to your description, you get the error when using Windows Task to process a cube on a schedule, however can process the cube on SSMS successful manually, right?
    In your scenario, you can process the cube manually, the issue can be cause by Windows Task was not set correctly. So you can try to process the cube using SSIS package. The Analysis Services Processing Task in SQL Server Integration Services (SSIS) allows
    for the processing of one to many to all Analysis Services objects in an SSIS package. Once the SSIS package is created, then a job can be created within the SQL Server Management Studio which will allow for scheduling.
    http://www.mssqltips.com/sqlservertip/2994/configuring-the-analysis-services-processing-task-in-sql-server-2012-integration-services/
    Regards,
    Charlie Liao
    TechNet Community Support

  • SSAS 2008 - How to get processing times per dimension / measure group?

    Hi experts!
    SSAS 2008. I am doing analysis and I'm trying to get information (from dmv or log) about processing times per dimension / measure group. Any ideas how to do that?
    Thanks,

    also in DMV there's no column recording the processing time, so we suggest you using SSAS AMO to programmatically get the state and last processed date time. Please see:
    Analysis Management Objects (AMO)
    Hi John,
    Thanks for you info, As
    Simon Suggested there is no DMV columns available.
    You can use below link for more information.
    Programming Administrative Tasks with AMO
    Cube
    partition attributes for last processed (timestamp and status)
    Thanks
    Suhas
    Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
    My Blog
    Follow @SuhasKudekar

  • Tabular : Using Table only as Measure Group not as Dimension

    Hi there i am quite new to the Tabular model, and what i am encountering right now must be something many of you who have had the Chance, must have had to deal with.
    I am Trying to Rebuild my Cube in the Tabular Model, Thus i have inserted all the Tables that i  also have in the Cube.
    Now the Creation of Measures seemed quite simple to me, i just selected the Row i would Need, click the Summation button and i would have a Measure.
    Now the Problem i am facing is the following: I have a Measure Group named after the Fact Table, and the Fact Table also shown as a Dimension, my first thought was to hide it from the Clienttools,but i can't hide it from Clienttools because than the Measure
    Group will be hidden too,
    is there a way to Only get the Measure Group and not get the Dimension ?
    Thanks to you all in Advance :)

    Hi Victor,
    When you click "Semantics", you can choose "Attribute" or "Measure" in the "Type" column and choose "SUM/COUNT/MAX/MIN" in the "Aggregation" column.
    Best regards,
    Wenjun

  • Unexpected error durung process after adding a new measure group

    I add a new measure group with distinct count in my cube
    I process my cube then I have:
    Erreur interne : Une erreur inattendue s'est produite. Erreurs dans le moteur de stockage OLAP : Une erreur s'est produite lors du traitement de la partition 'Requirement' du groupe de mesures 'Formalized 1' pour le cube 'Requirements_view' à partir de la
    base de données SeikoCube. (internal error : unexpected error happens ... An error occured when processing the partition for measure group for the cube)
    If I delete this measure, it works well.
    Whap happens ? How could I resolve it ?
    Thanks in advance

    Hi Fiacre663,
    According to your description, you encounter the error while processing the cube after added the distinct count to cube, right? In your scenario, which process option are you used to process the cube?
    Generally, if you add a measure you are changing the structure of the cube which will invalidate the cube, the easiest way to get the cube "fully operational" again would be to do a ProcessFull. The same thing applies when removing a measure.
    Besides, please ensure that the steps to add distinct count are correct. There are different options for creating a distinct count measure in SSAS. Please refer to the link below to see the details.
    http://www.mssqltips.com/sqlservertip/3043/different-options-for-creating-a-distinct-count-measure-in-ssas/
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to Process SSAS measure groups individually through BIDS

    hi guys:
      I know how to process measure groups individually via SSMS but I just can not find it at BIDS? Can anyone point that to me?
    thanks
     Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    just found it ... sorry,  it's monday here...
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

  • Link measure group to two dimensions

    hello all - we have 3 fact tables in the data source view:
    1. salesOrders 
    2. pucrahseOrders
    3. journalEntry
    The  journalEntry fact table stores both sales and purchase orders, but each row in the journalEntry table can be linked to either salesOrders or pucrahseOrders. I created degenerate dimensions in the cube off of sales orders and purchase orders fact table
    and I am trying to link these degenerate dimensions to the journalEntry measure group. However,  the journalEntry measure group is showing no data when I link it to both the dimensions but it shows data when I link it to just one dimension.. what am I
    doing wrong? 

    They're exclusive set isnt it? ie relationship is
    either salesOrders or pucrahseOrders So when you use combination there's no data that is going to match both the condition. WHat you can do is to analyze the fact seperately using either of the dims or alternatively you can create a dimension merging
    both salesOrders and purchaseOrders using UNION ALL and use it to relate to fact.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Column missing in measure group columns list for dimension usage

    I added some new columns (dimension ids) to my fact table and refreshed the data source view. Now the new columns show up in the data source view for this fact table. But when I go to dimension usage to tie the new dimensions to this measure, I am not able
    to find the columns just added in the measure group columns list.
    What do I have to do to be able to see my new columns in this list so that I can update dimension usage.
    Thanks.

    Hi kvd123,
    According to your description, you add columns in fact table and the data source view is already refreshed. However, in dimension usage the meta data is not refreshed. Right?
    In this scenario, I suggest you redeploy your cube. Because in Analysis Services, when we modify the cube, the changes are recorded in xxxxx.cube XML file. After you redeploy the cube, those changes are copied to Analysis Services server. Then
    the source data will reload into the measure groups.
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Cube Processing - process Dimension before Measure Groups? How to?

    Hi guys.
    I noticed that when you choose "Process Cube", Measure groups are processed before Dimensions. Recently I ran into an issue caused by change in data that made the Process Cube job fail, - until I manually processed all Dimensions and then run the
    "Process Cube" job again.
    - Is there any way to configure it to process Dimensions before Measure Groups???
    Cheers!

    We use SSIS to automate the cube processing using XMLA scripts. We have a control table where we maintain the list of dimensions and measure group partitions which will be iterated upon and processed by SSIS. It will also log audit information like when
    it was started, when it got ended and the process result.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • 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

  • O4G1 - Unit of measure group does not exist

    Dear all,
    This is error exists in O4H1 : Unit of measure group does not exist.
    I have created the group following by this path: Industry Solution Oil & Gas (Downstream) -> HPM  (Hydrocarbon Product Management) -> Oil- and Gas-Specific Units of Measure and Additional Stockkeeping Units -> Define additional stockkeeping units of measure (Transaction O586).
    But i don't know how to use this UOM group. Pls help!
    Thanks,
    Edited by: Le Vinh Quang on Dec 29, 2010 8:05 AM
    O4H1 --> O4G1

    Hi,
    Maintain in the Material Master data for your material.
    The UoM Group field is on the Oil-specific data tab in MM02.
    BR,
    Barna

Maybe you are looking for

  • My macbook pro burned me

    I was burned by my Macbook Pro 13.3"! I have had a few surgeries on my abdomen from cancer when I was younger and was left with a large scar from my ribs to my pelvis. I have very little feeling in that area as a result. The other day, I noticed a la

  • Applying a preset after Auto Tone

    When I import a large batch of photographs (2000+) I want to firstly run Auto Tone to get the exposure in the right ball park. Once this is done, I want to apply my own preset. This adjusts most of the settings, EXCEPT exposure which I want to retain

  • Move a photo down

    I have a photo that I need to move down 1/8" from the top of the book. I am using 'fit to page', but in the test book I printed (I need many more copies), the top tiny bit of the image is cut off. There is space in my photo at the bottom to allow a s

  • Is it possible to switch off the sound when typing

    Hello folks. I am new member. I purchased the 64g unit. It's a great piece of kit. Question. Is it possible to turn off the annoying 'beep' sounds when using the keyboard? I know I could just turn down the sound on the top but that defeats the obtjec

  • How to transfer from iPad and iPhone to new iMac

    I just purchased a new iMac, my iPhone will not sync or does not display in iTunes. Can I transfer songs, media and photos from my iPad, iPhone and iPod to my new Mac? Also, on my crashed computer (with no back up drive) has all my iTunes purchases,