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 Reply Children
No Data