How can I find out the datatype of measures in MDX?

天大地大妈咪最大 提交于 2019-12-11 04:23:55

问题


I am new to Microsoft SQL Server Analysis Services and MDX.

How can I find out the datatype of measures in MDX?

The measures I am trying to find the datatype for are defined using a WITH clause which as I understand means that it is possible for each measure to have multiple datatypes.


回答1:


How about the TypeName function:

WITH
Member [Measures].[My Type] as
TypeName([Measures].[My Other Measure])

Etc...

You are correct that each cell can be a different type of you have a calculations.




回答2:


You need to look via BIDS or Visual Studio.

Use the link provided by @arunbabu : http://beyondrelational.com/modules/12/tutorials/799/tutorials/17951/getting-started-with-ssas-multidimensional-part-7-creating-measures-in-ssas.aspx

Also long-time scholar on analysis services William Pearson has many helpful articles. Here is one about member properties: http://www.databasejournal.com/features/mssql/article.php/3770686/Intrinsic-Member-Properties-The-MEMBERVALUE-Property.htm

A full catalog of his articles on Database journal is here: http://www.databasejournal.com/article.php/1459531



来源:https://stackoverflow.com/questions/30801954/how-can-i-find-out-the-datatype-of-measures-in-mdx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!