Home      Functions     Common Solutions      Contact     

MDX Functions:
MDX Functions

Common Solutions

Common Solutions
Resource Links

MDX Books
MDX Related Software
MDX Related Blogs
Other Links

Contact Us
Microsoft SQL Server Analysis Services Function Page
Function Name: DistinctCount
Category: Statistical
Description: The DistinctCount function returns the count of distinct nonempty tuples in a set.
Syntax: DISTINCTCOUNT( «Set» )
Technet Link: MDX DistinctCount Function

The query below returns a value of 2 which is the distinct count of non empty members in the hard coded set.
      MEMBER [Measures].[DistCount] AS
      DISTINCTCOUNT({[Scenario].[Scenario].[Actual], [Scenario].[Scenario].[Budget], [Scenario].[Scenario].[Actual], [Scenario].[Scenario].[Actual]})
      {[Measures].[DistCount]} ON COLUMNS
      [Adventure Works]


Copyright 2008 by MDXpert.com.
Terms of Use                              Privacy Statement
Site Powered By - WinHost.Com