<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'Tabular' and 'PowePivot'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=Tabular,PowePivot&amp;orTags=0</link><description>Search results matching tags 'Tabular' and 'PowePivot'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>From 0 to DAX at TechEd Pre-Conference Seminar #dax #msteched #tee13</title><link>http://sqlblog.com/blogs/marco_russo/archive/2013/05/07/from-0-to-dax-at-teched-pre-conference-seminar-dax-msteched-tee13.aspx</link><pubDate>Tue, 07 May 2013 12:54:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48968</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;In June I and Alberto will deliver a pre-conference seminar at both TechEd North America (New Orleans, LA) and TechEd Europe (Madrid, Spain).&lt;/p&gt;&lt;p&gt;This day is a&amp;nbsp;very good&amp;nbsp;quickstart for those of&amp;nbsp;you that still didn't&amp;nbsp;complete&amp;nbsp;one of our &lt;a href="http://www.sqlbi.com/books/"&gt;&lt;font color="#02469b"&gt;books&lt;/font&gt;&lt;/a&gt;, or those of you that missed one of our workshop about &lt;a href="http://www.ssasworkshop.com/"&gt;&lt;font color="#02469b"&gt;Tabular&lt;/font&gt;&lt;/a&gt; or &lt;a href="http://www.powerpivotworkshop.com/"&gt;&lt;font color="#02469b"&gt;PowerPivot&lt;/font&gt;&lt;/a&gt;. If you are planning to go to TechEd, you might also consider attending a full day about DAX, following the &lt;strong&gt;From 0 to DAX &lt;/strong&gt;one-day seminar. Here are the links:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://northamerica.msteched.com/PreCons"&gt;&lt;font color="#02469b"&gt;TechEd North America&lt;/font&gt;&lt;/a&gt; – From 0 to DAX Pre-Conference Seminar (New Orleans, LA - June 2, 2013)&lt;/li&gt;&lt;li&gt;&lt;a href="http://europe.msteched.com/PreCons"&gt;&lt;font color="#02469b"&gt;TechEd Europe&lt;/font&gt;&lt;/a&gt; – From 0 to DAX Pre-Conference Seminar (Madrid, Spain - June 24, 2013)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And in case you are underestimating the importance of DAX in your future BI projects... read &lt;a href="http://blogs.technet.com/b/ilikesql_by_dandyman/archive/2013/05/03/the-importance-of-understanding-dax.aspx"&gt;this blog post from Dandy Weyn&lt;/a&gt; - his privileged point of view inside Microsoft highlights how much DAX is important today and will be pervasive in the future!&lt;/p&gt;</description></item><item><title>Advanced DAX course in May - unique date in 1H 2013 #dax #tabular #ssas #powerpivot</title><link>http://sqlblog.com/blogs/marco_russo/archive/2013/04/22/advanced-dax-course-in-may-unique-date-in-1h-2013-dax-tabular-ssas-powerpivot.aspx</link><pubDate>Mon, 22 Apr 2013 08:55:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48797</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;One year after the release of SQL Server 2012 I see the growing demand for DAX. There are two reasons for that: an higher number of PowerPivot users started to build more complex data models, and SSAS Tabular is starting to be adopted by a larger number of companies, with and without a previous experience on former versions of Analysis Services.&lt;/p&gt;  &lt;p&gt;For this reasons we decided to offer a &lt;a href="http://www.sqlbi.com/courses/dax-advanced-workshop-london-may2013/"&gt;first public edition&lt;/a&gt; of our &lt;strong&gt;&lt;a href="http://www.sqlbi.com/training/"&gt;Advanced DAX Workshop&lt;/a&gt;&lt;/strong&gt;, a training on DAX that is aimed at Advanced PowerPivot users and Analysis Services developers that want to master the DAX language. Up to now, we offered this course only for &lt;a href="http://www.sqlbi.com/courses-on-site/dax-advanced-workshop/"&gt;private classes&lt;/a&gt;, because of the limited demand, but now there is enough interest and adoption to justify an open class.&lt;/p&gt;  &lt;p&gt;The goal of this DAX training is learning to write DAX expressions for measures and calculated columns, DAX queries for reporting needs, read DAX query plans and optimize DAX formulas. The course is a three-day workshop that includes many hands-on lab sessions, with exercises that will guide you in the learning process of the more advanced DAX concepts, enabling you to master the writing of DAX code.&lt;/p&gt;  &lt;p&gt;The course will be in &lt;a href="http://www.sqlbi.com/courses/dax-advanced-workshop-london-may2013/"&gt;London on May 13-15, 2013&lt;/a&gt;. There are direct flights with a huge number of countries and cities, also outside of Europe. We do not expect to deliver other editions of this course before other 5-6 months, so don’t lose the chance to attend this intensive DAX master course. I will be the teacher in this edition and Chris Webb will assist me in organization with &lt;a href="http://www.technitrain.com/"&gt;Technitrain&lt;/a&gt;. So don’t wait, early bird discount will expire in a few days, &lt;a href="http://www.sqlbi.com/courses/dax-advanced-workshop-london-may2013/#register"&gt;register now&lt;/a&gt; and join us in London!&lt;/p&gt;</description></item><item><title>Interviewed in SQL Down Under podcast #sqlserver #ssas #powerpivot</title><link>http://sqlblog.com/blogs/marco_russo/archive/2013/04/01/interviewed-in-sql-down-under-podcast-sqlserver-ssas-powerpivot.aspx</link><pubDate>Mon, 01 Apr 2013 18:03:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48477</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;I’ve been interviewed by Greg Low in SQL Down Under show 58, and this is *not* an April fool! We talked for one hour about Tabular, Multidimensional, Data Warehouse and just a little bit about music (you can discover which music genre I’m used to listen…).&lt;/p&gt;  &lt;p&gt;You can hear this interview from the &lt;a href="http://www.sqldownunder.com/Resources/Podcast/Show058MarcoRusso.aspx"&gt;SQL Down Under Show 58 page&lt;/a&gt; (it is an MP3 format) and if you like it there are many &lt;a href="http://www.sqldownunder.com/Resources/Podcast.aspx"&gt;other past shows available&lt;/a&gt;. The PodCast is also available on &lt;a&gt;iTunes&lt;/a&gt; and you can hear other podcasts in &lt;a href="https://itunes.apple.com/us/podcast/sql-down-under/id503822116"&gt;SQL Down Under page&lt;/a&gt; on iTunes Preview.&lt;/p&gt;</description></item><item><title>Querying with DAX video available on Project Botticelli #dax #ssas #powerpivot</title><link>http://sqlblog.com/blogs/marco_russo/archive/2013/02/25/querying-with-dax-video-available-on-project-botticelli-dax-ssas-powerpivot.aspx</link><pubDate>Mon, 25 Feb 2013 13:39:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47592</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;I recently published a &lt;a href="http://projectbotticelli.com/knowledge/querying-with-dax-video-tutorial?pk_campaign=sq2013blog"&gt;video session on Project Botticelli&lt;/a&gt; web site regarding querying in DAX. You can write DAX queries to extract data from both PowerPivot and SSAS Tabular models. This could be particularly useful in three scenarios:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Reports in Reporting Services&lt;/li&gt;    &lt;li&gt;Excel tables (used to populate other PowerPivot data models, for example)&lt;/li&gt;    &lt;li&gt;Reports embedded in custom applications (i.e. ASP.NET pages)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Today there is a lack of tools to help you writing a DAX query, probably the best choice is &lt;a href="http://www.sqlbi.com/tools/dax-studio/"&gt;DAX Studio&lt;/a&gt;, which I used in the video, but it has to be enhanced and completed. I hope to be able to work on that, but remember that other volunteers are welcome in a Codeplex project!&lt;/p&gt;  &lt;p&gt;In this video I cover in particular the syntax of &lt;em&gt;EVALUATE, CALCULATETABLE, SUMMARIZE, ROLLUP, ADDCOLUMNS, &lt;/em&gt;and&lt;em&gt; ROW&lt;/em&gt; functions. The &lt;a href="http://projectbotticelli.com/knowledge/querying-with-dax-video-tutorial?pk_campaign=sq2013blog"&gt;video is available&lt;/a&gt; to Project Botticelli subscribers.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/marco_russo/queryingdax_61C564CF.jpg"&gt;&lt;img title="queryingdax" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="queryingdax" src="http://sqlblog.com/blogs/marco_russo/queryingdax_thumb_20D66F5E.jpg" width="588" height="369" /&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>End of 2012 and news in 2013 for #PowerPivot, #ssas #tabular and BI</title><link>http://sqlblog.com/blogs/marco_russo/archive/2012/12/27/end-of-2012-and-news-in-2013-for-powerpivot-ssas-tabular-and-bi.aspx</link><pubDate>Thu, 27 Dec 2012 18:26:38 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46845</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;This year is going to end, Maya failed their predictions and while this is bad for predictive industry, it’s also good for all of us!&lt;/p&gt;  &lt;p&gt;We’ve seen many news in Microsoft BI stack:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Excel 2013 has been RTM’d – its General Availability is expected in early 2013 but many early adopters are already using it daily (myself included)&lt;/li&gt;    &lt;li&gt;PowerPivot and Power View are both integrated in Excel 2013 and I think that they are the most compelling reason to upgrade your Excel. Power View alone worth the effort&lt;/li&gt;    &lt;li&gt;SQL Server 2012 has been released and I’m seeing the first SSAS Tabular projects going in production in these days.&lt;/li&gt;    &lt;li&gt;I, Alberto and Chris published the book &lt;a id="bp___v___ctl00_ctl00_rcr_bsb___lcl___Categories_ctl00_Links_ctl08_Link" title="A full coverage of the SSAS Tabular model, new in SQL Server 2012" href="http://www.amazon.com/gp/product/0735658188/?tag=se04-20"&gt;&lt;font color="#0066cc"&gt;Microsoft SQL Server 2012 Analysis Services: The BISM Tabular Model&lt;/font&gt;&lt;/a&gt;, which has good reviews and is selling well. It’s clear that the interest is high in this new technology for Corporate BI&lt;/li&gt;    &lt;li&gt;We also run several &lt;a href="http://www.ssasworkshop.com"&gt;SSAS Tabular Workshops&lt;/a&gt;, many sessions about Tabular topics in conferences and user groups.&lt;/li&gt;    &lt;li&gt;I stopped writing blogs/article in the last weeks, but don’t worry, it’s just that I and Alberto are just writing another book…&lt;/li&gt;    &lt;li&gt;We recorded several &lt;a href="http://projectbotticelli.com/dax"&gt;videos about DAX for Project Botticelli&lt;/a&gt; and we’ll enhance this library in 2013.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;So what’s next in 2013? Let’s see some anticipations and personal predictions:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;SharePoint 2013 and Office 365 are going to further innovate Self-Service BI. Maybe that this process is not so fast as Microsoft hopes, but it’s a clear direction and I hope that new features in this area will appear with a sooner release cycle, we simply cannot wait other 3 years to get more features on the cloud.&lt;/li&gt;    &lt;li&gt;Mobile BI with Microsoft Technologies is going to be a real thing in 2013. And Office for iPad should be real, too. Power View for iPad as a native application is also another important step.&lt;/li&gt;    &lt;li&gt;I will speak at &lt;a href="http://www.passbaconference.com/"&gt;PASS BA Conference 2013&lt;/a&gt; in Chicago, IL (April 10-12, 2013) – at that time, I hope much of the MS Mobile BI tools will be available to anyone.&lt;/li&gt;    &lt;li&gt;In March 2013 our new PowerPivot book &lt;a href="http://www.amazon.com/dp/0735676348/?tag=se04-20"&gt;Microsoft Excel 2013: Building Data Models with PowerPivot&lt;/a&gt; will be published by Microsoft Press. We are working hard these days in order to complete the drafts, we listened to all of the feedback we received, especially from Excel users. Time will tell if we did a good job on that.&lt;/li&gt;    &lt;li&gt;We will publish other content on SQLBI web site and we have some interesting news for PowerPivot users and Tabular developers… but it’s too early to discuss that. Just stay tuned! Why not &lt;a href="http://www.sqlbi.com"&gt;registering to our newsletter&lt;/a&gt;? (hint – scroll down to the &lt;a href="http://www.sqlbi.com/"&gt;end of the page&lt;/a&gt; to insert your email)&lt;/li&gt;    &lt;li&gt;We will announce a new &lt;a href="http://www.powerpivotworkshop.com/"&gt;PowerPivot Workshop for Excel 2013&lt;/a&gt; (we are working on an updated web site – it should be ready by the end of January)&lt;/li&gt;    &lt;li&gt;In January we will announce new dates for our &lt;a href="http://www.sqlbi.com/training/"&gt;SSAS Tabular Workshop&lt;/a&gt; and the new DAX Advanced Workshop.&lt;/li&gt;    &lt;li&gt;I hope DAXMD will be released this year, it is &lt;a href="http://blogs.msdn.com/b/analysisservices/archive/2012/11/29/power-view-for-multidimensional-models-preview.aspx"&gt;already available as CTP&lt;/a&gt;. If you create canned reports for SSAS Multidimensional, consider using DAX as a query language when DAXMD will be released.&lt;/li&gt;    &lt;li&gt;DAX will be always more important…&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Economy is not going well in many countries, and I’ve seen this impacting also our ecosystem. Sometimes you might think that your efforts are worthless, but in the long term the investments in updating skills produces a good return, at both company and individual level. Don’t give up!&lt;/p&gt;  &lt;p&gt;I wish you a Great 2013!&lt;/p&gt;</description></item><item><title>DATE function does not support all the dates in DAX by design #powerpivot #tabular #dax</title><link>http://sqlblog.com/blogs/marco_russo/archive/2012/11/05/date-function-does-not-support-all-the-dates-in-dax-by-design-powerpivot-tabular-dax.aspx</link><pubDate>Mon, 05 Nov 2012 12:52:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45926</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;The &lt;a href="http://msdn.microsoft.com/library/ee634927(v=sql.110).aspx"&gt;DATE&lt;/a&gt; function in DAX has this simple syntax:&lt;/p&gt;  &lt;p&gt;DATE( &amp;lt;year&amp;gt;, &amp;lt;month&amp;gt;, &amp;lt;day&amp;gt; )&lt;/p&gt;  &lt;p&gt;If you are like me, you never read the BOL notes that says in a clear way that it supports dates beginning with March 1, 1900. In fact, I was wrongly assuming that it would have supported any date that can be represented in a &lt;a href="http://office.microsoft.com/en-us/excel-help/data-types-in-data-models-HA102836946.aspx?CTT=5&amp;amp;origin=HA102836919"&gt;Date data type in Data Models&lt;/a&gt;, so all the dates beginning with January 1, 1900. The funny thing is that in some of the BOL documentation &lt;a href="http://msdn.microsoft.com/en-us/library/gg492146.aspx"&gt;you will find&lt;/a&gt; that Date data type supports dates after March 1, 1900 (which seems not including that date, but this is a detail…). But we should not digress. The real issue is that if you try to call the DATE function passing values between January 1 and February 28, 1900, you will see a different day as a result.&lt;/p&gt;  &lt;p style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&lt;span style="font-family:consolas;color:blue;font-size:9.5pt;"&gt;evaluate&lt;/span&gt;&lt;span style="font-family:consolas;font-size:9.5pt;"&gt; &lt;span style="color:blue;"&gt;row&lt;/span&gt; ( &lt;span style="color:#a31515;"&gt;&amp;quot;x&amp;quot;&lt;/span&gt;, &lt;span style="color:blue;"&gt;DATE&lt;/span&gt;( 1900, 1, 1 ) )&lt;/span&gt;     &lt;/p&gt;  &lt;p style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&lt;span style="font-family:consolas;color:green;font-size:9.5pt;"&gt;-- return WRONG result     &lt;br /&gt;-- [x] 12/31/1899 12:00:00 AM&lt;/span&gt;     &lt;/p&gt;  &lt;p style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&lt;span style="font-family:consolas;font-size:9.5pt;"&gt;&amp;#160;&lt;/span&gt;     &lt;/p&gt;  &lt;p style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&lt;span style="font-family:consolas;color:blue;font-size:9.5pt;"&gt;evaluate&lt;/span&gt;&lt;span style="font-family:consolas;font-size:9.5pt;"&gt; &lt;span style="color:blue;"&gt;row&lt;/span&gt; ( &lt;span style="color:#a31515;"&gt;&amp;quot;x&amp;quot;&lt;/span&gt;, &lt;span style="color:blue;"&gt;DATE&lt;/span&gt;( 1901, 2, 29 ) )&lt;/span&gt;     &lt;/p&gt;  &lt;p style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&lt;span style="font-family:consolas;color:green;font-size:9.5pt;"&gt;-- return WRONG result     &lt;br /&gt;-- [x] 2/28/1900 12:00:00 AM&lt;/span&gt;     &lt;/p&gt;  &lt;p style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&lt;span style="font-family:consolas;font-size:9.5pt;"&gt;&amp;#160;&lt;/span&gt;     &lt;/p&gt;  &lt;p style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&lt;span style="font-family:consolas;color:blue;font-size:9.5pt;"&gt;evaluate&lt;/span&gt;&lt;span style="font-family:consolas;font-size:9.5pt;"&gt; &lt;span style="color:blue;"&gt;row&lt;/span&gt; ( &lt;span style="color:#a31515;"&gt;&amp;quot;x&amp;quot;&lt;/span&gt;, &lt;span style="color:blue;"&gt;DATE&lt;/span&gt;( 1900, 3, 1 ) )&lt;/span&gt;     &lt;/p&gt;  &lt;p style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;" class="MsoNormal"&gt;&lt;span style="font-family:consolas;color:green;font-size:9.5pt;"&gt;-- return CORRECT result     &lt;br /&gt;-- [x] 3/1/1900 12:00:00 AM&lt;/span&gt;     &lt;/p&gt;  &lt;p&gt;   &lt;p&gt;As usual, this is not a bug. It is “by design”. The DATE function works in this way in Excel. And also in Excel it was “by design”. In this case the design is having the same bug of &lt;a href="http://en.wikipedia.org/wiki/Lotus_123"&gt;Lotus 1-2-3&lt;/a&gt; that handled 1900 a leap year, even though it isn’t. The first release of Lotus 1-2-3 is dated 1983. I hope many of my readers are younger than that. I tried to open a &lt;a href="https://connect.microsoft.com/SQLServer/feedback/details/769455/date-function-does-not-work-correctly-until-feb-29-1900"&gt;bug in Connect&lt;/a&gt;. Please vote it. I would like if Microsoft changed this type of items from “by design” (as we can expect) to “by genetic disease”. Or by “historical respect”, in order to be more politically correct. &lt;img style="border-bottom-style:none;border-left-style:none;border-top-style:none;border-right-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://sqlblog.com/blogs/marco_russo/wlEmoticon-smile_7432873F.png" /&gt;&lt;/p&gt;&lt;/p&gt;</description></item><item><title>A proposal for #DAX Code Formatting #ssas #powerpivot #tabular</title><link>http://sqlblog.com/blogs/marco_russo/archive/2012/10/22/a-proposal-for-dax-code-formatting.aspx</link><pubDate>Mon, 22 Oct 2012 12:10:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45642</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;I recently published a set of &lt;a href="http://www.sqlbi.com/articles/rules-for-dax-code-formatting/"&gt;rules for DAX code formatting&lt;/a&gt;. The following is an example of what I obtain:&lt;/p&gt;  &lt;p&gt;&lt;font face="Lucida Console"&gt;CALCULATE (     &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMX (      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Orders,      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Orders[Amount]      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER (      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL ( Customers ),      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE (      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNTROWS ( Sales ),      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL ( Calendar[Date] )      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt; 42 + 8 – 25 * ( 3 - 1 )       &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + 2 – 1 + 2 – 1       &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CALCULATE (       &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 + 2 – 2       &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + 2 - 2       &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )       &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; – CALCULATE ( 4 )      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )      &lt;br&gt;)&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;The goal is to improve code readability and I look forward to implement a code formatting feature in DAX Studio. The DAX Editor already supports the &lt;a href="http://www.sqlbi.com/articles/rules-for-dax-code-formatting/"&gt;rules described in the article&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;I am also considering whether to add a rule specific for ADDCOLUMNS / SUMMARIZE because I would like to see the “pairs” of arguments to define a column in the same row or with a special indentation rule (DAX expression for a column is indented in the line following the column name).&lt;/p&gt;  &lt;p&gt;&lt;font face="Lucida Console"&gt;EVALUATE     &lt;br&gt;CALCULATETABLE (      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATETABLE (      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMMARIZE (      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Audience,      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Date'[Year],      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Individuals[Gender],      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Individuals[AgeRange],      &lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Num of Rows", FORMAT (COUNTROWS (Audience), "#,#"),       &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Weighted Mean Age",         &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMX (Audience, Audience[Weight] * Audience[Age]) / SUM (Audience[Weight])&lt;/strong&gt;      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMMARIZE (      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BridgeIndividualsTargets,      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Individuals[ID_Individual]      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Audience[Weight] &amp;gt; 0      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Targets[Target] = "Maschi",      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Date'[Year] = 2010,      &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Date'[MonthName] = "January"      &lt;br&gt;)&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;I would like to get feedback for that – you can use comments here or comments in &lt;a href="http://www.sqlbi.com/articles/rules-for-dax-code-formatting/"&gt;original article&lt;/a&gt;. Thanks!&lt;/p&gt;</description></item><item><title>Optimize SUMMARIZE with ADDCOLUMNS in Dax #ssas #tabular #dax #powerpivot</title><link>http://sqlblog.com/blogs/marco_russo/archive/2012/09/04/optimize-summarize-with-addcolumns-in-dax-ssas-tabular-dax-powerpivot.aspx</link><pubDate>Tue, 04 Sep 2012 08:23:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44966</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;If you started using DAX as a query language, you might have encountered some performance issues by using SUMMARIZE. The problem is related to the calculation you put in the SUMMARIZE, by adding what are called &lt;em&gt;extension columns&lt;/em&gt;, which compute their value within a filter context defined by the rows considered in the group that the SUMMARIZE uses to produce each row in the output.&lt;/p&gt;  &lt;p&gt;Most of the time, for simple table expressions used in the first parameter of SUMMARIZE, you can optimize performance by removing the extended columns from the SUMMARIZE and adding them by using an ADDCOLUMNS function. In practice, instead of writing&lt;/p&gt;  &lt;div class="line number1 index0 alt2"&gt;&lt;code class="dax color2"&gt;SUMMARIZE&lt;/code&gt;&lt;code class="dax plain"&gt;( &amp;lt;table&amp;gt;, &amp;lt;group_by_column&amp;gt;, &amp;lt;column_name&amp;gt;, &amp;lt;expression&amp;gt; )&lt;/code&gt;&lt;/div&gt;  &lt;p&gt;you can write:&lt;/p&gt;  &lt;p&gt;&lt;code&gt;ADDCOLUMNS&lt;/code&gt;&lt;code&gt;(     &lt;br /&gt;&lt;/code&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160; SUMMARIZE&lt;/code&gt;&lt;code&gt;( &amp;lt;table&amp;gt;, &amp;lt;group &lt;/code&gt;&lt;code&gt;by&lt;/code&gt; &lt;code&gt;column&amp;gt; ),     &lt;br /&gt;&lt;/code&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;column_name&amp;gt;, &lt;/code&gt;&lt;code&gt;CALCULATE&lt;/code&gt;&lt;code&gt;( &amp;lt;expression&amp;gt; )     &lt;br /&gt;&lt;/code&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;The performance difference might be huge (orders of magnitude) but this optimization might produce a different semantic and in these cases it should not be used. A longer discussion of this topic is included in my &lt;a href="http://www.sqlbi.com/articles/best-practices-using-summarize-and-addcolumns/"&gt;Best Practices Using SUMMARIZE and ADDCOLUMNS&lt;/a&gt; article on &lt;a href="http://www.sqlbi.com/"&gt;SQLBI&lt;/a&gt;, which also include several details about the DAX syntax with extended columns. For example, did you know that you can create an extended column in SUMMARIZE and ADDCOLUMNS with the same name of existing measures? It is &lt;strong&gt;*not*&lt;/strong&gt; a good thing to do, and by reading the article you will discover why. Enjoy DAX!&lt;/p&gt;</description></item><item><title>DAX Studio 1.0 beta available #dax #tabular #powerpivot</title><link>http://sqlblog.com/blogs/marco_russo/archive/2012/07/30/dax-studio-1-0-beta-available-dax-tabular-powerpivot.aspx</link><pubDate>Mon, 30 Jul 2012 08:10:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44486</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;Are you waiting for a usable and interactive DAX editor? Are you tired of using the MDX editor provided by SSMS as a temporary solution to write and execute a DAX query? The wait is over!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.sqlbi.com/tools/dax-studio/"&gt;DAX Studio&lt;/a&gt; is a free Excel add-in that enables you to write a DAX query in a small dialog box that offer a productive environment, with a tabular object browser and syntax highlighting. You can drag and drop table and column names from the object browser to the editor, getting a proper DAX syntax for the objects (this is something that is not available in SSMS because you browse multidimensional data and the syntax used for objects is the MDX one). More interesting, you can run a query and project the result either in an Excel worksheet or in an independent table grid.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/marco_russo/daxstudio-preview_7792FF45.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="daxstudio-preview" border="0" alt="daxstudio-preview" src="http://sqlblog.com/blogs/marco_russo/daxstudio-preview_thumb_4788ADC4.png" width="793" height="490" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You can connect to an embedded PowerPivot workbook or to an external Tabular model published on Analysis Services. You can find a longer introduction of DAX Studio in a &lt;a href="http://paultebraak.wordpress.com/2012/07/09/introducing-dax-studio/"&gt;blog post written by Paul te Braak&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;My favorite use of DAX Studio is writing and testing DAX measures. You can easily test them by using the DEFINE MEASURE syntax followed by a sample query that uses the local measure.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/marco_russo/daxstudio-editmeasure_37996900.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="daxstudio-editmeasure" border="0" alt="daxstudio-editmeasure" src="http://sqlblog.com/blogs/marco_russo/daxstudio-editmeasure_thumb_559776F4.png" width="793" height="490" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once you are confident that the measure works well, you can copy and paste its definition into your PowerPivot or Tabular project.&lt;/p&gt;  &lt;p&gt;This is just a version 1.0 and we look forward to enhance the features in the future. This is a CodePlex project so you can participate as a developer, as a tester or by just providing &lt;a href="http://daxstudio.codeplex.com/workitem/list/advanced"&gt;your feedback&lt;/a&gt; about bugs and desired features.&lt;/p&gt;</description></item><item><title>Analysis Services Tabular books #ssas #tabular</title><link>http://sqlblog.com/blogs/marco_russo/archive/2012/07/09/analysis-services-tabular-books-ssas-tabular.aspx</link><pubDate>Mon, 09 Jul 2012 12:10:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44222</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;Many people are looking for books about Analysis Services Tabular. Today there are two books available and they complement each other:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://www.amazon.com/gp/product/0735658188/?tag=se04-20"&gt;Microsoft SQL Server 2012 Analysis Services: The BISM Tabular Model&lt;/a&gt; by Marco Russo, Alberto Ferrari and Chris Webb&lt;/li&gt;    &lt;li&gt;&lt;a href="http://www.amazon.com/gp/product/0976635356/?tag=se04-20"&gt;Applied Microsoft SQL Server 2012 Analysis Services: Tabular Modeling&lt;/a&gt; by Teo Lachev&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;The &lt;a href="http://www.amazon.com/gp/product/0735658188/?tag=se04-20"&gt;book I wrote with Alberto and Chris&lt;/a&gt; is a complete guide to create tabular models and has a good coverage about DAX, including how to use it for enriching a semantic model with calculated columns and measures and how to use it for querying a Tabular model. In my experience, DAX as a query language is a very interesting option for custom analytical applications that requires a fast calculation engine, or simply for standard reports running in Reporting Services and accessing a Tabular model. You can freely preview the table of content and read some excerpts from the book on &lt;a href="http://mseref.safaribooksonline.com/book/databases/business-intelligence/9780735670099"&gt;Safari Books Online&lt;/a&gt;. The book is in printing and should be shipped within mid-July, so finally it will be very soon on the shelf of all the people already preordered it!&lt;/p&gt;  &lt;p&gt;The &lt;a href="http://www.amazon.com/gp/product/0976635356/?tag=se04-20"&gt;Teo Lachev’s book&lt;/a&gt;, covers the full spectrum of Tabular models provided by Microsoft: starting with self-service BI, you have users creating a model with PowerPivot for Excel, publishing it to PowerPivot for SharePoint and exploring data by using Power View; then, the PowerPivot for Excel model can be imported in a Tabular model and published in Analysis Services, adding more control on the model through row-level security and partitioning, for example. Teo’s book follows a step-by-step approach describing each feature that is very good for a beginner that is new to PowerPivot and/or to BISM Tabular. If you need to get the big picture and to start using the products that are part of the new Microsoft wave of BI products, the Teo’s book is for you. &lt;/p&gt;  &lt;p&gt;After you read the book from Teo, or if you already have a certain confidence with PowerPivot or BISM Tabular and you want to go deeper about internals, best practices, design patterns in just BISM Tabular, then our book is a suggested read: it contains several chapters about DAX, includes discussions about new opportunities in data model design offered by Tabular models, and also provides examples of optimizations you can obtain in DAX and best practices in data modeling and queries. &lt;/p&gt;  &lt;p&gt;It might seem strange that an author write a review of a book that might seem to compete with his one, but in reality these two books complement each other and are not alternatives. If you have any doubt, buy both: you will be not disappointed! Moreover, Amazon usually offers you a deal to buy three books, including the &lt;a href="http://www.amazon.com/gp/product/0071780823/?tag=se04-20"&gt;Visualizing Data with Microsoft Power View&lt;/a&gt;, another good choice for getting all the details about Power View.&lt;/p&gt;</description></item></channel></rss>