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 });