Director of Product Management, Microsoft BI (At left: the many faces of Kamal Hathi: 1 – “Seriously, we have to do formal headshots?”, 2 - Explaining, 3 – Explaining, and… 4 – Explaining. Today, I ask him to Explain some…
In my last blog on PowerPivotPro.com I showed how easy it is to create a standard calendar for Power Pivot using Power Query. Most of my customers however don’t use a standard calendar but instead use a 445 calendar (which is very common in the Retail Industry). A lot of people shared with me their 445 calendars after my last post, and that reminded me that although the concept of a 445 calendar is very common, everyone seems to have different rules on how the calendar works.
Differences in 445 Calendars include
- What month you start the financial year
- What day of the week is the start of the week.
- 365 divided by 7 = 52 + 1 day remainder. Different companies handle the extra day in different ways.
So there are almost as many permutations as companies and I don’t want to go down the path of trying to write 1 calendar that will work for everyone. Instead this post covers the techniques I used to solve the 445 calendar problem for one of my customers. If you are so inclined, you can copy these techniques plus some of your own to meet your own 445 needs. To give you an idea, it took me about an hour to think through the problems, research the functions and build a working calendar. If you copy my techniques, you should get a head start on that for your own 445.
The rules of this particular calendar are
- The first day of the financial year is the Monday on or before 1 May.
- The number of weeks each month are in the pattern 454 (4 for May, 5 for June, 4 for July) and then repeats.
- The calendar weeks, months and years mirror the financial data. So Mon 31 Dec 2013 is the first week of financial week 36. Even though the date is actually in the year 2013, it is treated as part of the first calendar week of 2014.
Here is how I did it. But first a word of warning. The steps are easiest to follow if you first download the sample workbook (link at the bottom) and step through the Applied Steps as you read my explanations in this post. If you are not a Power Query expert and you just read the post, it will quite hard to understand. So do yourself a favour and download the workbook, and step through it as you read the post
This Picture is a Hint. An Admittedly Annoying Hint That Hounds me on Facebook.
“OK, way to make it super-obvious, Rob. It’s Tableau, right?”
Actually, no. It’s not Tableau. And the Tableau advertisement above basically proves my point.
By far, the biggest “competitor” to Power Pivot is… Excel itself.
In other words, lack of awareness that Power Pivot even EXISTS is still the biggest “competitor” to Power Pivot today.
The Tableau marketing department is smart. They know that “normal” Excel is their chief competitor. And they know that “normal” Excel has some frustrating weaknesses when it comes to data analysis.
So they go right for the throat. I salute and admire their savvy. Which brings me to a movie quote.
Gantt Hours measure debugging with DAX Studio – isn’t it pretty!
At the end of my last post in the Gantt Chart series, GANTT CHART WITH RESOURCE LOADING, I said that I would return to explain how the Hours measure worked. I took a brief diversion, almost foray, into the world of CRM PIPELINE FUNNEL CHARTS but I’m now back to explain the workings of that Hours measure. You can revisit PART1 and PART2 of this series to recap.
In the interim, I’ve been working on some “fine tuning” of that Hours measure. I’ll come onto the final solution in due course, but I’ll work through the workings of the Hours measure as we left it initially to explain why it needed tuning up!
For those amongst you with an appreciation of SQL, you might think of this like creating a DAX Equivalent LEFT JOIN between tables with a BETWEEN thrown in for good measure.
Pipeline Funnel Chart
For those of you waiting on the explanation of the SUMX / SUMMARIZE measure in GANTT POST 2, I have to put you on hold for a while longer. Sorry. In truth, I’m working through some performance aspects with that measure.
For now, I thought I would take the opportunity to expose the Pipeline Funnel Chart. It’s really quite straight forward but it’s incredible how few people know that it’s available to everyone, doesn’t require any real manipulation and YES it’s a standard PowerPivot chart!
For those of you that want to dig straight in, YOU CAN DOWNLOAD THE WORKBOOK HERE
Gantt Chart with Resource Loading Report
The response to POST 1 of this Gantt Chart mini series was swift and it didn’t take long for Vegard to contact me with a query regarding resource loading. Vegard had quickly taken the template and adapted it to include resource hours. The issue existed with getting the total hours for each resource to behave the way he wanted. Naturally, individuals will normally work for a set expected amount of time per day and if tasks are planned which exceed that expectation, it’s obvious that they might not get the work done!
In this post, I’ll start to explain how to adapt the model from the previous post to include resource loading and associated subtotals per individual resource.