| MDX-Query to get count of months with sales amount > 0 in defined period |
| Written by Vidas Matelis | |||
| Thursday, 05 April 2007 18:06 | |||
|
Q: MDX query to get count of months with sales amount > 0 in defined period A: To get number of months with sales >0 you can use COUNT() function with FILTER() function inside. Example below shows Sales amount by product line in year 2003, 2004 and also shows number months in that period that specific product line had sales.
Results will be:
|
Most read
- How to install Adventure Works SQL DW and Analysis Services 2005 sample database and project
- MDX-How can I get Last (Previous) Year to Date (YTD) values?
- Analysis Services 2005 error: Errors in the metadata manager. The attribute with ID of ., Name of . refer
- MDX-How do you format or round KPI expression value?
- MDX-How do you calculate monthly average of one year, optionally including empty months?
Top Rated
- How to install Adventure Works SQL DW and Analysis Services 2005 sample database and project
- Analysis Services 2005 XMLA script to add/drop existing partition aggregate
- Why In Reporting Services MDX query disappears after leaving "Data" tab.
- When accessing calculation tab in BIDS I am getting error Unexpected error occurred
- In an MDX query how can I get the top 3 sales years based on the order quantity?
- What TCP port SQL Server Analysis Services 2005 uses
- How to calculate YTD monthly average and compare it over several years for the same selected month
- Analysis Services 2005 error: Errors in the metadata manager. The attribute with ID of ., Name of . refer

