I'm having a problem to set some numerics properties as Dimension, bydefault they come(in Olap cubeGeneration) as measures, but I need to get them out of that field and set those properties to Dimensions.
In the Documentation i found something like "InitializeOlapAxisElementDescriptor", but it doesnt works in my case... Have it Another way?
You are on the right track with the InitializeOlapAxisElementDescriptor event of your OLAP data source.
Using this event, you can use code like the following to create a Dimension from something that would normally be a Measure:
private void Ds_InitializeOlapAxisElementDescriptor(object sender, InitializeOlapAxisElementDescriptorEventArgs e)
if(e.OlapElementDescriptor is MeasureDescriptor)
e.OlapElementDescriptor = new HierarchyDescriptor(e.PropertyDescriptor);
Please let me know if you have any other questions or concerns on this matter.