<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.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 tag 'DAX'</title><link>http://www2.sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=DAX&amp;orTags=0</link><description>Search results matching tag 'DAX'</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://www2.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>Group Sales by Age of Customers #dax #powerpivot #tabular</title><link>http://www2.sqlblog.com/blogs/marco_russo/archive/2013/05/06/group-sales-by-age-of-customers-dax-powerpivot-tabular.aspx</link><pubDate>Mon, 06 May 2013 12:16:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48800</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;I published an article describing how to implement the &lt;a href="http://www.sqlbi.com/articles/grouping-transactions-by-age-of-customers-in-dax"&gt;grouping of sales transactions by age of customer at the moment of the transaction&lt;/a&gt; by using PowerPivot or Analysis Services. The same pattern can be used also for any kind of banding operation, this specific case is useful also to recycle the formula that gets the exact age of the customer for each transaction.&lt;/p&gt;  &lt;p&gt;An interesting point is related to performance optimization. The technique is based on adding a calculated column in a table that might contain millions of transactions. This is less expensive than adding a column that contains a foreign key and then a relationship between a table containing group definitions and the transactions table. Every relationship is expensive and generates additional structures (you can see more files in the Analysis Services database, too). Adding one or two columns that have a low number of distinct values (10-15 rows) usually has a lower memory cost than creating a relationship with another table. &lt;a href="http://www.sqlbi.com/articles/grouping-transactions-by-age-of-customers-in-dax"&gt;The article&lt;/a&gt; also contains PowerPivot examples for both Excel 2010 and Excel 2013.&lt;/p&gt;  &lt;p&gt;If only I could decouple attribute visualization from physical structure, I would put these “degenerate dimensions” in a separate folder, because in this way such attribute will be included in attributes belonging to the fact table, which might not be so clear in presenting data. However, I understand that such a decoupling could make live very hard to DAX clients (but probably for MDX it could be not a big issue).&lt;/p&gt;</description></item><item><title>DAX Studio for Excel 2013 finally available! #dax #excel #powerpivot #ssas #tabular</title><link>http://www2.sqlblog.com/blogs/marco_russo/archive/2013/05/04/dax-studio-for-excel-2013-finally-available-dax-excel-powerpivot-ssas-tabular.aspx</link><pubDate>Sat, 04 May 2013 05:49:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48963</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;I'm so happy that &lt;a href="http://www.sqlbi.com/tools/dax-studio/"&gt;DAX Studio&lt;/a&gt; finally supports Excel 2013! As &lt;a href="http://geekswithblogs.net/darrengosbell/archive/2013/05/04/new-release---dax-studio-1.2-with-excel-2013-support.aspx"&gt;Darren Gosbell described in his blog&lt;/a&gt;, this release has a few internal changes that will better support future enhancements. I will port the code to capture the query plan for a query in this new release, but unfortunately it will require some weeks because I'm traveling a lot in these days.&lt;/p&gt;&lt;p&gt;If you write DAX formulas and queries for PowerPivot or Analysis Services Tabular, DAX Studio is a must have tool: do you really want to live without a DAX Editor? There are a lot of possible improvements and I hope other contributors will give their help to &lt;a href="http://daxstudio.codeplex.com/"&gt;this Codeplex project&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Advanced DAX course in May - unique date in 1H 2013 #dax #tabular #ssas #powerpivot</title><link>http://www2.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>LASTNONBLANK and FIRSTNONBLANK functions work with any column #dax #powerpivot #ssas #tabular</title><link>http://www2.sqlblog.com/blogs/marco_russo/archive/2013/04/19/lastnonblank-and-firstnonblank-functions-work-with-any-column-dax-powerpivot-ssas-tabular.aspx</link><pubDate>Fri, 19 Apr 2013 10:28:50 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48789</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;During a &lt;a href="http://www.powerpivotworkshop.com/"&gt;PowerPivot Workshop&lt;/a&gt; course we received an interesting question from a student: “Can I use LASTNONBLANK (and FIRSTNONBLANK) with a column which is not a date column?”&lt;/p&gt;  &lt;p&gt;The reason is that we introduce LASTNONBLANK in the Advanced Time Intelligence module, because its typical use case is on a date column. However, you can use these functions on any column, which raises the question about what happens at that point. The sort order used is the one that depends on the data type of the column. If it is a Text column, the alphabetical sort order is the reference order. If it is a number, then the numeric order is the reference.&lt;/p&gt;  &lt;p&gt;What happens if a column has the “Sort By Column” property set to another column? This sort order is &lt;strong&gt;*not considered*&lt;/strong&gt; by LASTNONBLANK and FIRSTNONBLANK functions. Even if a PivotTable shows you data sorted according to Sort by Column property, any DAX formula ignores such a sort order. Thus, be careful writing your DAX queries if you have to do some assumptions on the sort order of a column using DAX functions that rely on sort order, such as LASTNONBLANK and FIRSTNONBLANK.&lt;/p&gt;</description></item><item><title>SQLLunch on April 23 in London and Cardiff #sqlpass #dax #sqllunch</title><link>http://www2.sqlblog.com/blogs/marco_russo/archive/2013/04/15/sqllunch-on-april-23-in-london-and-cardiff-sqlpass-dax-sqllunch.aspx</link><pubDate>Mon, 15 Apr 2013 08:52:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48691</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;On April 23 I will present DAX in Action in London and Cardiff at SQLLunch event.&lt;br&gt;How is it possible I will be in two places at the same time?&lt;br&gt;This will be a remote presentation delivered in two locations, where you can have lunch while watching the session. &lt;/p&gt;&lt;p&gt;What is this session about? This is the session description:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;Tabular is the new SSAS modeling experience and DAX is the new language to use to create BI solution with Tabular. How does it compare with MDX and Multidimensional? In this session, which is mostly based on demos, we will build a complex BI solution from scratch, starting from simple analysis and moving through complex scenarios, showing how you will leverage the tremendous speed of DAX to create complex solution on simple data models, focusing on the differences in building the same solution in MDX or DAX.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;These free events are organized by the UK SQL Server User Group. If you are interested, you can register using the following links.&lt;br&gt;London : &lt;a href="http://sqlserverfaq.com/events/534/SQLLunch-All-stuff-no-fluff-Marco-Russo.aspx"&gt;http://sqlserverfaq.com/events/534/SQLLunch-All-stuff-no-fluff-Marco-Russo.aspx&lt;/a&gt;&lt;br&gt;Cardiff : &lt;a href="http://sqlserverfaq.com/events/535/SQLLunch-All-stuff-no-fluff-Marco-Russo.aspx"&gt;http://sqlserverfaq.com/events/535/SQLLunch-All-stuff-no-fluff-Marco-Russo.aspx&lt;/a&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>Pre-Conference Seminar about DAX at TechEd 2013 #msteched #dax #ssas</title><link>http://www2.sqlblog.com/blogs/marco_russo/archive/2013/03/14/pre-conference-seminar-about-dax-at-teched-2013-msteched-dax-ssas.aspx</link><pubDate>Thu, 14 Mar 2013 12:24:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48203</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;If you are using Microsoft BI stack and you still didn’t start learning DAX, you should not wait any longer. One of the option you have is starting with one of our &lt;a href="http://www.sqlbi.com/books/"&gt;books&lt;/a&gt;, or you can also attend one of our workshop about &lt;a href="http://www.ssasworkshop.com/"&gt;Tabular&lt;/a&gt; or &lt;a href="http://www.powerpivotworkshop.com/"&gt;PowerPivot&lt;/a&gt;. But if you are planning to go to SQLBits or TechEd, you might also consider attending a full day about DAX, following the From 0 to DAX one-day seminar. Here are the links:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://www.sqlbits.com/information/Event11/From_0_to_DAX2/TrainingDetails.aspx"&gt;SQLBits&lt;/a&gt; – From 0 to DAX Training Day (Nottingham, UK - May 2, 2013)&lt;/li&gt;    &lt;li&gt;&lt;a href="http://northamerica.msteched.com/PreCons"&gt;TechEd North America&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;TechEd Europe&lt;/a&gt; – From 0 to DAX Pre-Conference Seminar (Madrid, Spain - June 24, 2013)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Take a look at Early Bird expiration date – you can save a good portion of your budget by registering within March 22, 2013 at any of TechEd conference. For SQLBits there is a discounted price until April 7, 2013.&lt;/p&gt;  &lt;p&gt;Even if I’m not blogging much in these weeks, I can assure you we are working on more DAX content that we’ll publish in the next months. Stay tuned!&lt;/p&gt;</description></item><item><title>Querying with DAX video available on Project Botticelli #dax #ssas #powerpivot</title><link>http://www2.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>SQLBits XI in May 2013 – many reasons to attend! #sqlbits #dax #tabular</title><link>http://www2.sqlblog.com/blogs/marco_russo/archive/2013/02/20/sqlbits-xi-in-may-2013-many-reasons-to-attend-sqlbits-dax-tabular.aspx</link><pubDate>Wed, 20 Feb 2013 09:33:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47803</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;I and &lt;a href="http://sqlblog.com/blogs/alberto_ferrari"&gt;Alberto Ferrari&lt;/a&gt; will speak at &lt;a href="http://www.sqlbits.com"&gt;SQLBits XI&lt;/a&gt; (Nottingham, UK – May 2-4, 2013) and there are many good reasons to join us there, especially if you are interested to DAX!&lt;/p&gt;  &lt;p&gt;Here are our sessions:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Thursday, 02 May 2013 &lt;/strong&gt;– Training Day - &lt;strong&gt;&lt;a href="http://www.sqlbits.com/Sessions/Event11/From_0_to_DAX2"&gt;From 0 to DAX&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;The entire day is dedicated to learning DAX, starting from the syntax and going forward with more complex syntaxes for both expressions and queries in DAX.&lt;/li&gt;      &lt;li&gt;Technical level: the goal is to be introductive, explaining the important concepts in DAX (such as filter context, row context, context transitions) and covering the usage of the most common DAX functions.&lt;/li&gt;      &lt;li&gt;Target audience: Information Workers interested in exploiting the many interesting features of PowerPivot for Excel 2013 and BI developers who want to learn the DAX language.&lt;/li&gt;      &lt;li&gt;In practice: if you started using DAX two years ago and created several projects in Tabular and/or PowerPivot with complex calculations, this is not the workshop for you (read about an &lt;a href="http://www.sqlbi.com/courses/dax-advanced-workshop-london-may2012/"&gt;Advanced DAX Workshop&lt;/a&gt; later in this post). But if you just started your first Tabular or PowerPivot projects and you are still wondering what CALCULATE is all about, then this is definitely the right training for you!&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;&lt;strong&gt;Friday, 03 May 2013&lt;/strong&gt; – 10:50am – &lt;strong&gt;&lt;a href="http://www.sqlbits.com/Sessions/Event11/Modern_Data_Warehousing_Strategy"&gt;Modern Data Warehousing Strategy&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;How to design a Data Warehouse in 2013? Should we change something considering the introduction of in-memory technologies such as xVelocity? Is Self-Service BI affecting the way we design and implement a Corporate Data Warehouse?&lt;/li&gt;      &lt;li&gt;This is not a session about a specific feature of a product, but features and products have their effects on the data warehouse design. We’ll stop one hour trying to understand what changes in the big picture, affecting also our day-by-day job.&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;&lt;strong&gt;Friday, 03 May 2013&lt;/strong&gt; – 2:40pm – &lt;strong&gt;&lt;a href="http://www.sqlbits.com/Sessions/Event11/Inside_xVelocity_InMemory_Engine_VertiPaq_"&gt;Inside xVelocity InMemory Engine (VertiPaq)&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;Do you use PowerPivot and/or Analysis Services Tabular? They use the same engine (xVelocity/VertiPaq) and you should know how it works.&lt;/li&gt;      &lt;li&gt;This session will show how xVelocity/VertiPaq works, how it compresses and stores data and why it is so fast answering to your queries.&lt;/li&gt;      &lt;li&gt;Why this is important? Because it is geeky! And because this knowledge will help you optimizing storage and DAX queries.&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;&lt;strong&gt;Saturday, 04 May 2013 &lt;/strong&gt;– 10:50am – &lt;strong&gt;&lt;a href="http://www.sqlbits.com/Sessions/Event11/DAX_Query_Engine_Internals"&gt;DAX Query Engine Internals&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;DAX is amazingly fast. But some query might be not fast enough.&lt;/li&gt;      &lt;li&gt;Do you want to know how to optimize your DAX query? This session is for you.&lt;/li&gt;      &lt;li&gt;Knowing the internals of xVelocity InMemory engine is just the first step (see Friday’s session). Then you need to apply this knowledge to DAX and understand why different DAX syntaxes for the same result might have different performance.&lt;/li&gt;      &lt;li&gt;Understanding cross-filtering is a key to master DAX optimization. The more you know DAX, the more you will appreciate this session!&lt;/li&gt;   &lt;/ul&gt; &lt;/ul&gt;  &lt;p&gt;As I said before, the training day is an introductive course. If you already know DAX and want to improve your skills, there is a &lt;a href="http://sqlblog.com/blogs/marco_russo/archive/2013/02/07/first-dax-advanced-workshop-in-london-may-2013-dax-tabular-ssas.aspx"&gt;&lt;strong&gt;3-day Advanced DAX Workshop&lt;/strong&gt;&lt;/a&gt; I will teach in London on May 13-15, 2013. It could be also a good reason to visit London if you come from other countries!&lt;/p&gt;  &lt;p&gt;Now that we are almost done with the &lt;a href="http://www.sqlbi.com/books/excel-2013-building-data-models-with-powerpivot/"&gt;PowerPivot for Excel 2013&lt;/a&gt; book, we will write &lt;a href="http://www.sqlbi.com/articles/"&gt;more articles&lt;/a&gt; – stay tuned!&lt;/p&gt;</description></item><item><title>DAX Time Intelligence for 4-4-5 Calendar, ISO Calendar and other custom ones #dax #powerpivot</title><link>http://www2.sqlblog.com/blogs/marco_russo/archive/2013/02/19/dax-time-intelligence-for-4-4-5-calendar-iso-calendar-and-other-custom-ones-dax-powerpivot.aspx</link><pubDate>Tue, 19 Feb 2013 14:21:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47663</guid><dc:creator>sqlbi</dc:creator><description>&lt;p&gt;DAX offers a set of Time Intelligence functions that simplify writing DAX expressions such as YTD, YOY and other time-related calculations. However, these functions only works when some assumptions are valid: your periods should be “natural” months and quarter. Some industries, such as retail and manufacturing, are used to accounting periods that are based on weeks instead of months. One month and one quarter are a set of weeks and a week cannot be split in different months, quarter or years. Making DAX working on these custom calendars requires you to write some DAX expression without using the built-in Time Intelligence functions.&lt;/p&gt;  &lt;p&gt;I wrote an article, &lt;a href="http://www.sqlbi.com/articles/week-based-time-intelligence-in-dax/"&gt;Week-Based Time Intelligence in DAX&lt;/a&gt;, which describes how to write the common DAX calculations required on a custom calendar. I also included two samples, one for Excel 2010 and the other for Excel 2013, so that you can easily work on both versions (&lt;a href="http://sqlblog.com/blogs/marco_russo/archive/2013/01/14/powerpivot-compatibility-across-versions.aspx"&gt;as you know&lt;/a&gt;, downgrading a workbook from Excel 2013 to Excel 2010 with PowerPivot is not possible).&lt;/p&gt;  &lt;p&gt;An important tip you will find is that creating a column that contains the number of days elapsed in a year (or the running total of days in the year, if you prefer) makes it easy writing the FILTER required to use the right set of days in each calculation. After all, this technique is very similar to the one you would use in SQL to perform the same calculation, for this reason DAX is considered more intuitive than MDX by developers with a SQL background.&lt;/p&gt;</description></item></channel></rss>