Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
430
Calculated member not appearing
posted

Hi,

I am trying to add a calculated member as follows, but nothing shows up in the pivot grid.

IHierarchy dateCalendar = this.pivotGrid.DataSource.Cube.Dimensions["Person"].Hierarchies["Person"];
        ICalculatedItemViewModel traderDiffCalcItem = new CalculatedMemberViewModel(
            dateCalendar,
            "person1 - person0",
            "person1 - person0",
            "[Person].[Person].[Person].[person1] - [Person].[Person].[Person].[person0]",
            true);
 
        this.pivotGrid.DataSource.Rows.Add(traderDiffCalcItem);

Any idea where I am going wrong?

Thanks,

Phil

Parents
  • 27093
    posted

    Hello Phil,

     

    I have been looking into your issue and what first comes to mind is that you might have too many Person hierarchies. Could you please try this like so:

     "[Person].[Person].[person1] - [Person].[Person].[person0]"

    If this is not the cause could you please provide us with a bit more information about your sample and the server you are using, so we can look into this further.

     

    Looking forward to hearing from you.

Reply Children