<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Rakesh Ramblings</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/rakesh_ramblings/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/feed.xml</link>
    <description>All you need to know about Microsoft Business Intelligence !</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:25:12 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Implementing Role Based Access for PowerPivot</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/implementing-role-based-access-for-powerpivot</link>
      <pubDate>Fri, 17 May 2013 21:09:00 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2013/05/17/implementing-role-based-access-for-powerpivot/</guid>
      <description><![CDATA[This has been a very long week, and I have written a paper which will guide you step by step in...]]></description>
      <content:encoded><![CDATA[<p>This has been a very long week, and I have written a paper which will guide you step by step in implementing role based access for PowerPivot.</p>
<p>You can download the file from <a href="http://sdrv.ms/11LFHe2" target="_blank">here</a>.</p>
<p>&nbsp;</p>
<p>Share your feedback's and comment's below</p>]]></content:encoded>
    </item>
    <item>
      <title>Analyzing LinkedIn Connections using Spatial Query!</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/analyzing-linkedin-connections-using-spatial-query</link>
      <pubDate>Thu, 16 May 2013 06:26:00 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2013/05/16/analyzing-linkedin-connections-using-spatial-query/</guid>
      <description><![CDATA[Let me confess before I even start! I am an hardcore LinkedIn fan. I love to connect with people who...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;">Let me confess before I even start! I am an hardcore LinkedIn fan. I love to connect with people who have a similar passion for Technology,Share my thoughts and learn from others experience.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">As all of you might know,I am an Analytics Guy <img class="wlEmoticon wlEmoticon-hotsmile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/6253.wlEmoticon-hotsmile_27380BEA.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/6253.wlEmoticon_2D00_hotsmile_5F00_27380BEA.png" alt="Hot smile" /> and always intrigued by numbers. This led me to understand my connections in LinkedIn. In the process I saw an graph which was absolutely stunning and tickled my brains to do some work to replicate the same in SQL Server Reporting Services. I always believed and still believe that SQL Server can do anything! absolutely anything. It&rsquo;s just that you know how to use it<img class="wlEmoticon wlEmoticon-winkingsmile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/3343.wlEmoticon-winkingsmile_2CA67C8E.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/3343.wlEmoticon_2D00_winkingsmile_5F00_2CA67C8E.png" alt="Winking smile" />.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">Below was the chart which made me wear my thinking hat!</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/4786.LinkedinConnections2_53085FD9.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/4786.LinkedinConnections2_5F00_53085FD9.png"><img style="margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" title="LinkedinConnections2" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/6471.LinkedinConnections2_thumb_0ADAA3FD.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/6471.LinkedinConnections2_5F00_thumb_5F00_0ADAA3FD.png" alt="LinkedinConnections2" width="244" height="227" border="0" /></a></p>
<p><span style="font-size: small;">So, what&rsquo;s so intriguing about it? Yeah, it looks more like a scatter plot chart with varying size depending on the measure? hmmmmm&hellip;&hellip;. </span></p>
<p><span style="font-size: small;">Here is the catch, You need to have the largest circle(Of course it has highest radius!) in the middle and rest of the circles surrounding it with appropriate radius. Here, I have the highest connection with a company X which has around 77 connections in the middle.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">Well, Its not that tough when you know SQL Server spatial will solve your problem to create such a intriguing chart.</span></p>
<p><span style="font-size: small;">Enough of background! So, How was it done?</span></p>
<ul>
<li><span style="font-size: small;">Created a function which will return the <strong>point co-ordinates </strong>of each location within equal interval depending on the number of companies.</span></li>
<li><span style="font-size: small;">Created a function which will return the <strong>radius of each circle</strong> depending on the measure size.</span></li>
<li><span style="font-size: small;">Created a SSRS report to do the final touches <img class="wlEmoticon wlEmoticon-openmouthedsmile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/0118.wlEmoticon-openmouthedsmile_1B729EEB.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/0118.wlEmoticon_2D00_openmouthedsmile_5F00_1B729EEB.png" alt="Open-mouthed smile" /></span></li>
</ul>
<p>&nbsp;</p>
<p><span style="font-size: small;">Here is the output in SQL Server and after little bit of tinkering the output in SSRS :</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/8078.SpatialInSSRS2_0FDCE1AC.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/8078.SpatialInSSRS2_5F00_0FDCE1AC.png"><img style="margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" title="SpatialInSSRS2" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/7457.SpatialInSSRS2_thumb_35665F0D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/7457.SpatialInSSRS2_5F00_thumb_5F00_35665F0D.png" alt="SpatialInSSRS2" width="244" height="228" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-size: small;">I have uploaded the scripts and Reports in my <a href="http://sdrv.ms/183EzkB">skydrive</a>. Feel free to download and showcase this to your client and partners.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">Happy reading and enjoy the weekend.</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Sparse columns, An oblivious for any data/dimensional modeler !</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/sparse-columns-an-oblivious-for-any-datadimensional-modeler</link>
      <pubDate>Fri, 10 May 2013 06:22:25 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2013/05/10/sparse-columns-an-oblivious-for-any-datadimensional-modeler/</guid>
      <description><![CDATA[Have you anytime been knocked on the head by the client on how can you as a data modeler taken...]]></description>
      <content:encoded><![CDATA[<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/5102.Iron-man-3_22E345BF.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/5102.Iron_2D00_man_2D00_3_5F00_22E345BF.jpg"><font size="3"><img title="Iron man 3" style="display: inline;" alt="Iron man 3" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/2425.Iron-man-3_thumb_2DABC30C.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/2425.Iron_2D00_man_2D00_3_5F00_thumb_5F00_2DABC30C.jpg" width="734" height="261" /></font></a></p>  <p><font size="3">Have you anytime been knocked on the head by the client on how can you as a data modeler taken actions to reduce space usage in the server? </font></p>  <p><font size="3"></font></p>  <p><font size="3">One of the most oblivious to any data/dimensional modeler is the efficient way of minimizing the space used by the database on the disk. So how can we&#160; achieve that? Below is one of the trick which can be used. Sparse columns in SQL Server. It is an fun-tas-tic piece of thing which can save you lot of space of your database.</font></p>  <p><font size="3"></font></p>  <p><font size="3">1. What is a sparse column?</font></p>  <blockquote>   <p><font size="3">A sparse column in&#160; a table is the one which contains a lot of <strong><font color="#0000ff">NULL</font></strong> values. It may be required as per design.</font></p> </blockquote>  <p><font size="3">2. What are the possible cases of sparse column?</font></p>  <blockquote>   <p><font size="3">In the design of any table there will be columns which can take NULL values and most of the rows in the column will be NULL due to nature of transaction. For ex: Spouse Name, If 50% are more are not married like me <img class="wlEmoticon wlEmoticon-winkingsmile" style="style" alt="Winking smile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/7144.wlEmoticon-winkingsmile_04C0AE03.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/7144.wlEmoticon_2D00_winkingsmile_5F00_04C0AE03.png" /> then you will have up to or more than 50% rows being null. </font></p> </blockquote>  <p><font size="3">3.How to we efficiently handle the sparse column in terms of minimizing the space?</font></p>  <blockquote></blockquote>  <blockquote>   <p><font size="3">Use SPARSE keyword when you are defining a table to optimize the columns which contain high % of NULL Values.</font></p>    <p><font size="3"></font></p> </blockquote>  <p><font size="3">In this blog, I have identified&#160; two main areas where I could see the optimization of space.</font></p>  <p><font size="3">1. Data space ( With and without SPARSE keyword )</font></p>  <p><font size="3">2. Index space ( Filtered and Normal Index on top of sparse column defined using SPARSE keyword )</font></p>  <p><font size="3">3. Combining the both ( 1 and 2 )</font></p>  <p><font size="3"></font></p>  <p><font size="3">The Sparse Keyword optimization algorithm works differently for different data types.</font></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/3252.Sparse_filtered_index_4B3D9E0B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/3252.Sparse_5F00_filtered_5F00_index_5F00_4B3D9E0B.png"><img title="Sparse_filtered_index" style="display: inline; background-image: none;" border="0" alt="Sparse_filtered_index" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/6740.Sparse_filtered_index_thumb_0739B9F4.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/6740.Sparse_5F00_filtered_5F00_index_5F00_thumb_5F00_0739B9F4.png" width="741" height="391" /></a></p>  <p>&#160;</p>  <p><strong><font size="3">Combining the Data + Index space usage</font></strong></p>  <p><strong><font size="3"></font></strong></p>  <p><font size="3">&#160;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/5633.Total_2055142C.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/5633.Total_5F00_2055142C.png"><img title="Total" style="display: inline; background-image: none;" border="0" alt="Total" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/metablogapi/1376.Total_thumb_10D2025D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53-metablogapi/1376.Total_5F00_thumb_5F00_10D2025D.png" width="748" height="363" /></a></font></p>  <p>&#160;</p>  <p><font size="3">So, if you can combine the filtered index on top of a sparse column you can have a space saving of upto 70% * in certain cases.</font></p>  <p><font size="3"></font></p>  <p><font size="3">But there are certain caveats like the SPARSE keyword cannot be used on certain data types and memory restrictions for updating the SPARSE columns.</font></p>  <p><font size="3">For more information on the above points refer the MSDN blog :</font><font size="3"><a href="http://msdn.microsoft.com/en-us/library/cc280604.aspx">http://msdn.microsoft.com/en-us/library/cc280604.aspx</a></font></p>  <p><font size="3"></font></p>  <p><font size="3">That’s all for now, please share your feedbacks and comments.</font></p>  <p><font size="3"></font></p>  <p><font size="3"></font></p>  <blockquote>   <p><font size="3">&#160;</font></p></blockquote>]]></content:encoded>
    </item>
    <item>
      <title>Analyzing Aliens preference using Powerview</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/analyzing-aliens-preference-using-powerview</link>
      <pubDate>Mon, 08 Apr 2013 07:36:00 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2013/04/08/analyzing-aliens-preference-using-powerview/</guid>
      <description><![CDATA[The day I watched&nbsp;Aliens, I was always&nbsp;fascinated about that topic. More than Aliens I was...]]></description>
      <content:encoded><![CDATA[<p style="font: 12px/normal Arial, Helvetica, sans-serif; text-align: center; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font-family: trebuchet ms,geneva; font-size: medium;">The day I watched<span class="Apple-converted-space">&nbsp;</span><a title="http://www.imdb.com/title/tt0090605/?ref_=fn_al_tt_1" href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Aliens">Aliens</a>, I was always&nbsp;fascinated about that topic. More than Aliens I was more&nbsp;interested in Crop Circles. Crop Circles in particular because it has a lot of fallacy ( As I believe in Aliens!) :) and also due to the reason of its complexity and geometry involved in it.&nbsp;So, I took up a challenge to unearth the mystery behind the same.&nbsp;</span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font-family: trebuchet ms,geneva; font-size: medium;">I<span class="Apple-converted-space">&nbsp;</span><a title="www.bing.com" href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Bing">Bing</a>'ed &nbsp;to get some facts about the Crop Circle Sightings around UK for the year 2009 and Also visited<span class="Apple-converted-space">&nbsp;</span><a title="http://www.metoffice.gov.uk/public/weather/climate" href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Met Office">Met Office</a>&nbsp;to collect few data points on how the weather was for the year 2009. All the weather was an Avg. Temperature from Min/Max of the day, Rainfall(mm) and also sunshine for that particular month in UK.</span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font-family: trebuchet ms,geneva; font-size: medium;">After Importing the data, I had to insert few images in my PowerPivot to make it&nbsp;interesting to present in visualization, So had to download and add those images in my PowerPivot.</span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font-family: trebuchet ms,geneva; font-size: medium;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/2251.Powerpivot.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/2251.Powerpivot.png"><img style="margin-right: auto; margin-left: auto; display: block;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/2251.Powerpivot.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/2251.Powerpivot.png" alt="" width="740" height="247" border="0" /></a></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font-family: trebuchet ms,geneva; font-size: medium;">The above image is posted as most of the developers in msdn&nbsp;ask&nbsp;Questions on how&nbsp;to upload image in PowerPivot.</span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font-family: trebuchet ms,geneva; font-size: medium;">Anyways, Once we had the data I used Powerview (Office 2013) to visualize the data.</span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6562.AllinOne.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6562.AllinOne.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6562.AllinOne.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6562.AllinOne.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color: #000000; font-family: trebuchet ms,geneva;"><strong><span style="font-size: small;">Ok, Now we know that Aliens like April,June and July a lot ! and Barley and Wheat ! You know why barley and wheat :) </span></strong></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color: #000000; font-family: trebuchet ms,geneva;"><strong><span style="font-size: small;">So, Whats so special in April,June and July Lets see that weather scorecard.</span></strong></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color: #000000; font-family: trebuchet ms,geneva;"><strong><span style="font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0181.Sunshine.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0181.Sunshine.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0181.Sunshine.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0181.Sunshine.png" alt="" border="0" /></a></span></strong></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="text-decoration: underline;"><span style="color: #000000; font-family: trebuchet ms,geneva;"><strong><span style="font-size: small;">Conclusion :</span></strong></span></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color: #000000; font-family: trebuchet ms,geneva;"><strong><span style="font-size: small;">1. Aliens like to relax in the sunshine</span></strong></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color: #000000; font-family: trebuchet ms,geneva;"><strong><span style="font-size: small;">2. During sunshine they also like to prepare Juice ( Using Barley and Wheat ! :)) ! You guessed it right ! </span></strong></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color: #000000; font-family: trebuchet ms,geneva;"><strong><span style="font-size: small;"><span style="color: #ff0000;">[Update]</span> :: </span></strong><span style="font-size: small;">You can download the above PowerPivot from the link below</span></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="color: #000000; font-family: trebuchet ms,geneva;"><span style="font-size: small;"><a href="http://blogs.msdn.com/controlpanel/blogs/postlist.aspx?WeblogID=15553">http://blogs.msdn.com/controlpanel/blogs/postlist.aspx?WeblogID=15553</a></span></span></p>
<p style="font: 12px/normal Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>The Davinci code ( SQL Cryptology)</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/the-davinci-code-sql-cryptology</link>
      <pubDate>Thu, 07 Mar 2013 15:28:00 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2013/03/07/the-davinci-code-sql-cryptology/</guid>
      <description><![CDATA[&nbsp;
&nbsp;
Late night, Sitting under the A/C duct relaxing I could hear a grunted words from...]]></description>
      <content:encoded><![CDATA[<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6644.Sherlockhomes.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6644.Sherlockhomes.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6644.Sherlockhomes.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6644.Sherlockhomes.jpg" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Late night, Sitting under the A/C duct relaxing I could hear a grunted words from a near cubicle</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">About a strange requirement which requested by a customer. Keeping my curiosity at bay I thought its not my business &hellip;</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">It dint stop there ! I could here a disappointed words from another person the same bay .</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Yet, I said to myself NO ! Let me not involve, but being a <strong>CONSULTING detective&nbsp;</strong></span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">I couldn't leave with my curiosity and made a decision to look furtively and pretend</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">not being interested in the ongoing case.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">I went to the last dark cubicle in the bay where I was hearing the sounds from and stood next to</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><strong>Mr.SAM</strong> who was stuck to his laptop and dint seem to welcome the detective (you got it :) , who else but me).</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">He looked up to me and said " Hello Mr. MJ. The Sherlock homes of SQL Server "</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Even tough it was sarcastic I stood there to see what's going on ?</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">And asked Mr. SAM about the other person who made a disappointed sound in the bay.</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">He said its&nbsp; <strong>Mr.IG</strong> the new guy&nbsp; from the Old Trafford.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Wasting no time, me and <strong>Mr.SAM</strong> went to <strong>Mr.IG</strong> bay to look what's the disappointed all about.</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">I said "Howdy ! What keeps you in bother ?" . All I could get was a grumpy face !</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Hmmmm&hellip;..this sign is surely not welcoming !</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #ffff00;">Me</span> :&nbsp; So, tell me about the problem you are facing folks !</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #99cc00;">Mr. SAM</span>:&nbsp;&nbsp; Me and IG are working on a project which has requirement that the user should be able to see only the</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">data which he is eligible for , sort of an role based</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #ffff00;">Me</span>:&nbsp; hmmmm.. ( not jumping into any conclusion) , so what difficulty are you facing in that ?</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #ff6600;">Mr.IG</span>:&nbsp;&nbsp;&nbsp; We wanted to do this using @system_user function but the solution was rejected as they wanted to</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Make it more secure !"</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #99cc00;">Mr.SAM</span> :&nbsp; Why is it so hard to find a solution for a simple problem ?</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #ffff00;">Me</span> : OK ! Have you guys tested using symmetric keys to encrypt the data&nbsp; to make it secure ?</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #99cc00;">Mr.SAM</span> : " Hmmm&hellip;..But It will encrypt all the data in the column how can it be encrypted for a user ?"</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #ff6600;">Mr.IG</span> :"Yes !</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #ffff00;">Me</span> : Quoting the Sherlock homes " I am fairly familiar with all forms of secret writing, and am&nbsp;</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">&nbsp;myself the author of a trifling monograph upon the subject, in which I analyse one hundred&nbsp;</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">&nbsp;and sixty separate ciphers "</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #99cc00;">Mr.SAM</span> :" Please, stop bragging and show us the solution"</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><span style="background-color: #ffff00;">Me</span> : OK .</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><br /></span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium; background-color: #c0c0c0;">For readers : Symmetric keys are used to encrypt and as well decrypt the data.\</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium; background-color: #c0c0c0;"><br /></span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium; background-color: #c0c0c0;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6574.Crypto_PNG.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6574.Crypto_5F00_PNG.png"><img style="vertical-align: middle;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6574.Crypto_PNG.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6574.Crypto_5F00_PNG.png" alt="" /></a></span></p>
<p>&nbsp;<strong><span style="text-decoration: underline;"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Step 1 :</span></span></strong></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Creation of 2 logins which will simulate the 2 consultants ! One for samish&nbsp;</span><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">and other for the new guy from old trafford IG.</span></p>
<pre class="scroll"><code class="mysql"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0250.p1.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0250.p1.png"><img style="vertical-align: middle;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0250.p1.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0250.p1.png" alt="" width="750" /></a><br /></code></pre>
<pre class="scroll"><code class="cplusplus"><br /></code></pre>
<p><span style="text-decoration: underline;"><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Step 2 :</span></strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Creation of a database and table which will hold the encrypted data.</span></p>
<pre class="scroll"><a style="font-family: arial, helvetica, sans-serif; font-size: medium;" href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/3124.p2.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/3124.p2.png"><img style="vertical-align: middle;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/3124.p2.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/3124.p2.png" alt="" width="750" height="282" /></a></pre>
<pre class="scroll"><code class="cplusplus"><br /> </code></pre>
<p>&nbsp;<strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Step 4 :</span></strong></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Creation of certificates one for each user which will be owned by the user which is done using the</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Authorization keyword which are encrypted by the database master key.</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6864.p4.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6864.p4.png"><img style="vertical-align: middle;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6864.p4.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6864.p4.png" alt="" width="750" /></a><br /></span></p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Step 5:</span></strong></span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Creation of symmetric keys which are encrypted by the certificates which were</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">created from the above statements using the Triple_DES encryption algorithm.</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/4578.5.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/4578.5.png"><img style="vertical-align: middle;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/4578.5.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/4578.5.png" alt="" width="750" /></a></span></p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration: underline;"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Step 6:</span></span></strong></p>
<p>&nbsp;</p>
<p>&nbsp;<span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Insert the data into the table encrypted the symmetric keys which are owned by the user.&nbsp; Close all the symmetric keys after</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Inserting the data.</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0753.igerror.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0753.igerror.png"><img style="vertical-align: middle;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0753.igerror.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0753.igerror.png" alt="" width="750" /></a><br /></span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><br /></span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0407.62.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0407.62.png"><img style="vertical-align: bottom;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0407.62.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0407.62.png" alt="" width="750" /></a><br /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Lets repeat the same for sam .</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/7840.63.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/7840.63.png"><img style="vertical-align: middle;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/7840.63.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/7840.63.png" alt="" width="750" /></a><br /></span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium; background-color: #c0c0c0;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0181.64.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0181.64.png"><img style="vertical-align: middle;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/0181.64.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/0181.64.png" alt="" width="750" /></a></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration: underline;"><span style="font-family: arial, helvetica, sans-serif; font-size: medium;">Step 6 : The Judgment step</span></span></strong></p>
<p>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium; background-color: #c0c0c0;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/1856.9.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/1856.9.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/1856.9.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/1856.9.png" alt="" border="0" /></a></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-size: large;"><em><strong><span style="font-family: arial, helvetica, sans-serif;">As you can see , Mission Accomplished and case solved !</span></strong></em></span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: medium; background-color: #c0c0c0;"><br /></span></p>
<p><span style="font-size: medium;"><strong><span style="color: #ff0000;">&nbsp;[Update] : 3/8/2013</span></strong></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Dynamic Dashboards in Performance point services 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/dynamic-dashboards-in-performance-point-services-2010</link>
      <pubDate>Wed, 30 Jan 2013 13:59:00 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2013/01/30/dynamic-dashboards-in-performance-point-services-2010/</guid>
      <description><![CDATA[For a long time&nbsp; I wanted to share this&nbsp; information with the&nbsp;report developers...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">For a long time&nbsp; I wanted to share this&nbsp; information with the&nbsp;report developers .Performance point services allows you to create dynamic dashboards which means you can connect a scorecard and a report and make each other interdependent.</span></p>
<p><span style="color: #0000ff; font-family: arial,helvetica,sans-serif; font-size: medium; text-decoration: underline;">Below are the step by step guide </span></p>
<p><strong><span style="font-family: arial,helvetica,sans-serif; font-size: small; text-decoration: underline;">Step 1.Create&nbsp;scorecard has "sales territory" in the rows .</span></strong></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/7382.Scorecard.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/7382.Scorecard.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/7382.Scorecard.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/7382.Scorecard.png" alt="" width="365" height="124" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong><span style="font-family: arial,helvetica,sans-serif; font-size: small; text-decoration: underline;">Step 2.Create the Report</span></strong></p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">The below is the report which I need to join with the above scorecard and the objective is to change the line graph when the user selects a "sales territory" from the above scorecard. For ex: when user selects "europe" change the report to show trend graph only for "europe" so on for "North America" .</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">&nbsp;</span></p>
<ul style="margin-top: 0in; margin-bottom: 0in; margin-left: 0.375in; unicode-bidi: embed; direction: ltr;" type="disc">
<li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">To achieve this need to have both the items (report and scorecard) from the same OLAP datasource.</span></li>
<li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">I have "Sales&nbsp; Territory" in the <strong>background</strong> so that it can be linked with the scorecard.</span></li>
</ul>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/5282.Report.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/5282.Report.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/5282.Report.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/5282.Report.png" alt="" width="487" height="272" border="0" /></a></span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="text-decoration: underline;"><strong><span style="font-family: arial,helvetica,sans-serif; font-size: small;">3. Create a dashboard and create connection</span></strong></span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p><span style="font-size: medium;">Then you need to create an dashboard and add Report and the Scorecard to it.</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-size: medium; text-decoration: underline;">Quick things to look out for :</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<ol>
<li value="1"><span style="font-size: medium;">The Report and Scorecard are&nbsp;connected using the Display Condition</span></li>
<li><span style="font-size: medium;">You need to select the Row Member or Column Member</span></li>
<ol>
<li value="1"><span style="font-size: medium;">Row Member is the Attribute you have in your rows of the your scorecard.</span></li>
<li><span style="font-size: medium;">Column Member is the Attribute you have in your columns of the scorecard.</span></li>
<li><span style="font-size: medium;">You can also select the KPI itself if you need to connect it with the report.</span></li>
</ol>
<li value="3"><span style="font-size: medium;">&nbsp;Select&nbsp; the Member UniqueName from the above selected fields ( Row or &nbsp;Column Member )</span></li>
</ol>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-size: medium;">For our dashboard I am connecting "Sales Territory" which is RowMember (see the aboveScorecard)</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-size: medium;">So, Hover above the Row Member --&gt; Member unique Name and drag and drop it into the Report which is an Analytic chart.</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-size: medium;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/8562.Dashboard1.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/8562.Dashboard1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/8562.Dashboard1.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/8562.Dashboard1.png" alt="" border="0" /></a></span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span style="font-size: medium;">Once you are done with the above steps, You will observe the below pop-up which gives you the detailed information about the fields which are connected.</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="text-decoration: underline;"><span style="font-size: medium;">Observe :</span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<ol style="font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0in; margin-bottom: 0in; margin-left: 0.75in; unicode-bidi: embed; direction: ltr;" type="1">
<li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;" value="1"><span style="font-family: Calibri; font-size: medium; font-style: normal; font-weight: normal;">Connect to : Destination field which needs to be connected </span></li>
<li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-size: medium;"><span style="font-family: Calibri;">Source Value : The value gets&nbsp;passed from this field to the destination .</span></span></li>
</ol>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p><span style="font-size: medium;">Next step, Deploy the above dashboard into SharePoint&nbsp;site. After that ...oopphh its all done.</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-size: medium;">See the below images, When clicked on "Europe" you will see&nbsp; graph report for "Europe" and so on.</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-size: medium;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/5822.Dashboard3.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/5822.Dashboard3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/5822.Dashboard3.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/5822.Dashboard3.png" alt="" border="0" /></a></span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><strong><span style="font-size: medium;"><span style="font-family: Calibri;">Thats all for now, share your feedbacks and comments below :)</span></span></strong></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Ranking within an hierarchy using DAX</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/ranking-within-an-hierarchy-using-dax</link>
      <pubDate>Wed, 24 Oct 2012 17:24:00 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2012/10/24/ranking-within-an-hierarchy-using-dax/</guid>
      <description><![CDATA[&nbsp;
Hierarchy is one of the mostly wide functionalities in any model. So, the usual question...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Hierarchy is one of the mostly wide functionalities in any model. So, the usual question will be how do you RANK a City across ALL the cities for sales or Country across all the Countries for sales .</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Lets say I need to RANK the City for the Country which it belongs and not across ALL the Cities! </span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">How do you implement that in DAX ?</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><i><span style="text-decoration: underline;">The image below will make it clear :</span></i></span></span></p>
<p></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6283.Rank-X.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6283.Rank_2D00_X.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/6283.Rank-X.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x700/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/6283.Rank_2D00_X.png" /></a></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">I have a hierarchy which goes from Country ---&gt;State ---&gt;City </span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><span style="background-color: #ffff00;"><b>RankAll</b></span> Ranks all the City across ALL the cities . ( Shown in Green )</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-decoration: underline;">Formula to achieve the same :</span></i></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>=Calculate(RANKX(ALL(SalesFact),SalesFact[SumSales],,0,skip))</strong></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">In the above example all the contexts are removed by using ALL function and hence Country&nbsp; OR State context are discarded.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Now , we need to accomplish&nbsp; these 2 requirements</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<ol>
<li><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">1.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Rank the City for which country it belongs to (Shown in Black)</span></span></li>
<li><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">2.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Rank the city for which state it belongs to (Shown in Red)</span></span></li>
</ol>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><i><span style="text-decoration: underline;">To Achieve the requirement 1 :</span></i></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><span style="background-color: #ffff00;"><b>RankCountry</b></span> Ranks the city for the country which it belongs&nbsp; to for ex : Germany has 4 cities and we need to rank ALL the cities in Germany and the same to United States .</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-decoration: underline;"> Formula to achieve the same :</span></i></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><strong><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">RankCountry:=Calculate(RANKX(ALLExcept(SalesFact,SalesFact[Country]),SalesFact[SumSales],,0,skip))</span></span></strong></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">In the above example all the contexts are removed Except when you have Country in the any context which is achieved using&nbsp; ALLExcept&nbsp; function and hence when City is ranked the Country is context is taken into consideration.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><i><span style="text-decoration: underline;">To Achieve the requirement 2 :</span></i></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><span style="background-color: #ffff00;"><b><i>Rank</i></b><b>CountryState</b></span>&nbsp; Ranks the City for the state which it belongs ex : GermanyState1 has 3 cities and needs RANK these 3 cities.</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri"><i><span style="text-decoration: underline;">Formula to achieve the same :</span></i></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp; =Calculate(RANKX(ALLExcept(SalesFact,SalesFact[Country],SalesFact[State]),SalesFact[SumSales],,0,skip))</strong></span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">Post your comments why is it behaving like that with your explanation in the comments section :)</span></span><span style="font-size: small;" size="3"><span style="font-family: Calibri;" face="Calibri">&nbsp;</span></span></p>
<p><span style="font-family: Calibri; font-size: small;" size="3" face="Calibri">&nbsp;</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Whats up with ALL(Table) + ALLExcept + ALL(Table[Column])</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/whats-up-with-alltable-allexcept-alltablecolumn</link>
      <pubDate>Fri, 28 Sep 2012 11:48:00 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2012/09/28/whats-up-with-alltable-allexcept-alltablecolumn/</guid>
      <description><![CDATA[I was Quizzed with Ranks in DAX and during my exploration few intresting things were found. Here are...]]></description>
      <content:encoded><![CDATA[<p><em>I was Quizzed with Ranks in DAX and during my exploration few intresting things were found. Here are my findings on how ALL and ALLExcept function behaves with contexts !</em></p>
<p></p>
<ul>
<li><em>ALL(Table) will <span style="background-color: #00ff00;">not apply</span> for any of the contexts (Row,Query,Filter etc.)</em></li>
</ul>
<p></p>
<p></p>
<p></p>
<ul>
<li><em>&nbsp;ALLExcept (Table,Table[Column]) <span style="background-color: #00ff00;">will apply</span> the context only when Table[Column] is specified in any context (Row,Query,Filter etc)</em></li>
</ul>
<p></p>
<p></p>
<p></p>
<ul>
<li><em>&nbsp;ALL(Table[Column]) <span style="background-color: #00ff00;">will not apply</span> context filters for the specified columns i.e Table[Column] in any context (Row,Query,Filter etc)</em></li>
</ul>
<p><em>Here is the structure of the "Doctors" Table : As you can observer the Spec and Hospital are from the same table from which i have created the measures which makes it intresting&nbsp; !</em></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/8272.TableDoctors.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/8272.TableDoctors.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/8272.TableDoctors.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/8272.TableDoctors.png" /></a></p>
<p><em>The measures were <strong>sliced</strong> against Hospital , Spec column to observe the behaviour :</em></p>
<p><em><span style="color: #000000;"><strong>ALLSpec</strong> :=CALCULATE(countrows(),<span style="background-color: #ffff00;">ALL(Doctors[Spec])</span>)</span></em></p>
<p><em><strong>ALLEXceptSpec</strong> :=CALCULATE(COUNTROWS(),<span style="background-color: #ffff00;">ALLEXCEPT(Doctors,Doctors[Spec])</span>)</em></p>
<p><em><strong>ALLTable</strong> :=CALCULATE(countrows(),<span style="background-color: #ffff00;">ALL(Doctors))</span></em></p>
<p><span style="text-decoration: underline;"></span><em>&nbsp;Keep close attention to the the highlighted section</em></p>
<p><img style="float: left; border: 0px;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/55/53/8182.ALL%20+%20ALLExcept.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-55-53/8182.ALL-_2B00_-ALLExcept.png" width="800" /></p>
<p><span style="text-decoration: underline;"></span>&nbsp;</p>
<p>&nbsp;As you can notice from the section :</p>
<p><strong>fig&nbsp; 1</strong>. Hospital filter context doesnt change <em><strong>ALLEXceptSpec </strong>measure&nbsp; as it will only change when the filter is on "Doctors[Spec]" Column .</em></p>
<p><em><strong>fig&nbsp; 2</strong>.&nbsp;Spec filter context change <em><strong>ALLEXceptSpec </strong></em><em>measure&nbsp; as said above and <em><span style="color: #000000;"><strong>ALLSpec </strong>measure ignores the spec filter .</span></em></em></em></p>
<p><span style="text-decoration: underline;">Here are few more&nbsp;links on the same&nbsp;:</span></p>
<p><a href="http://technet.microsoft.com/en-us/library/ee634802.aspx">http://technet.microsoft.com/en-us/library/ee634802.aspx</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/ee634795.aspx">http://technet.microsoft.com/en-us/library/ee634795.aspx</a></p>]]></content:encoded>
    </item>
    <item>
      <title>To Hide Data Feed icon in Report Manager for Reporting services 2008 R2</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/to-hide-data-feed-icon-in-report-manager-for-reporting-services-2008-r2</link>
      <pubDate>Thu, 20 Sep 2012 09:53:00 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2012/09/20/to-hide-data-feed-icon-in-report-manager-for-reporting-services-2008-r2/</guid>
      <description><![CDATA[Hi ,This is a Strange Requirement which my client asked me whether its achievable to Hide the Data...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: trebuchet ms,geneva; font-size: medium;">Hi ,</span><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">This is a Strange Requirement which my client asked me whether its achievable to Hide the Data feed icon shown in the ReportManager..As directed by my PM I said i will check it out and let you know..No commitments to client JLT is an advise to me by my PM .</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">Here is how you can achieve this.</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-f_BLsEU-8Fk/TfiSlITlPXI/AAAAAAAABBk/TA0szKJrsrI/s1600/DataFeedIcon.bmp"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: hand; width: 320px; height: 22px;" id="BLOGGER_PHOTO_ID_5618401701727124850" border="0" alt="" src="http://4.bp.blogspot.com/-f_BLsEU-8Fk/TfiSlITlPXI/AAAAAAAABBk/TA0szKJrsrI/s320/DataFeedIcon.bmp" /></a></span><br /><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">1. Navigate to</span><br /><drive><span style="font-family: trebuchet ms,geneva; font-size: medium;">:\Program Files\Microsoft SQL Server\MSRS10_50.</span><instancename><span style="font-family: trebuchet ms,geneva; font-size: medium;">\Reporting Services\Report Server\Styles</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">2. Copy the &ldquo;HtmlViewer.css&rdquo; file and paste in the same folder.</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">Rename the copy to &ldquo;MyHtmlViewer.css&rdquo;.</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">3. Open &ldquo;MyHtmlViewer.css&rdquo;, find the section</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">.ToolbarAtomDataFeed</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">{</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">display: inline;</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">}</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">Change it to</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">.ToolbarAtomDataFeed</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">{</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">display: none;</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">}</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">Save the file.</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">4. Navigate to</span><br /><br /><drive><span style="font-family: trebuchet ms,geneva; font-size: medium;">:\Program Files\Microsoft SQL Server\MSRS10_50.</span><instancename><span style="font-family: trebuchet ms,geneva; font-size: medium;">\Reporting Services\ReportServer</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">5. Backup and then open the file &ldquo;RSReportServer.config&rdquo;</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">6. Insert the following XML below under the </span><configuration><span style="font-family: trebuchet ms,geneva; font-size: medium;">node</span><br /><br /><htmlviewerstylesheet><span style="font-family: trebuchet ms,geneva; font-size: medium;">MyHtmlViewer</span></htmlviewerstylesheet><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">Save the file.</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">On the same lines we can also Hide Export, Print and Refresh Buttons from the SSRS Toolbar.</span></configuration></instancename></drive></instancename></drive></p>]]></content:encoded>
    </item>
    <item>
      <title>Hide the Drill through Action URL Link when Exported to Excel</title>
      <link>https://docs.microsoft.com/archive/blogs/rakesh_ramblings/hide-the-drill-through-action-url-link-when-exported-to-excel</link>
      <pubDate>Thu, 20 Sep 2012 09:52:31 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh M J]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rakesh_ramblings/2012/09/20/hide-the-drill-through-action-url-link-when-exported-to-excel/</guid>
      <description><![CDATA[Reporting services 2008 (and later Version) gives more flexibility by adding few fine things which...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: trebuchet ms,geneva; font-size: medium;">Reporting services 2008 (and later Version) gives more flexibility by adding few fine things which will make a BI developer like me like the Product even more.</span><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">SSRS 2008 2008 (and later Version) Provides Globals! Render.FormatName which decides what can be achieved to the Data Region (Table, matrix, Chart, Gauge, etc...) when Rendered in different formats.</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">A Report Contains a Drill through Action on a matrix when clicked has to render a New Report Deployed in the Report server.</span><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">When the Report was Exported to Excel its shows the Action in the below format as a Hyperlink which should be Hidden as it doesn&rsquo;t look good aesthetically.</span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium; font-weight: bold;">Before when it was exported to Excel<span style="font-weight: bold;"></span></span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-xiascxMH2zE/Tc9iybN-iwI/AAAAAAAAA_0/HDX4sp8gY1E/s1600/Before.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: hand; width: 320px; height: 95px;" id="BLOGGER_PHOTO_ID_5606808679538920194" border="0" alt="" src="http://1.bp.blogspot.com/-xiascxMH2zE/Tc9iybN-iwI/AAAAAAAAA_0/HDX4sp8gY1E/s320/Before.png" /></a></span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium; font-weight: bold;">To Over Come this issue:<br />Add the Expression as described below<br /><strong>=IIF(Globals!RenderFormat.Name&lt;&gt;"Excel","ReportDrillDown",Nothing)</strong><br /></span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-jDsguKlPz6g/Tc9jJVeImAI/AAAAAAAAA_8/c6428-tYhzE/s1600/Expression.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: hand; width: 320px; height: 145px;" id="BLOGGER_PHOTO_ID_5606809073133066242" border="0" alt="" src="http://3.bp.blogspot.com/-jDsguKlPz6g/Tc9jJVeImAI/AAAAAAAAA_8/c6428-tYhzE/s320/Expression.png" /></a></span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium; font-weight: bold;">After the Expression has been added and exported to Excel<span style="font-weight: bold;"></span></span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-CMir53JiC7U/Tc9jeEVPMII/AAAAAAAABAE/05349Nf6oX4/s1600/After.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: hand; width: 320px; height: 84px;" id="BLOGGER_PHOTO_ID_5606809429309599874" border="0" alt="" src="http://1.bp.blogspot.com/-CMir53JiC7U/Tc9jeEVPMII/AAAAAAAABAE/05349Nf6oX4/s320/After.png" /></a></span><br /><br /><span style="font-family: trebuchet ms,geneva; font-size: medium;">Voila Amingo ! You can use the same Logic to Hide the Entire Table and other Cool stuffs !</span><strong></strong></p>]]></content:encoded>
    </item>
  </channel>
</rss>