Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

How can I write conditional distinct count at calculated member?

$
0
0

 

 Hi,

I need to conditional distinct count at cube. But I don't know how can I do .

My fact table below . I want to count distinct STORE_ID that AMOUNT>0 , how can I write distinct count calculated member ?

 

 
    CUSTOMER_ID          STORE_ID           PROD_ID              Amount
1173221 136928 2923205 1,555
1173221 136928 2923185 1,555
1173221 136928 2923189 1,555
1173221 136928 3146298 1,556
1173221 140772 2640408 1
1173221 140772 2640409 1
1173221 140772 2655066 -100
1173221 140772 2655067 0,833
1173225 144661 2691210 0
1314105 145837 2222856 8,75
1173221 146272 3056197 0,5

 

Thanks for your helps.

 


Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>