<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Kasper de Jonge PowerPivot Blog</title>
	
	<link>http://www.powerpivotblog.nl</link>
	<description>Bringing BI to the masses</description>
	<lastBuildDate>Tue, 07 Sep 2010 06:40:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/kjonge" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="kjonge" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Combine two identical excel files into one PowerPivot table</title>
		<link>http://www.powerpivotblog.nl/combine-two-identical-excel-files-into-one-powerpivot-table</link>
		<comments>http://www.powerpivotblog.nl/combine-two-identical-excel-files-into-one-powerpivot-table#comments</comments>
		<pubDate>Tue, 07 Sep 2010 06:39:59 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[PowerPivot]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1964</guid>
		<description><![CDATA[I came across a great blog post that shows how to import two excel sheets that have a similar column structure into one PowerPivot Table: http://blog.contextures.com/archives/2010/09/06/powerpivot-from-identical-excel-files/ Very nice!]]></description>
			<content:encoded><![CDATA[<p>I came across a great blog post that shows how to import two excel sheets that have a similar column structure into one PowerPivot Table:</p>
<p><a href="http://blog.contextures.com/archives/2010/09/06/powerpivot-from-identical-excel-files/">http://blog.contextures.com/archives/2010/09/06/powerpivot-from-identical-excel-files/</a></p>
<p>Very nice!</p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/bv4ZJBQ8XT8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/combine-two-identical-excel-files-into-one-powerpivot-table/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add leading 0 to a column using PowerPivot Dax</title>
		<link>http://www.powerpivotblog.nl/add-leading-0-to-a-column-using-powerpivot-dax</link>
		<comments>http://www.powerpivotblog.nl/add-leading-0-to-a-column-using-powerpivot-dax#comments</comments>
		<pubDate>Wed, 01 Sep 2010 16:00:40 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[PowerPivot]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1949</guid>
		<description><![CDATA[Just a quick one tip today, I thought I already blogged this one but i couldn&#8217;t find it. Sometimes you want your value to be always x chars wide. For example you want to create a yearmonth column of always 6 figures, 201010 and 201001 instead of 20101. What you can do is create a [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick one tip today, I thought I already blogged this one but i couldn&#8217;t find it.</p>
<p>Sometimes you want your value to be always x chars wide. For example you want to create a yearmonth column of always 6 figures, 201010 and 201001 instead of 20101. What you can do is create a new column where you use the REPT function. This function repeats a specific string for a specific number. For example REPT(&#8220;0&#8243;,2-LEN(MONTH(Tablix1[Date]))) would give me 0 for 2 &#8211; the length of my month function. If the length of my month is 2 it wouldn&#8217;t return a 0 if it is one it would return one 0.</p>
<p>My year month calculated column dax would look like:</p>
<p>=year(Tablix1[Date]) &amp; REPT(&#8220;0&#8243;,2-LEN(MONTH(Tablix1[Date]))) &amp; MONTH(Tablix1[Date])</p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/zfOsrcSjB_c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/add-leading-0-to-a-column-using-powerpivot-dax/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Project: Gain insight into your music taste using Last.fm, PowerPivot and the PivotViewer</title>
		<link>http://www.powerpivotblog.nl/project-gain-insight-into-your-music-taste-using-last-fm-powerpivot-and-the-pivotviewer</link>
		<comments>http://www.powerpivotblog.nl/project-gain-insight-into-your-music-taste-using-last-fm-powerpivot-and-the-pivotviewer#comments</comments>
		<pubDate>Mon, 30 Aug 2010 20:01:09 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[Pivotviewer]]></category>
		<category><![CDATA[PowerPivot]]></category>
		<category><![CDATA[PivotViewer]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1922</guid>
		<description><![CDATA[I love music, i listen to it a lot on my ipod and on my computer.I also love statistics, I send all the tracks I listen to the online music service last.fm where I have stored all the tracks i have played since 2006. This is a list of my top artists (yes I am [...]]]></description>
			<content:encoded><![CDATA[<p>I love music, i listen to it a lot on my ipod and on my computer.I also love statistics, I send all the tracks I listen to the online music service <a href="http://www.last.fm/user/sinistrad">last.fm</a> where I have stored all the tracks i have played since 2006.</p>
<p>This is a list of my top artists (yes I am kind of a metal head):</p>
<p><a href="http://www.last.fm/user/sinistrad/?chartstyle=basic10"><img src="http://imagegen.last.fm/basic10/oartists/sinistrad.gif" border="0" alt="" /></a></p>
<p>Wouldn&#8217;t it be great if I could load all my played tracks into the PivotViewer? This blog posts describes how I got all my played track information into the PivotViewer. In a previous <a href="http://www.powerpivotblog.nl/build-your-own-pivotviewer-app-using-the-pivotviewer-for-ssrs-on-top-of-powerpivot">blog post</a> is described how you we can make a PivotViewer application on top of PowerPivot. Today we are going to load data from Last.FM into PowerPivot and base a PivotViewer app on top of PowerPivot.</p>
<p><span id="more-1922"></span></p>
<p>First thing we need to do is download the played tracks so we can load the data into PowerPivot. Last.FM has all kinds of developer services <a href="http://www.audioscrobbler.net/development/">available</a>, but i didn&#8217;t feel like building an app that did that for me. So while browsing the Internet i found an Perl application that collects Last.FM data into an XML file. It&#8217;s called <a href="http://www.easyclasspage.de/lastfm/seite-12.html">lfmCOL.pl</a> using this Perl script you can put the result of a api call from Last.FM into an XML file. In my case i used the <a href="http://www.last.fm/api/show?service=323">library.getTracks</a> api call. This will get a list of tracks with playcount, album,artist and track image. The api has got a build in max amount of rows that it will return. In my case i want to return all the tracks I ever played, luckily the perl script automatically will download all the tracks by using the build in paging algorithm.</p>
<p>All i had to do is call the following command:</p>
<p>perl lfmCOL.pl -xmlfile=MyLibrary.xml method=library.getTracks user=Sinistrad</p>
<p>This will download all my tracks in an XML file, I use <a href="http://download.cnet.com/XML-Marker/3000-7241_4-10202365.html">XML marker</a> as XML tool:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/xml.png"><img class="alignnone size-full wp-image-1928" title="xml" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/xml.png" alt="" width="543" height="364" /></a></p>
<p>We now want to load the information into Excel, i didn&#8217;t know excel could read XML as datasource but it works astonishingly well.</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/xmlload.png"><img class="alignnone size-full wp-image-1929" title="xmlload" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/xmlload.png" alt="" width="461" height="275" /></a></p>
<p>In Excel you have two choices, use the XML table view or the load it as plain text into the existing worksheet. I chose to load is as plain data:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/xmldata.png"><img class="alignnone size-full wp-image-1930" title="xmldata" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/xmldata.png" alt="" width="801" height="299" /></a></p>
<p>Each row is loaded 4 times because we have 4 different images, what I did to filter them out is create a table and filter out only the image I want:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/image.png"><img class="alignnone size-full wp-image-1931" title="image" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/image.png" alt="" width="384" height="301" /></a></p>
<p>Then copy and past all the rows into a new workbook. Next I loaded it into PowerPivot.  So now I had data into PowerPivot, but all I had was information about tracks. To get a better PivotViewer I wanted to have more information about a track. So i decided to get more information from the Last.FM services about the artist. I decided to write a Macro to get information from the webservice into Excel. I vowed a few years back that I never again write VBA code <img src='http://www.powerpivotblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But Rob&#8217;s <a href="http://powerpivotpro.com/2010/08/23/powerpivot-vba-macro-mania/">latest macro blog post</a> made me reconsider.</p>
<p>First I copied the artists from the artist column into a new worksheet and used the Excel remove duplicates function to create unique rows. Next i created a macro that called the Last.FM api <a href="http://www.last.fm/api/show?service=267">artist.getInfo</a>. Make sure you get a <a href="http://www.last.fm/api/account">API key yourself</a> so you can call the web service. I read every row in the excel sheet and pass that into the webservice. The webservice then returns XML we need to read information from. I was specifically interested in the tags. I used ActiveSheet.Range to determine which rows to pass to the webservice because of the Last.FM webservice webcalls, I have had some timeouts when looping through the entire workbook. After getting the data from the XML i put it into the Excel sheet.</p>
<p>Below is the macro i wrote (mind you this is in no way perfect code).</p>
<pre lang="Visual BASIC">Sub LoadInfo()
Dim NumRows As Integer
Dim ThisRow As Integer
Dim rngSrc As Range
Dim artist As String

Set rngSrc = ActiveSheet.Range(ActiveWindow.Selection.Address)
NumRows = rngSrc.Rows.Count
ThisRow = rngSrc.Row
Dim j As Integer

For j = ThisRow To NumRows + ThisRow - 1 Step 1
    artist = Cells(j, 1)
    Call LoadRow(artist, j)
Next j

Set rngSrc = Nothing
End Sub

Function GetRawArtist(artist As String)
    Dim objHttp As Object
    Set objHttp = CreateObject("MSXML2.ServerXMLHTTP")
    Dim url As String
    url = "http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&amp;artist=" &amp; artist &amp; "&amp;api_key=APIKEYHERE"
    Call objHttp.Open("GET", url, False)
    Call objHttp.Send("")

    GetRawArtist = objHttp.ResponseText
    Set objHttp = Nothing
End Function

Sub LoadRow(artist As String, rownumber As Integer)
    Dim XMLDOC As MSXML2.DOMDocument
    Set XMLDOC = CreateObject("Microsoft.XMLDOM")
    Dim Xml As String
    Xml = GetRawArtist(artist)
    If Len(Xml) &gt; 0 Then
        XMLDOC.LoadXML (Xml)
        Dim image As String
        image = XMLDOC.SelectSingleNode("lfm/artist/image[@size='extralarge']").Text
        Cells(rownumber, 2) = image
        Dim listeners As String
        listeners = XMLDOC.SelectSingleNode("lfm/artist/stats/listeners").Text
        Cells(rownumber, 3) = listeners

        Dim nodelist As IXMLDOMNodeList
        Set nodelist = XMLDOC.SelectNodes("lfm/artist/tags/tag")
        If nodelist.Length &gt; 0 Then
            Dim tag1 As String
            tag1 = nodelist.Item(0).FirstChild.Text
            Cells(rownumber, 4) = tag1
            Dim tag2 As String
            tag2 = nodelist.Item(1).FirstChild.Text
            Cells(rownumber, 5) = tag2
            Dim tag3 As String
            tag3 = nodelist.Item(2).FirstChild.Text
            Cells(rownumber, 6) = tag3
            Dim tag4 As String
            tag4 = nodelist.Item(3).FirstChild.Text
            Cells(rownumber, 7) = tag4
        End If
        Set nodelist = Nothing
    End If
    Set XMLDOC = Nothing
End Sub</pre>
<p>This gives me a new excel workbook i can load into PowerPivot again:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/artist.png"><img class="alignnone size-full wp-image-1933" title="artist" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/artist.png" alt="" width="734" height="191" /></a></p>
<p>I created a relationship using the artist name between the two tables.</p>
<p>To get to know my data I created a PowerPivot workbook to display my top artist, tracks and charts by genre and time listenend:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/sheet.png"><img class="alignnone size-full wp-image-1934" title="sheet" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/sheet.png" alt="" width="772" height="524" /></a></p>
<p>Pretty cool to play with my music data like this. But now for the final steps we want to load it into the PivotViewer.</p>
<p>The first thing we need to do is make sure we have all the data we want to use in the PivotViewer app in one table, check out the first PivotViewer <a href="http://www.powerpivotblog.nl/build-your-own-pivotviewer-app-using-the-pivotviewer-for-ssrs-on-top-of-powerpivot">blog post</a> for more details. I used the =RELATED function to get the columns I want in the PivotViewe from the other related table.</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/track1.png"><img class="alignnone size-full wp-image-1939" title="track" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/track1.png" alt="" width="794" height="277" /></a></p>
<p>Now we build the report we want to use in the PivotViewer, the report will be used to show details about the track. The report must have a parameter so the PivotViewer can crawl each song  by using the parameter, I want to use the image belonging to each track to show in the PivotViewer together with information about the track:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/report3.png"><img class="alignnone size-full wp-image-1941" title="report" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/report3.png" alt="" width="599" height="442" /></a></p>
<p>We now can ise the report to create the PivotViewer application. I configured the BI Collection administration as below:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/inv.png"><img class="alignnone size-full wp-image-1942" title="inv" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/inv.png" alt="" width="684" height="383" /></a></p>
<p>Now I crawled the BI collection using the PivotViewer crawler tool.</p>
<p>This results in the PivotViewer app with all my tracks in it, below you can see the tracks with playcounts grouped by genre:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/pv1.png"><img class="alignnone size-large wp-image-1943" title="pv1" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/pv1-1024x472.png" alt="" width="819" height="378" /></a></p>
<p>And a detail of the track:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/pv2.png"><img class="alignnone size-large wp-image-1944" title="pv2" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/pv2-1024x668.png" alt="" width="819" height="534" /></a></p>
<p>A pretty cool excersise with a great result. Although I could do some more work in making the PivotViewer app a little better by presenting it a better report with other categories to show. But unfortunatly my time is limited <img src='http://www.powerpivotblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/kDVerOKxtXM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/project-gain-insight-into-your-music-taste-using-last-fm-powerpivot-and-the-pivotviewer/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Predict the future using Predixion data mining and PowerPivot</title>
		<link>http://www.powerpivotblog.nl/predict-the-future-using-predixion-data-mining-and-powerpivot</link>
		<comments>http://www.powerpivotblog.nl/predict-the-future-using-predixion-data-mining-and-powerpivot#comments</comments>
		<pubDate>Tue, 24 Aug 2010 16:00:37 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[PowerPivot]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1901</guid>
		<description><![CDATA[In my previous blog post I checked what the key influencer is for having a lot of stock using PowerPivot and Predixion Insight for Excel. Now i want to see what the number of units on stock will do in the future. I want to see this by country for the next 6 months. We start in [...]]]></description>
			<content:encoded><![CDATA[<p>In my<a href="http://www.powerpivotblog.nl/datamining-using-powerpivot-and-predixion-insight"> previous blog post I checked what the key influencer is</a> for having a lot of stock using PowerPivot and Predixion Insight for Excel. Now i want to see what the number of units on stock will do in the future. I want to see this by country for the next 6 months.</p>
<p>We start in Excel,  i have again loaded the same tables as before into PowerPivot containing the Factinventory and a table containing country&#8217;s and stores. This time we are going to use PowerPivot indirect since the data in PowerPivot is not really suited for the Forecast, besides we want to use an aggregated value for this and not all individual 8 million records we used before.</p>
<p><span id="more-1901"></span></p>
<p>We start by creating a flattened pivottable, a great new invention in Excel 2010:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/flat.png"><img class="alignnone size-full wp-image-1902" title="flat" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/flat.png" alt="" width="220" height="419" /></a></p>
<p>Here we can select the actual values as they are in our datasource, by year and month set out against country:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/flattable.png"><img class="alignnone size-full wp-image-1903" title="flattable" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/flattable.png" alt="" width="812" height="328" /></a></p>
<p>Important here is that i have one field that contains all months for each year we have data, ordered chronologically. I already had this field loaded  in my date table, but you could easily create one using DAX =Year &amp; Month</p>
<p>This is all it takes to start the data mining. So again I open the PredixionInsight Now Ribbon and click Forecast:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/now.png"><img class="alignnone size-full wp-image-1881" title="now" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/now.png" alt="" width="812" height="113" /></a></p>
<p>This time no direct PowerPivot connection for us:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/excel.png"><img class="alignnone size-full wp-image-1904" title="excel" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/excel.png" alt="" width="618" height="515" /></a></p>
<p>We can just select the range my flattened pivottable is in and press OK.</p>
<p>In the next screen we can select which columns we want to forecast, in our case we created a column with units on stock for each country, we can select each of them. Next we need to select the time stamp we want to use, this is the Calendarmonth column, of the type Month. We want to predict 6 months ahead:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/cols.png"><img class="alignnone size-full wp-image-1905" title="cols" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/cols.png" alt="" width="511" height="502" /></a></p>
<p>Now all we have to do is press Run, it will upload my table to the Predixion servers and in almost no time it has processed the values and i am ready to use my results. Note my previous job is also still in there ready to be used in this Excel sheet as well:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/pred.png"><img class="alignnone size-full wp-image-1906" title="pred" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/pred.png" alt="" width="324" height="306" /></a></p>
<p>Press on results and the results are created inside Excel:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/reportbig.png"><img class="alignnone size-large wp-image-1907" title="reportbig" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/reportbig-1024x637.png" alt="" width="1024" height="637" /></a></p>
<p>As you can see we need to pay extra attention to Germany, the forecast is that they are building up huge units on stock in the near future. Again another powerful use of your data, and very easy to do !</p>
<p>Update: I got a message from<a href="http://jamiemaclennan.blogspot.com/"> Jamie MacLennan</a> CTO from Predixion who gave a hint to improve my forecast: if you cut out that part of the data that is very different from the rest of the graph (i.e. prior to 200802) the prediction may be better.</p>
<p>Of course i tried this and the results do look more realistic:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/ch2.png"><img class="alignnone size-large wp-image-1914" title="ch2" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/ch2-1024x406.png" alt="" width="1024" height="406" /></a></p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/UMpRYO2wLD0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/predict-the-future-using-predixion-data-mining-and-powerpivot/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Datamining using PowerPivot and Predixion Insight</title>
		<link>http://www.powerpivotblog.nl/datamining-using-powerpivot-and-predixion-insight</link>
		<comments>http://www.powerpivotblog.nl/datamining-using-powerpivot-and-predixion-insight#comments</comments>
		<pubDate>Sun, 22 Aug 2010 08:25:13 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[PowerPivot]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1878</guid>
		<description><![CDATA[Since this week the public beta of Predixion Software&#8217;s Data mining in the cloud for Excel is available. Those of you who are familiar with the the Microsoft SSAS Data mining Add-ins should be very comfortable with what is inside Predixion Data mining for Excel.  I have done a previous blog post on doing data mining using PowerPivot with [...]]]></description>
			<content:encoded><![CDATA[<p>Since this week the public beta of <a href="http://www.predixionsoftware.com/">Predixion Software&#8217;s</a> Data mining in the cloud for Excel is available. Those of you who are familiar with the the Microsoft SSAS Data mining Add-ins should be very comfortable with what is inside Predixion Data mining for Excel.  I have done a <a href="http://www.powerpivotblog.nl/screencast-using-datamining-with-powerpivot-in-excel">previous blog post</a> on doing data mining using PowerPivot with the MS data mining add-in where you can see how it currently works .</p>
<p>Predixion Insight for Excel is like a new version of the current SSAS add-in, the Predixion insight team consists of the folks that previously build the Add-in for MS and now started on their own.</p>
<p>The biggest change is that you no longer need an SSAS server installed. All action happens on the Predixion servers in the cloud. Second biggest (for me) is that you can use PowerPivot data as a datasource for you Data mining. Using it in combination with PowerPivot requires nothing more then Excel and a Predixion subscription for data mining. Furthermore the overal UI had been improved to make data mining a more user friendly experience. And it support 64 bits.</p>
<p>From the Predixion site:</p>
<blockquote><p>Predixion&#8217;s intuitive and easy-to-use solution allows users to run predictive analytics in the familiar environments of Microsoft Excel<sup>® </sup>and PowerPivot. Whether you are an existing SQL Server<sup>® </sup>Data Mining user, a BI specialist or a newcomer to the arena of Predictive Analytics, Predixion Insight™ will enable you to easily create, manage and run powerful and accurate predictive models without extensive training or specific knowledge of the methodologies currently required to create successful predictive projects.</p></blockquote>
<p>In this blog post we are going to see what are the key influencer are of the number of items on stock from the Contoso sample database.</p>
<p><span id="more-1878"></span></p>
<p>First we need to install the Predixion Insight for Excel, just run setup and the client will be installed within Excel. Next time you open Excel the client will be there. We have two tabs &#8220;Insight analytics&#8221;:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/ana.png"><img class="alignnone size-full wp-image-1880" title="ana" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/ana.png" alt="" width="814" height="98" /></a></p>
<p>and &#8220;Insight Now&#8221;:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/now.png"><img class="alignnone size-full wp-image-1881" title="now" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/now.png" alt="" width="650" height="90" /></a></p>
<p>The &#8220;Insight analytics&#8221; tab is mainly for the advanced data mining,the insight now enables you to get started immediately. Before we can do anything we need to connect to the predixion servers with the account we created on the website:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/conn.png"><img class="alignnone size-full wp-image-1882" title="conn" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/conn.png" alt="" width="151" height="263" /></a></p>
<p>After logging into the Predixion cloud service we can start data mining. I have loaded information from my datawarehouse in PowerPivot for Excel, i have information about my stock. I have loaded the fact table FactInventory that contains the actual nr of stock, this contains 8 million rows . The fact table is related to a lot of descriptive tables that surround the fact table, called the dimension tables. I have loaded a few of these descriptive tables into PowerPivot as well. What do we know about an item that is on stock:</p>
<ul>
<li>When was it on stock? Year/month/day</li>
<li>What Product?</li>
<li>What Productcost</li>
<li>Aging of a product in inventory</li>
<li>The Country of the store it is in.</li>
</ul>
<p>Of all these properties we want to know what influences the nr of days in stock the most. For this i want to use the &#8220;Analyze key influencers&#8221;  function. So i click on it.</p>
<p>This gives us a screen where i can select what my source is, Excel or PowerPivot, I select PowerPivot. Now i can select what table i want to analyze, i select the fact table. We could place filters here but i decided to plague the Predixion server all out with my full 8 million rows <img src='http://www.powerpivotblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/keyinf.png"><img class="alignnone size-full wp-image-1892" title="keyinf" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/keyinf.png" alt="" width="618" height="467" /></a></p>
<p>Next we can select the column we want to we want to determine the key influencers for:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/column.png"><img class="alignnone size-full wp-image-1893" title="column" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/column.png" alt="" width="492" height="390" /></a></p>
<p>Of course we don&#8217;t need all the columns to be analyzed, we can select the columns we want to include in our analysis:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/ana1.png"><img class="alignnone size-full wp-image-1894" title="ana" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/ana1.png" alt="" width="493" height="395" /></a></p>
<p>And this is where we notice something not right. As you can see we can select DateKey, StoreKey, ProductKey. But when we analyze this it would analyze this as a Key value, instead of Year 2009 it would test for the value 1-1-2009 and Store &#8220;Amsterdam&#8221; it would check as Integer 12. So we need to do something first, we need to prepare our PowerPivot table so that it contains descriptive values.  Luckily for us this is not that hard, just add a column in the PowerPivot field window using the =RELATED function:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/related.png"><img class="alignnone size-full wp-image-1895" title="related" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/related.png" alt="" width="483" height="367" /></a></p>
<p>Now we can select these columns in the data mining add in:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/cols2.png"><img class="alignnone size-full wp-image-1896" title="cols2" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/cols2.png" alt="" width="500" height="402" /></a></p>
<p>Now we are good to go, just click Run and the data mining will be started.</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/start.png"><img class="alignnone size-full wp-image-1897" title="start" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/start.png" alt="" width="409" height="253" /></a></p>
<p>The great thing here is that everything happens on the server, i can start multiple operations at the same time. And of course it being in the cloud i can open this up on another machine and immediately access the results.</p>
<p>One thing i noted is that the information is send to the cloud through an encrypted tunnel so no worry your data can be read while sniffing your network.</p>
<p>When i click on Minimize to Task pane you will see a new Predixion pane will show up where you can see all your tasks:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/pane.png"><img class="alignnone size-full wp-image-1898" title="pane" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/pane.png" alt="" width="314" height="349" /></a></p>
<p>As you can see i ran this demo before so i can use these results to show the result of the mining Predixion did, just click &#8220;Results&#8221; and the report below appears:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/report.png"><img class="alignnone size-full wp-image-1899" title="report" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/report.png" alt="" width="731" height="569" /></a></p>
<p>As you can see it is pretty easy to combine the information you have in PowerPivot with the enormous powers of data mining. The new user interface and the availability of the Predixion servers in the cloud really make data mining available for anyone. Just as PowerPivot makes data analytics available for everyone. The Predixion Insight for Excel works with Excel 2007 and Excel 2010 32 AND 64 bit, of course PowerPivot won&#8217;t be available with Excel 2007.</p>
<p>Predixion Insight is also working on a on-premise and dedicated off-site cloud solution which leverages SQL Server, SSAS and SharePoint which they call Enterprise Insight.</p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/EysuOy_lacc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/datamining-using-powerpivot-and-predixion-insight/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Determine the min value over rows in a group using MINX in PowerPivot</title>
		<link>http://www.powerpivotblog.nl/determine-the-min-value-over-rows-in-a-group-using-minx-in-powerpivot</link>
		<comments>http://www.powerpivotblog.nl/determine-the-min-value-over-rows-in-a-group-using-minx-in-powerpivot#comments</comments>
		<pubDate>Fri, 20 Aug 2010 21:25:39 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[PowerPivot]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1909</guid>
		<description><![CDATA[I got a question that proved more challenging than I imagined. I have a report that displays the following values. It shows Days in stock per employee per Continent and per Country. The days in stock is a calculated measure: =DimGeography[DaysInStock per store] / DimGeography[NrOfEmployees in service] which again contains of two calculated measures.  The [...]]]></description>
			<content:encoded><![CDATA[<p>I got a question that proved more challenging than I imagined.</p>
<p>I have a report that displays the following values. It shows Days in stock per employee per Continent and per Country. The days in stock is a calculated measure:</p>
<p>=DimGeography[DaysInStock per store] / DimGeography[NrOfEmployees in service]</p>
<p>which again contains of two calculated measures.  The question i got was if it was possible to show the minimal value of the measure [days in stock per employee]  for each country grouped by Continent:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/report1.png"><img class="alignnone size-full wp-image-1910" title="report" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/report1.png" alt="" width="603" height="789" /></a></p>
<p>In this case the minimal value of the country&#8217;s of the continent Europe is 2.483,69.  So how can we achieve this? The biggest problem is that we are unable to use the MIN function, the function MIN only takes a column, not a measure. So again we resort to the <a href="http://powerpivotpro.com/2010/02/16/sumx-the-5-point-palm-exploding-fxn-technique/">The 5-point palm, exploding fxn technique</a> in this case <a href="http://technet.microsoft.com/en-us/library/ff452200.aspx">MINX</a>.</p>
<p>I want to start by getting the measure for each DimGeography[RegionCountryName]  into a Min function. This looks like:</p>
<p>=MINX(values(DimGeography[RegionCountryName]),DimGeography[Days In stock per employee])</p>
<p>Only this returns the minimal value of [Days In stock per employee] for each [RegionCountryName], this is the same result as the regular measure. MINX uses the same context as all other DAX functions.</p>
<p>The reason we use values(DimGeography[RegionCountryName]) in stead of the table DimGeography is because of the performance. MINX steps through each rows of the passed trough parameter, as you can imagine stepping through a single column is much better performance wise than an entire table. By using Values we get only one column from a table.</p>
<p>Ok MINX uses the context as other DAX functions, that means we can change it using our almight CALCULATE function as well, this gives us:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #66cc66;">=</span>CALCULATE<span style="color: #66cc66;">&#40;</span>
		MINX<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">VALUES</span><span style="color: #66cc66;">&#40;</span>DimGeography<span style="color: #66cc66;">&#91;</span>RegionCountryName<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
				DimGeography<span style="color: #66cc66;">&#91;</span>Days <span style="color: #993333; font-weight: bold;">IN</span> stock per employee<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
		<span style="color: #993333; font-weight: bold;">ALL</span><span style="color: #66cc66;">&#40;</span>DimGeography<span style="color: #66cc66;">&#91;</span>RegionCountryName<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>What happens here is that we change the context to include all RegionCountryName&#8217;s within the group continent.</p>
<p>The measure gives this result in the PowerPivottable:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/res.png"><img class="alignnone size-full wp-image-1911" title="res" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/res.png" alt="" width="683" height="843" /></a></p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/0RnHkjz8fY8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/determine-the-min-value-over-rows-in-a-group-using-minx-in-powerpivot/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a new url for your PowerPivot site in SharePoint</title>
		<link>http://www.powerpivotblog.nl/create-a-new-url-for-your-powerpivot-site-in-sharepoint</link>
		<comments>http://www.powerpivotblog.nl/create-a-new-url-for-your-powerpivot-site-in-sharepoint#comments</comments>
		<pubDate>Fri, 20 Aug 2010 09:53:27 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[PowerPivot]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1886</guid>
		<description><![CDATA[A lot of times you want your PowerPivot site to have another URL then the one you original got during the install. During installation the it uses the server name as url. In just installed PowerPivot on a local machine in our netwerk called l01, but because we have this running in a separate lab domain it cannot [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of times you want your PowerPivot site to have another URL then the one you original got during the install. During installation the it uses the server name as url. In just installed PowerPivot on a local machine in our netwerk called l01, but because we have this running in a separate lab domain it cannot be accessed from outside the domain.</p>
<p>Calling the website from his entire URL does work from outside the domain as well: http://l01.labdomain.nl. Until you actually open the PowerPivot file from the gallerie. You get a</p>
<div>&#8220;Excel Web Access</div>
<p>The file that you selected could not be found. Check the spelling  of the file name and verify that the location is correct.</p>
<div>Make  sure that the file has not been renamed, moved, or deleted.&#8221;</div>
<div>The reason is that SharePoint is not fully aware that the site (and all the services like Excel Services on it) you created also has to listen to the other url: &#8220;http://l01.labdomain.nl&#8221;. You can make SharePoint aware of other URL&#8217;s by configuring Alternate Access mapping (AAM) in SharePoint 2010.  On technet you can find a great video how to do this: <a href="http://technet.microsoft.com/en-us/sharepoint/ff679917.aspx">http://technet.microsoft.com/en-us/sharepoint/ff679917.aspx</a>. Most of the times I use the default alternate access mapping method in stead of extending my site.</div>
<div></div>
<div>A thing might be worth checking out is whether your newly created site or AAM mapping is available from your server console. When this is not the case PowerPivot will be unable to generate thumbnails and you get a red cross. In a few cases i had to resort to changing the registry according to this KB article: <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;896861">http://support.microsoft.com/default.aspx?scid=kb;en-us;896861</a></div>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/i7lei6Fz2kc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/create-a-new-url-for-your-powerpivot-site-in-sharepoint/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dashboard Design best practice</title>
		<link>http://www.powerpivotblog.nl/dashboard-design-best-practice</link>
		<comments>http://www.powerpivotblog.nl/dashboard-design-best-practice#comments</comments>
		<pubDate>Mon, 16 Aug 2010 19:26:03 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[BI general]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1872</guid>
		<description><![CDATA[A tweet that got around twitter today reminded me of a great session I attended at Teched this year. It wasn&#8217;t about PowerPivot and it wasn&#8217;t even very technical. It was a session from Dan Bulos about Dashboard Design Best Practices.  This is what the session was about: How can you design an effective, useful, [...]]]></description>
			<content:encoded><![CDATA[<p>A tweet that got around twitter today reminded me of a great session I attended at Teched this year. It wasn&#8217;t about PowerPivot and it wasn&#8217;t even very technical. It was a session from Dan Bulos about Dashboard Design Best Practices.  This is what the session was about:</p>
<blockquote><p>How can you design an effective, useful, and appealing dashboard? Many articles and books focus on the mechanics of how to choose KPIs and the various formats available for displaying data. But even the most significant information can be lost if it is not displayed in a memorable way. Is the right format for critical values a grid, a graph, a gauge, maps, diagrams, or something else? What kinds of information are best displayed in a line vs. a bar graph? Where does a scorecard fit into all of this? Since they are not static, how dashboards interact and how they fit into a larger reporting environment offer a particular design challenge. Designing the navigation across the content on each dashboard page is critical to communicating the desired message. In this session, learn techniques for displaying a set of data in a dashboard for maximum impact and receive a framework for constructing dashboards from the various content types.</p></blockquote>
<p>You can watch the entire presentation online at <a href="http://www.msteched.com/2010/NorthAmerica/BIO204">the teched online site</a>.</p>
<p>One of the great slides in his presentation is the Chart suggestions chart that let&#8217;s you choose the chart type you need for the specific data you want to show:</p>
<p><img class="alignnone size-large wp-image-1873" title="choosing_a_good_chart" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/choosing_a_good_chart-1024x791.jpg" alt="" width="819" height="633" /></p>
<p>Another great source about dashboard design is <a href="http://www.amazon.com/Information-Dashboard-Design-Effective-Communication/dp/0596100167">Stephen Few&#8217;s: Information Dashboard Design: The Effective Visual Communication of Data </a></p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/yJllITZsFmY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/dashboard-design-best-practice/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PowerPivot for SharePoint Architecture video’s</title>
		<link>http://www.powerpivotblog.nl/powerpivot-for-sharepoint-architecture-videos</link>
		<comments>http://www.powerpivotblog.nl/powerpivot-for-sharepoint-architecture-videos#comments</comments>
		<pubDate>Mon, 16 Aug 2010 11:25:31 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[PowerPivot]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1870</guid>
		<description><![CDATA[The SQL Server SSAS team just release 4 great video&#8217;s where MSFT&#8217;s Lee Graber explains the PowerPivot for SharePoint Architecture. This gives great insight on PowerPivot and SharePoint integration. Mind you these videos are not for the weak of hart and go pretty deep But well worth the time if you are into SharePoint and [...]]]></description>
			<content:encoded><![CDATA[<p>The SQL Server SSAS team just release 4 great video&#8217;s where MSFT&#8217;s Lee Graber explains the PowerPivot for SharePoint Architecture. This gives great insight on PowerPivot and SharePoint integration. Mind you these videos are not for the weak of hart and go pretty deep <img src='http://www.powerpivotblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But well worth the time if you are into SharePoint and PowerPivot:</p>
<ul>
<li><a href="http://www.youtube.com/watch?v=uku4KuzQDIk">PowerPivot for SharePoint: User Identity Fundamentals for Server Administrators</a></li>
<li><a href="http://www.youtube.com/watch?v=rXiS7b_Z7Jw">PowerPivot for SharePoint: Security Context of PowerPivot Connections in a Farm</a></li>
<li><a href="http://www.youtube.com/watch?v=RN5YZtytWZk">PowerPivot for SharePoint: Data Refresh</a></li>
<li><a href="http://www.youtube.com/watch?v=nSEx6-9UWqA&amp;feature=related">PowerPivot for SharePoint: Using Workbooks as a Data Source</a></li>
</ul>
<p>Update: They are now all available on the <a href="http://social.technet.microsoft.com/wiki/contents/articles/powerpivot-for-sharepoint-architecture.aspx">PowerPivot Technet</a> site.</p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/QJ_oRF8nSxs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/powerpivot-for-sharepoint-architecture-videos/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Importing data from SSAS into PowerPivot when you have different regional settings</title>
		<link>http://www.powerpivotblog.nl/importing-data-from-ssas-into-powerpivot-when-you-have-different-regional-settings</link>
		<comments>http://www.powerpivotblog.nl/importing-data-from-ssas-into-powerpivot-when-you-have-different-regional-settings#comments</comments>
		<pubDate>Wed, 11 Aug 2010 07:43:05 +0000</pubDate>
		<dc:creator>Kasper de Jonge</dc:creator>
				<category><![CDATA[PowerPivot]]></category>

		<guid isPermaLink="false">http://www.powerpivotblog.nl/?p=1864</guid>
		<description><![CDATA[Ok this one is for all of you who like me have to live and work with different regional settings than English US. This makes sure a lot of software behaves not as expected, PowerPivot also has strange behavoir. When you import data from SSAS into PowerPivot all column are treated as text. This is [...]]]></description>
			<content:encoded><![CDATA[<p>Ok this one is for all of you who like me have to live and work with different regional settings than English US. This makes sure a lot of software behaves not as expected, PowerPivot also has strange behavoir.</p>
<p>When you import data from SSAS into PowerPivot all column are treated as text. This is a by design feature of PowerPivot:</p>
<blockquote><p>This is a by design behavior in the current version of PowerPivot. The reason behind is due to the fact PowerPivot does not support Variant data type, while MDX does. The cell value from a MDX query may potentially return different data type, for instance, in a IIF statement IIF (condition, expression1, expression2), expression1 and expression2 can return different data type. In order to support all these scenarios inside PowerPivot, we convert the values to string during import. You would have to explicitly change the column data type after the import as you have already observed.</p></blockquote>
<p>as we can read on this <a href="http://social.msdn.microsoft.com/Forums/en/sqlkjpowerpivotforexcel/thread/f323cbe0-74da-4ecf-899f-74cc0f46e48c">forum </a>post. Sounds like a solution that makes sense, but it also gives the end user more to do. You have to convert all the columns that are not text (like date and decimals) to the type you want in the PowerPivot window. This might give you a problem when you have different regional settings on the client than on the server. In my case our SSAS server uses the English US regional settings on the server but i have Dutch settings on the client.</p>
<p><span id="more-1864"></span></p>
<p>When I import data into PowerPivot all seems ok at first:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/decimal.png"><img class="alignnone size-full wp-image-1865" title="decimal" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/decimal.png" alt="" width="330" height="270" /></a></p>
<p>But notice that our measure is imported as text. To make aggregations you need to covert this to a decimal, doing this give strange results:</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/decimal2.png"><img class="alignnone size-full wp-image-1866" title="decimal2" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/decimal2.png" alt="" width="366" height="316" /></a></p>
<p>As you can see here the decimal sign is just removed and we have one big number now. Thanks to <a href="http://sqlblog.com/blogs/marco_russo/">Marco Russo</a> i found a workaround. Because we changed the data type to decimal means PowerPivot treats this column as decimal from now on, also when refresh data. And that is all you have to do to get the correct data. Refresh the data and the numbers are correct again (and will be in the future):</p>
<p><a href="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/decimal3.png"><img class="alignnone size-full wp-image-1867" title="decimal3" src="http://www.powerpivotblog.nl/wp-content/uploads/2010/08/decimal3.png" alt="" width="359" height="288" /></a></p>
<p>Marco has created a connect item for this to be solved in the next version as well, please vote for it <a href="https://connect.microsoft.com/SQLServer/feedback/details/565145/powerpivot-bad-conversion-of-data-coming-from-ssas">here</a> so they will take a look at it in the next version(s).</p>
<p>I don&#8217;t know what happens when you have the same regional settings on the server as on the client, but I expect it to work correct without having to use the workaround.</p>
<p>Another tip: When you change the regional settings of your client machine make sure you restart Excel, only then will it pick up the changed regional settings.</p>
<img src="http://feeds.feedburner.com/~r/kjonge/~4/Cg0x6tDmeBk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotblog.nl/importing-data-from-ssas-into-powerpivot-when-you-have-different-regional-settings/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
