﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Data Warehousing / Analysis Services  / applying filter in MDX / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 18 Jun 2013 22:23:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: applying filter in MDX</title><link>http://www.sqlservercentral.com/Forums/Topic1381494-17-1.aspx</link><description>Have you had a look at the FILTER function?</description><pubDate>Wed, 07 Nov 2012 12:41:14 GMT</pubDate><dc:creator>mmartin1</dc:creator></item><item><title>RE: applying filter in MDX</title><link>http://www.sqlservercentral.com/Forums/Topic1381494-17-1.aspx</link><description>thanks, let me check out :-)</description><pubDate>Tue, 06 Nov 2012 23:26:09 GMT</pubDate><dc:creator>nish71</dc:creator></item><item><title>RE: applying filter in MDX</title><link>http://www.sqlservercentral.com/Forums/Topic1381494-17-1.aspx</link><description>Nish, if thats the case, why not use a Hybrid Query(Mix of MDX and SQL)See this: http://www.sqlservergeeks.com/blogs/suhas/personal/545/sql-mdx-in-one-apartment-hybrid-query</description><pubDate>Tue, 06 Nov 2012 23:10:52 GMT</pubDate><dc:creator>Raunak Jhawar</dc:creator></item><item><title>RE: applying filter in MDX</title><link>http://www.sqlservercentral.com/Forums/Topic1381494-17-1.aspx</link><description>you are right Ranuk, thanks for your inputs,  but adding "[Reseller].[Business Type].&amp;[Warehouse]" type of condition on member level is easily accomplish but adding &amp;lt;&amp;gt;, &amp;lt;=,&amp;gt;=, AND, OR, CASE stement on that level is not achiving, you can put all this condition at the end of query which will apply to full data set but requirment is to apply conditions on specific member level.</description><pubDate>Tue, 06 Nov 2012 23:01:54 GMT</pubDate><dc:creator>nish71</dc:creator></item><item><title>RE: applying filter in MDX</title><link>http://www.sqlservercentral.com/Forums/Topic1381494-17-1.aspx</link><description>Nish, you should create a new meaure For example: WITH MEMBER [Measures].[Test Measure] as ([Measures].[Reseller Sales Amount],[Geography].[Country].&amp;[United States],[Reseller].[Business Type].&amp;[Warehouse])</description><pubDate>Tue, 06 Nov 2012 22:44:51 GMT</pubDate><dc:creator>Raunak Jhawar</dc:creator></item><item><title>applying filter in MDX</title><link>http://www.sqlservercentral.com/Forums/Topic1381494-17-1.aspx</link><description>Hi,i have one MDX query which i am using for reporting, i have around 30 different fields which have different filter condition, below is the examplewith member [Measures].[COLPAS] as'([Measures].[Appointments Count])'member [Measures].[COLPA] as'([Measures].[COL VAL 1],[Garage].[Allow Cross Selling].&amp;[True])'member [Measures].[COLPASC] as'([Measures].[COL VAL 0],[Garage].[Allow Cross Selling].&amp;[False])'..............select {[Measures].[COLPAS],[Measures].[COLPA],[Measures].[COLPASC],.......} on columns,{([Garage].[Company Id].[Company Id].ALLMEMBERS * [Garage].[Garage Id].[Garage Id].ALLMEMBERS * [Garage].[Company Name].[Company Name].ALLMEMBERS ) } ON rowsFROM [CUBE]so question is if i want to apply filter on full query i can put filter condition at the end of query with WHERE which will consider full query for filter but i want to put filter on member level and sample filter condition are follow in SQLformat.AND (AL.CreatedOn &amp;gt;= @StartDate  AND AL.CreatedOn &amp;lt;= @EndDate)---------------------------------------------------------------                            AND ((@Partner = 0) OR (@Partner = 1 AND A.LeasingCompanyID &amp;gt; 0) OR (@Partner = 2     AND (A.LeasingCompanyID IS NULL OR A.LeasingCompanyID = '-2')))so how can i achieve this.</description><pubDate>Tue, 06 Nov 2012 04:47:25 GMT</pubDate><dc:creator>nish71</dc:creator></item></channel></rss>