简体   繁体   中英

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

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM