Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Distinct count

$
0
0
Hi all,Prolly easy question, but for some reason the query below does not return the distinct count but just the count. Should be 16 but it's retruning 17. Any help? :)WITH SET [MySet] ASNONEMPTY(FILTER([Geography].[City].[City].Members,instr(left([Geography].[City].currentmember.name,1), 'A') > 0),[Measures].[Internet Order Count])MEMBER [Measures].[CountMembers] ASDISTINCTCOUNT([MySet])//why not distinct?SELECT {[Measures].[Internet Order Count],[Measures].[CountMembers]}ON COLUMNS,[MySet]ON ROWSFROM [Adventure Works] 

Viewing all articles
Browse latest Browse all 1341

Trending Articles