<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use filter in MDX expression in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-use-filter-in-MDX-expression/m-p/48773#M894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple question,&amp;nbsp; I am building an information map based on a cube.&lt;/P&gt;&lt;P&gt;In the cube, there is a dimension named "District Level".&amp;nbsp; In the expression tab, it's showing "&amp;lt;&amp;lt;District Level.District Level&amp;gt;&amp;gt;".&amp;nbsp; I want to apply some filter on it (with MDX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, the value in the data are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000&lt;/P&gt;&lt;P&gt;1000&lt;/P&gt;&lt;P&gt;2000&lt;/P&gt;&lt;P&gt;3000&lt;/P&gt;&lt;P&gt;4000&lt;/P&gt;&lt;P&gt;5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to select all records between 1000 to 4000 (exclude those &amp;lt; 1000 and those &amp;gt; 4000 ie. 0000, 5000 in this case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I write the MDX?&amp;nbsp; I tried lots of things but can't make it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea is very helpful to me.&amp;nbsp; Thx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2011 06:04:53 GMT</pubDate>
    <dc:creator>Yu</dc:creator>
    <dc:date>2011-08-16T06:04:53Z</dc:date>
    <item>
      <title>How to use filter in MDX expression</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-use-filter-in-MDX-expression/m-p/48773#M894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple question,&amp;nbsp; I am building an information map based on a cube.&lt;/P&gt;&lt;P&gt;In the cube, there is a dimension named "District Level".&amp;nbsp; In the expression tab, it's showing "&amp;lt;&amp;lt;District Level.District Level&amp;gt;&amp;gt;".&amp;nbsp; I want to apply some filter on it (with MDX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, the value in the data are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000&lt;/P&gt;&lt;P&gt;1000&lt;/P&gt;&lt;P&gt;2000&lt;/P&gt;&lt;P&gt;3000&lt;/P&gt;&lt;P&gt;4000&lt;/P&gt;&lt;P&gt;5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to select all records between 1000 to 4000 (exclude those &amp;lt; 1000 and those &amp;gt; 4000 ie. 0000, 5000 in this case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I write the MDX?&amp;nbsp; I tried lots of things but can't make it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea is very helpful to me.&amp;nbsp; Thx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 06:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-use-filter-in-MDX-expression/m-p/48773#M894</guid>
      <dc:creator>Yu</dc:creator>
      <dc:date>2011-08-16T06:04:53Z</dc:date>
    </item>
    <item>
      <title>How to use filter in MDX expression</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-use-filter-in-MDX-expression/m-p/48774#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I would take a look at the documentation on filtering at &lt;A href="http://support.sas.com/documentation/cdl/en/citug/61084/HTML/default/viewer.htm#p1508ri6xxyeu9n1b8w4zmffa54p.htm"&gt;http://support.sas.com/documentation/cdl/en/citug/61084/HTML/default/viewer.htm#p1508ri6xxyeu9n1b8w4zmffa54p.htm&lt;/A&gt;.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 14:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-use-filter-in-MDX-expression/m-p/48774#M895</guid>
      <dc:creator>TSBruce</dc:creator>
      <dc:date>2011-08-16T14:08:14Z</dc:date>
    </item>
    <item>
      <title>How to use filter in MDX expression</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-use-filter-in-MDX-expression/m-p/48775#M896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yu,&lt;/P&gt;&lt;P&gt;there is not much out there on MDX in SAS so you can start looking or posting in the Microsoft boards.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Using the range function works for me but I dont know if this is what you need.&lt;/P&gt;&lt;P&gt;MDX Range:&lt;/P&gt;&lt;P&gt;SELECT &lt;BR /&gt;{&lt;BR /&gt;[DIM_PERIODE].[Hierarchy1].[All Hierarchy1].[2005] :&amp;nbsp; [DIM_PERIODE].[Hierarchy1].[All Hierarchy1].[2009]&lt;BR /&gt;} ON 0,&lt;BR /&gt;[DIM_JPI].[All DIM_JPI].Children ON 1&lt;BR /&gt;FROM mycue&lt;/P&gt;&lt;P&gt;--------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you need a bit more complex logic like &amp;lt;= then I would use a filter:&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/ms145502.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms145502.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regarding the example, I did not get it to work apart from filtering with measures (SAS OLAP).&lt;BR /&gt;I dont even know if it works with normal dimension members.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@TSBruce, the documentation has nothing to do with MDX. Why not filter in MDX instead of loading lots of unused data into dataset&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 12:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-to-use-filter-in-MDX-expression/m-p/48775#M896</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2011-08-18T12:59:09Z</dc:date>
    </item>
  </channel>
</rss>

