Quantcast
Channel: .NET Framework inside SQL Server forum
Viewing all articles
Browse latest Browse all 780

Return multiple values from C# to MDX query

$
0
0

Hi

I have a MDX query that calls C# function that caluclates the score of an agent. It works for each agent. I can get the values for different agents but this works only in Console Application. I am not able to return multiple values as calculated measure to the cube. Is there a way I can return multiple values from C# as a measure to the cube?

I tried the following query

with member Measures.[score] as
strtoset(ClassLibrary21.rankfunction1())
select Measures.[rank] on columns,
[Dim Person].[Person ID].children on rows
from [MPCube]

The class library is returning an Array of type String. I get the following error message

"Execution of the managed stored procedure rankfunction1 failed with the following error: Microsoft::AnalysisServices::AdomdServer::AdomdException.

The System.String[] type cannot be converted to an MDX type."

Thanks

Madhavi


Madhavi Pasapula


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>