Articles in this section

How to add a specific Hierarchy in OlapReport

We can able to add a specific Hierarchy in OlapReport using below codesnippet.

C#

OlapReport olapReport = new OlapReport();

            olapReport.CurrentCubeName = "my_cube";


            //// Creating a dimension element object

            DimensionElement dimensiontElementProduct = new DimensionElement();

            dimensiontElementProduct.Name = "my_dim";

            dimensiontElementProduct.HierarchyName = "my_hierarchy";


            olapReport.SeriesElements.Add(new Item { ElementValue = dimensiontElementProduct });

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied