<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Microsoft Azure ML</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/saketbi/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/saketbi/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:32:31 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Microsoft Azure ML &amp; R Language Extensibility</title>
      <link>https://docs.microsoft.com/archive/blogs/saketbi/microsoft-azure-ml-r-language-extensibility</link>
      <pubDate>Wed, 20 Aug 2014 05:54:00 GMT</pubDate>
      <dc:creator><![CDATA[saketms79]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/saketbi/2014/08/20/microsoft-azure-ml-r-language-extensibility/</guid>
      <description><![CDATA[How to use External R packages &amp; libraries in MAML
Azure ML studio is Data Scientists&rsquo;...]]></description>
      <content:encoded><![CDATA[<h1><span style="color:#b01513;font-family:Century Gothic;">How to use External R packages &amp; libraries in MAML</span></h1>
<p><span style="font-family:Century Gothic;font-size:small;">Azure ML studio is Data Scientists&rsquo; favorite tool that provides enough functionality for creating and maintaining models for predictive analytics. However, there could be a situation when the existing modules do not suffice for an experiment or, set of requirements. In these cases, ML studio provides the facility of extending the functionality of ML Studio through the R language by using the </span><a href="https://studio.azureml.net/Help/html/30806023-392B-42E0-94D6-6B775A6E0FD5.htm"><span style="color:#4fb8c1;font-family:Century Gothic;font-size:small;">Execute R Script</span></a><span style="font-family:Century Gothic;font-size:small;"> module. This can also be used in case when you already have your ML module written in R language and you want to import it to ML studio.</span></p>
<p><span style="font-family:Century Gothic;font-size:small;">This module accepts multiple input datasets and it yields a single dataset as output. You can type an R script into the R Script parameter of the </span><a href="https://studio.azureml.net/Help/html/30806023-392B-42E0-94D6-6B775A6E0FD5.htm"><span style="color:#4fb8c1;font-family:Century Gothic;font-size:small;">Execute R Script</span></a><span style="font-family:Century Gothic;font-size:small;"> module. </span></p>
<p><span style="font-family:Century Gothic;font-size:small;">Several R packages are available in addition to the standard packages of the base installation. Currently, it is not possible for you to install R packages directly into the ML studio through the GUI. However, we can install them into the individual workspaces via R code. </span></p>
<p><span style="font-family:Century Gothic;font-size:small;">A list of the packages included in the current release is provided in the <b>List of installed packages</b> table below. </span></p>
<p><b><span style="font-family:Century Gothic;font-size:small;">Listing all currently-installed packages</span></b></p>
<p><span style="font-family:Century Gothic;font-size:small;">The list of installed packages can change. To get the complete list, include the following lines in the </span><a href="https://studio.azureml.net/Help/html/30806023-392B-42E0-94D6-6B775A6E0FD5.htm"><span style="color:#4fb8c1;font-family:Century Gothic;font-size:small;">Execute R Script</span></a><span style="font-family:Century Gothic;font-size:small;"> module send the list to the output dataset: </span></p>
<table style="width:100%;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><span style="font-family:Times New Roman;font-size:medium;"> </span>
<p><b><span style="font-family:Century Gothic;font-size:small;">#R code to be used with Execute R Script</span></b></p>
<span style="font-family:Times New Roman;font-size:medium;"> </span></td>
<td><span style="font-family:Times New Roman;font-size:medium;"> </span>
<p><b><span style="font-family:Century Gothic;font-size:small;">&nbsp;</span></b></p>
<span style="font-family:Times New Roman;font-size:medium;"> </span></td>
</tr>
<tr>
<td colspan="2"><span style="font-family:Times New Roman;font-size:medium;"> </span>
<p><span style="font-family:Century Gothic;font-size:small;">out &lt;- data.frame(installed.packages())</span></p>
<span style="font-family:Times New Roman;font-size:medium;"> </span>
<p><span style="font-size:small;"><span style="font-family:Century Gothic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maml.mapOutputPort(&quot;out&quot;)</span></span></p>
<span style="font-family:Times New Roman;font-size:medium;"> </span></td>
</tr>
</tbody>
</table>
<p><span style="font-family:Century Gothic;font-size:small;">To view the output log, run the experiment, select the </span><a href="https://studio.azureml.net/Help/html/30806023-392B-42E0-94D6-6B775A6E0FD5.htm"><span style="color:#4fb8c1;font-family:Century Gothic;font-size:small;">Execute R Script</span></a><span style="font-family:Century Gothic;font-size:small;"> module, and click the View output log link near the bottom of the module parameter pane. &nbsp;At this point, we support 400+ R packages out of MAML&rsquo;s R Engine.</span></p>
<p><span style="font-family:Century Gothic;font-size:small;">Now, to install &amp; use R language packages which are not supported by the ML studio and are required in your code, we allow the following method. </span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/1.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/1.png" border="0" /></a></p>
<p><span style="font-family:Century Gothic;font-size:small;">&nbsp;</span></p>
<h1><span style="color:#b01513;font-family:Century Gothic;">Here are the key steps:</span></h1>
<p><span style="font-family:Century Gothic;font-size:small;">&nbsp;</span><span style="font-family:Times New Roman;font-size:medium;"> </span></p>
<ul>
<li>
<p>Zip up the package(s) to be installed into your workspace for the experiment from R package repository on your machine.</p>
</li>
</ul>
<p><span style="font-family:Century Gothic;font-size:small;">Note: We might need to use multiple packages even in situations where we need only one external library in our code since it might have dependencies which are also not present by default in MAML.</span></p>
<ul>
<li>
<p>Zip all the zipped packages into another zip file so that all the required packages are bundled together and ready to go</p>
</li>
<li>
<p>Click on +New at the bottom of the page and upload the zipped file created above as a dataset</p>
</li>
<li>
<p>Verify that the file has been uploaded successfully</p>
</li>
<li>
<p>Now, in your experiment add <b>Execute R Script</b> module if it is already not added and connect the dataset input port (if needed) and type/paste your R code which uses the library that we are going to install using the external zipped packages</p>
<p>Note: There are 3 input ports on this module</p>
</li>
</ul>
<p></p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/2.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/2.png" border="0" /></a></p>
<p></p>
<ul>
<li>Drag and drop the uploaded zipped file which contains the packages to be installed</li>
</ul>
<p></p>
<ul>
<li>Use the 3<sup>rd</sup> input port in the <b>Execute R Script</b> module and connect the zipped file in the previous step</li>
</ul>
<p></p>
<ul>
<li>In the R code just before using the external library which depends on the package(s), use the following code to install the package(s). In this example, I am using the library <b><i>fpc</i></b><i>.</i></li>
</ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/3.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/3.png" border="0" /></a></p>
<p>#install package dependancies</p>
<p>install.packages(&quot;src/mclust.zip&quot;, lib = &quot;.&quot;, repos = NULL, verbose = TRUE)</p>
<p>(success.mclust &lt;- library(&quot;mclust&quot;, lib.loc = &quot;.&quot;, logical.return = TRUE, verbose = TRUE))</p>
<p>install.packages(&quot;src/flexmix.zip&quot;, lib = &quot;.&quot;, repos = NULL, verbose = TRUE)</p>
<p>(success.flexmix &lt;- library(&quot;flexmix&quot;, lib.loc = &quot;.&quot;, logical.return = TRUE, verbose = TRUE))</p>
<p>#Install actual package</p>
<p>install.packages(&quot;src/fpc.zip&quot;, lib = &quot;.&quot;, repos = NULL, verbose = TRUE)</p>
<p>(success &lt;- library(&quot;fpc&quot;, lib.loc = &quot;.&quot;, logical.return = TRUE, verbose = TRUE))</p>
<p>#use library</p>
<p><b>library(fpc,lib.loc = &quot;.&quot;)</b></p>
<p></p>
<ul>
<li>Post this run the experiment and use the intended library.</li>
</ul>
<p></p>
<ul>
<li>Once the run is complete, we can look at the output of Execute R Script. Please note that there are two output ports. The first one</li>
</ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/4.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/4.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/4.png" border="0" /></a></p>
<p></p>
<ul>
<li>Output port 1 is used to visualize and <b>&ldquo;Save as Dataset&rdquo;</b> if there is a dataset output while output port 2 outputs any standard output like verbose output and R plots. In the example here it shows that all the packages which were presented to <b>Execute R Script</b> module from the 3<sup>rd</sup> input port inside of a zipped file were extracted to be used and placed into the path <b>[&ldquo;src&rdquo;].</b></li>
</ul>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/5.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/5.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/5.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/5.png" border="0" /></a></p>
<p><span style="font-family:Century Gothic;"><span style="font-size:small;">Additionally, in case you need to use your existing <b>.R and .RData</b> files in MAML, please use the same method as above of zip and upload. Additionally, in the R code inside of the Execute R Script module, please use the following section to provide the names of the files. The zipped file input via the 3</span><sup><span style="font-size:xx-small;">rd</span></sup><span style="font-size:small;"> input port will extract the contents of the zipped file into the path <b>[&ldquo;SRC&rdquo;]</b> in the workspace sandbox. </span></span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/6.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/6.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/6.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/6.png" border="0" /></a></p>
<p><a href="https://channel9.msdn.com/Blogs/Windows-Azure/R-in-Azure-ML-Studio">https://channel9.msdn.com/Blogs/Windows-Azure/R-in-Azure-ML-Studio</a></p>
<p>**Note: Please take into account the legalities of using the R Language Packages while using this functionality.</p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>How to create Self-service BI reports having Calendar controls using Report Builder 3.0</title>
      <link>https://docs.microsoft.com/archive/blogs/saketbi/how-to-create-self-service-bi-reports-having-calendar-controls-using-report-builder-3-0</link>
      <pubDate>Mon, 08 Apr 2013 03:23:00 GMT</pubDate>
      <dc:creator><![CDATA[saketms79]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/saketbi/2013/04/08/how-to-create-self-service-bi-reports-having-calendar-controls-using-report-builder-3-0/</guid>
      <description><![CDATA[Introduction
In this blog, we are going to learn how to create reports on the fly using report...]]></description>
      <content:encoded><![CDATA[<h2 style="text-align: justify;"><span style="font-family: courier new,courier;">Introduction</span></h2>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">In this blog, we are going to </span><span style="font-family: courier new,courier;">learn how to create reports on the fly using report builder 3.0 and also how to </span><span style="font-family: courier new,courier;">add parameters to the reports created using this method.</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;"><strong>Important Note: Please note that in this approach we haven&rsquo;t had to modify the underlying MDX query at all.</strong></span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;"><strong></strong>&nbsp;</span></p>
<h3 style="text-align: justify;"><span style="font-family: courier new,courier; text-decoration: underline;">Assumptions</span></h3>
<ul style="text-align: justify;">
<li><span style="font-family: courier new,courier;">The cube is well formed based on MS guidelines. The Data model conforms to standards and there are no glitches</span></li>
<li><span style="font-family: courier new,courier;">The attribute relationships and Hierarchies have been made properly.</span></li>
<li><span style="font-family: courier new,courier;">This demo has been made using the ADVENTUREWORKSDW database on a cube built for INTERNET SALES related measures groups</span></li>
</ul>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">Some MDX Terms explained:</span></p>
<ul style="text-align: justify;">
<li><span style="font-family: courier new,courier;">SET &ndash; A set is an accumulation of members of the same kind</span></li>
<li><span style="font-family: courier new,courier;">MEMBER &ndash; A member represents a particular value in the cube</span></li>
<li><span style="font-family: courier new,courier;">STRTOSET &ndash; Used when we want to represent multiple members from a dimension/measure. The members could be from the same column/attribute or, multiple attributes.</span></li>
<li><span style="font-family: courier new,courier;">When we use STRTOSET in the FROM clause like the following, we mean to ask the engine to use the current set of members coming in from a MULTI-value parameter.</span></li>
</ul>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">SELECT NON EMPTY { [Measures].[Sales Amount] } ON COLUMNS,&nbsp;&nbsp;NON EMPTY { ([Order</span><br /><span style="font-family: courier new,courier;">Date].[Date Key].[Date Key].ALLMEMBERS *&nbsp;[Dim SalesTerritory].[Sales Territory Key].[Sales Territory Key].ALLMEMBERS</span><br /><span style="font-family: courier new,courier;">*&nbsp;&nbsp;[DimCustomer].[Customer Key].[Customer Key].ALLMEMBERS )</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;}&nbsp;DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME</span><br /><span style="font-family: courier new,courier;">ON ROWS FROM</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;(</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;SELECT</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;(</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;STRTOSET(@DimSalesTerritorySalesTerritoryKey,</span><br /><span style="font-family: courier new,courier;">CONSTRAINED) ) ON</span><br /><span style="font-family: courier new,courier;">COLUMNS</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;FROM ( SELECT ( STRTOMEMBER(@FromOrderDateFullDateAlternateKey, CONSTRAINED) :</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;STRTOMEMBER(@ToOrderDateFullDateAlternateKey, CONSTRAINED) ) ON COLUMNS</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;FROM [Adventure Works DW]</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;)</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;) CELL PROPERTIES VALUE,</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;BACK_COLOR,</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;FORE_COLOR,</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;FORMATTED_VALUE,</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">&nbsp;FORMAT_STRING, FONT_NAME,</span><br /><span style="font-family: courier new,courier;">FONT_SIZE, FONT_FLAGS</span></p>
<p style="text-align: justify;">&nbsp;</p>
<ul style="text-align: justify;">
<li><span style="font-family: courier new,courier;">STRTOMEMBER &ndash; This function converts a STRING</span><br /><span style="font-family: courier new,courier;">value into a valid member type.</span></li>
</ul>
<p style="text-align: justify;"><span style="font-family: courier new,courier; text-decoration: underline;">&nbsp;</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier; text-decoration: underline;">Steps to create the report (with screenshots)</span></p>
<p style="text-align: justify;"><span style="font-family: courier new,courier;">Click on New Report from the menu on the left hand side.</span></p>
<p style="text-align: justify;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/1805.1.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/1805.1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/1805.1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/1805.1.jpg" alt="" border="0" /></a></p>
<p style="text-align: justify;">&nbsp;</p>
<p><span style="font-family: courier new,courier;">Now, Select Tablix (Table or, Matrix Wizard).</span></p>
<p style="text-align: justify;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7750.2.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7750.2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7750.2.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7750.2.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Create a new data source or, use a shared Datasource.</span></p>
<p>&nbsp;<span style="font-family: courier new,courier;">Select the following option for using a connection to SSAS.</span></p>
<p><br /> <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7802.3.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7802.3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7802.3.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7802.3.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Then build the connection string.</span></p>
<p><span style="font-family: courier new,courier;">Post building the connection</span><br /><span style="font-family: courier new,courier;">string, drag and drop your Measures and Dimension attributes into the right</span><br /><span style="font-family: courier new,courier;">side pane.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/3817.4.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/3817.4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/3817.4.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/3817.4.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">It will look something like the </span><span style="font-family: courier new,courier;">following.</span></p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/0361.5.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/0361.5.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/0361.5.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/0361.5.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Now, add filters to filter your </span><span style="font-family: courier new,courier;">result row-set on the top pane.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/1401.6.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/1401.6.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/1401.6.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/1401.6.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Add more filters if needed.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/6864.7.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/6864.7.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/6864.7.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/6864.7.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Select the check box located at </span><span style="font-family: courier new,courier;">the right corner of the parameter row.</span></p>
<p><br /> <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/1667.8.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/1667.8.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/1667.8.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/1667.8.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Arrange fields by dragging and </span><span style="font-family: courier new,courier;">dropping fields from the list of fields.</span></p>
<p><br /> <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/0207.9.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/0207.9.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/0207.9.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/0207.9.jpg" alt="" border="0" /></a><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/2402.10.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/2402.10.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/2402.10.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/2402.10.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Now, you may want to look for </span><span style="font-family: courier new,courier;">options to decide the function that will be used for the Values field.</span></p>
<p><br />&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/8103.11.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/8103.11.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/8103.11.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/8103.11.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-family: courier new,courier;">Select the LAYOUT.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7002.12.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7002.12.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7002.12.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7002.12.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">It should look something like the following once all </span><span style="font-family: courier new,courier;">selections have been made.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7870.13.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7870.13.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7870.13.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7870.13.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">In case you want to use a </span><span style="font-family: courier new,courier;">CALENDAR control on the DATE filters, here is what you can do.</span></p>
<p><span style="font-family: courier new,courier;">Go ahead and modify the type of </span><span style="font-family: courier new,courier;">the Report Parameters which are automatically added when you add a DATE RANGE </span><span style="font-family: courier new,courier;">filter in the design window.</span></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/2335.14.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/2335.14.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/2335.14.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/2335.14.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-family: courier new,courier;">Now, set the AVAILABLE VALUES </span><span style="font-family: courier new,courier;">section to NONE</span></p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/3441.15.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/3441.15.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/3441.15.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/3441.15.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">As well as, the Default VALUE </span><span style="font-family: courier new,courier;">section.</span></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/5758.16.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/5758.16.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/5758.16.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/5758.16.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-family: courier new,courier;">Do, the same for both the </span><span style="font-family: courier new,courier;">FROMDATE &amp; TODATE parameters.</span></p>
<p><span style="font-family: courier new,courier;">Now, come back to the DATASET and </span><span style="font-family: courier new,courier;">open PROPERTIES.</span></p>
<p><span style="font-family: courier new,courier;">You will see that by default the </span><span style="font-family: courier new,courier;">Query Parameters are mapped to Report Parameters of the same name.</span></p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/5187.17.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/5187.17.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/5187.17.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/5187.17.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Now, let&rsquo;s modify the value by </span><span style="font-family: courier new,courier;">providing an expression here as follows in both FROM DATE and TO DATE:</span></p>
<p><span style="background-color: #ffff00;"><span style="font-family: courier new,courier;">="[Order Date].[Full Date Alternate </span><span style="font-family: courier new,courier;">Key].&amp;[" + Format(Parameters!FromOrderDateFullDateAlternateKey.Value, </span><span style="font-family: courier new,courier;">"yyyy-MM-dd") + "T00:00:00]"</span></span></p>
<p><span style="font-family: courier new,courier;">Note:</span></p>
<ul>
<li><span style="font-family: courier new,courier;">We are using this expression to convert the date </span><span style="font-family: courier new,courier;">format supplied by the calendar control which will look like &lsquo;2/13/2005&rsquo; to the </span><br /><span style="font-family: courier new,courier;">stored value in the FULLDATEALTERNATEKEY column/attribute of the DATE dimension</span><br /><span style="font-family: courier new,courier;">of the cube i.e. &lsquo;2005-02-13T00:00:00&rsquo;.</span></li>
<li><span style="font-family: courier new,courier;">Here "[Order Date].[Full Date Alternate Key].&amp;[" + has </span><span style="font-family: courier new,courier;">been added to fully qualify the member name</span></li>
<li><span style="font-family: courier new,courier;">FORMAT function has been used to format the date </span><span style="font-family: courier new,courier;">coming from the calendar control into the member format from the cube</span></li>
<li><span style="font-family: courier new,courier;">And &nbsp;"T00:00:00]" </span><span style="font-family: courier new,courier;">has been concatenated to the expression to convert the value so far from string </span><span style="font-family: courier new,courier;">to date</span></li>
</ul>
<p><span style="font-family: courier new,courier;">Repeat </span><span style="font-family: courier new,courier;">the above for TO DATE as well.</span></p>
<p><span style="font-family: courier new,courier;">Now, </span><span style="font-family: courier new,courier;">your DATASET Properties -&gt; Parameters should look like this:</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/8053.18.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/8053.18.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/8053.18.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/8053.18.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-family: courier new,courier;">Now, </span><span style="font-family: courier new,courier;">your report viewer report is ready to run.</span></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/2804.20.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/2804.20.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/2804.20.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/2804.20.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-family: courier new,courier;">Please click on the RUN button on </span><span style="font-family: courier new,courier;">the top LEFT. Choose the dates in the Calendar controls.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/4011.21.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/4011.21.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/4011.21.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/4011.21.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Note: Throws the error about the </span><span style="font-family: courier new,courier;">CONSTRAINED flag if you happen to select a date beyond the available limit in </span><span style="font-family: courier new,courier;">the DATE dimension.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif;">An error has occurred during report processing.</span><br /><span style="font-family: arial,helvetica,sans-serif;">(rsProcessingAborted)</span></p>
<p><span style="font-family: arial,helvetica,sans-serif;">Query execution failed for dataset 'DimSalesTerritorySalesTerritoryKey'.</span><br /><span style="font-family: arial,helvetica,sans-serif;">(rsErrorExecutingCommand)</span></p>
<p><span style="font-family: arial,helvetica,sans-serif;">Query (1, 588) The restrictions imposed by the CONSTRAINED</span><br /><span style="font-family: arial,helvetica,sans-serif;">flag in the STRTOMEMBER function were violated.</span></p>
<p><span style="font-family: courier new,courier;">To avoid hitting this issue we </span><span style="font-family: courier new,courier;">can use the following expression in the DATASET -&gt; PROPERTIES -&gt; </span><span style="font-family: courier new,courier;">PARAMETERS.</span></p>
<p><span style="font-family: courier new,courier;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7181.22.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7181.22.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/7181.22.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/7181.22.jpg" alt="" border="0" /></a></span></p>
<p><span style="font-family: courier new,courier;">=IIF((Parameters!FromOrderDateFullDateAlternateKey.Value)&lt;= </span><span style="font-family: courier new,courier;">Today(),("[Order Date].[Full Date Alternate Key].&amp;[" +</span><br /><span style="font-family: courier new,courier;">Format(Parameters!FromOrderDateFullDateAlternateKey.Value, </span><span style="font-family: courier new,courier;">"yyyy-MM-dd") + "T00:00:00]"),"[Order Date].[Full Date Alternate</span><br /><span style="font-family: courier new,courier;">Key].&amp;[2008-03-21T00:00:00]")</span></p>
<p><span style="font-family: courier new,courier;">Here the highlighted value is the </span><span style="font-family: courier new,courier;">last valid date key value in the Date dimension.</span></p>
<p><span style="font-family: courier new,courier;">Moving on&hellip;.</span></p>
<p><span style="font-family: courier new,courier;">After selecting a value(s) for the 3<sup>rd </sup></span><span style="font-family: courier new,courier;">parameter, once we click on View Report, we can see the following. </span></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/5164.23.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/5164.23.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/5164.23.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/5164.23.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<h2><span style="font-family: courier new,courier; text-decoration: underline;">How to handle non-date parameters (Sales Territory Key in my case)</span></h2>
<p><span style="font-family: courier new,courier;">For parameters other than Dates, </span><span style="font-family: courier new,courier;">we need to provide AVAILABLE value as follows (when you add a filter, this is </span><span style="font-family: courier new,courier;">added by default):</span></p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/4130.24.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/4130.24.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/4130.24.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/4130.24.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">This is because when the Query </span><span style="font-family: courier new,courier;">parameter is equated with the report parameter, it is by default equated with </span><span style="font-family: courier new,courier;">this value.</span></p>
<div>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/4265.25.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/4265.25.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/4265.25.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/4265.25.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">The </span><span style="font-family: courier new,courier;">query looks something like this. Notice the STRTOSET.</span></p>
</div>
<p><span style="font-family: courier new,courier;">SELECT NON</span><br /><span style="font-family: courier new,courier;">EMPTY { [Measures].[Sales Amount] } ON COLUMNS,</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;NON EMPTY { ([Order Date].[Date Key].[Date Key].ALLMEMBERS *</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;[Dim Sales Territory].[Sales Territory</span><br /><span style="font-family: courier new,courier;">Key].[Sales Territory Key].ALLMEMBERS *</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;[Dim Customer].[Customer Key].[Customer Key].ALLMEMBERS )</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;}</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;DIMENSION PROPERTIES MEMBER_CAPTION,</span><br /><span style="font-family: courier new,courier;">MEMBER_UNIQUE_NAME ON</span><br /><span style="font-family: courier new,courier;">ROWS FROM</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;(</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;SELECT</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;(</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;STRTOSET(@DimSalesTerritorySalesTerritoryKey, CONSTRAINED)</span><br /><span style="font-family: courier new,courier;">) ON COLUMNS</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;FROM ( SELECT ( STRTOMEMBER(@FromOrderDateFullDateAlternateKey,</span><br /><span style="font-family: courier new,courier;">CONSTRAINED) :</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;STRTOMEMBER(@ToOrderDateFullDateAlternateKey,</span><br /><span style="font-family: courier new,courier;">CONSTRAINED) ) ON</span><br /><span style="font-family: courier new,courier;">COLUMNS</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;FROM</span><br /><span style="font-family: courier new,courier;">[Adventure Works DW]</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;)</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;) CELL PROPERTIES VALUE,</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;BACK_COLOR,</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;FORE_COLOR,</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;FORMATTED_VALUE,</span></p>
<p><span style="font-family: courier new,courier;">&nbsp;FORMAT_STRING,</span><br /><span style="font-family: courier new,courier;">FONT_NAME, FONT_SIZE,</span><br /><span style="font-family: courier new,courier;">FONT_FLAGS</span></p>
<div>
<p>&nbsp;</p>
</div>
<p>&nbsp;</p>
<p><span style="font-family: courier new,courier;">Another thing to note here is </span><span style="font-family: courier new,courier;">that the PARAMETERS should be in the correct SEQUENCE everywhere.</span></p>
<p><br /><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/3312.26.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/3312.26.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/3312.26.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/3312.26.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">We can use the following method </span><span style="font-family: courier new,courier;">(right click) to move a filter UP/DOWN to make it in the correct sequence.</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/6102.27.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/6102.27.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/84/6102.27.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-84/6102.27.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: courier new,courier;">Also, the sequence should be the </span><span style="font-family: courier new,courier;">same everywhere i.e. in the Parameters tab of the DATASET properties as well as </span><span style="font-family: courier new,courier;">the report itself.</span></p>
<p><span style="font-family: courier new,courier; text-decoration: underline;">Conclusion</span></p>
<p><span style="font-family: courier new,courier;">Report builder is a very </span><span style="font-family: courier new,courier;">efficient tool for realizing self-service BI reporting. For using this tool to </span><span style="font-family: courier new,courier;">generate reports based on multi-dimensional cubes on the fly, one does not need </span><span style="font-family: courier new,courier;">to possess knowledge of MDX/DAX or, any other multi-dimensional query language. </span><span style="font-family: courier new,courier;">This tool can be downloaded freely from the following location.</span></p>
<p><span style="font-family: courier new,courier;"><a href="https://www.microsoft.com/en-in/download/details.aspx?id=6116">https://www.microsoft.com/en-in/download/details.aspx?id=6116</a></span></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>