Category / Section
How to add specific Level element in OlapReport
1 min read
- How to add specific Level element in OlapReport
1.1 Description
We can able to add a specific Level Element 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.AddLevel("my_hierarchy", "my_level");
olapReport.SeriesElements.Add(new Item { ElementValue = dimensiontElementProduct }); |