Articles in this section
Category / Section

How to add a specific Hierarchy in OlapReport

1 min read

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)
Please sign in to leave a comment
Access denied
Access denied