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

Calculated Member

$
0
0
I'm studying MDX and can't solve one problem. To simplify there is a fact table (fact_Proc) and two dimension (Dim1 and Dim2). The structure is:fact_Proc :id int identity(1,1)id_Dim1 int id_Dim2 intDim1 :id_Dim 1 int identity(1,1)Dim2: id_Dim 2 int identity(1,1)And then I filled with some data the fact table: ID ID_DIM1 ID_DIM21 0 12 1 23 2 34 0 4What i want is count the distinct register of the ID_DIM1 column without consider the 0 value in fact table. How i do it using the calculated member ? Do i need create a measure first ? Thanks in advance

Viewing all articles
Browse latest Browse all 1341

Trending Articles