How do I access KPI performance values โโusing ADOMD.NET?
I am trying to access KPI metadata via ADOMD.NET (using MDSCHEMA rowsets) with SQL Server / SSAS 2008. When I get a given VALUE KPI field, for example in Adventure Works, it returns what I think is a hidden measure associated with a KPI (for example, [Measures]. [Net Income]). But the MDX conditional expression associated with it matters.
Unfortunately, I cannot find this measure anywhere in the cube. I tried to return a list of measures (MDSCHEMA_MEASURES) that are not visible (limitation is used by MEASURE_VISIBILITY = 2) via ADOMD, but I still don't get any hidden KPI measures.
So how do I get these hidden KPIs so that I can get actual MDX expressions that support the KPI Value / Trend / Goal / etc ...? If you look at the Adventure Works cube, you can see that most of the KPI values โโhave MDX expressions, but I cannot recover them.
source to share