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

Count based on a Filter Criteria

$
0
0

Hi,

I need to create a MDX query to count the number of quarters that have values.

The criteria is the following as is shown in the picture below:

1. for a company and a currency code

2. get the last 8 quarters, the criteria need to select from the last quarter with a value and backwards. As the example below, the selection start from 2012Q3 to 2010Q4

4. from the set result, count the number of quarters with values. based on the example below, the result should be 4

I have tried some queries but I cannot get the right count. I hope that some one can help me with this


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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