Archive

Archive for the ‘General’ Category

Use PowerPivot DAX to get values within a Start and End date

April 3rd, 2011 1 comment

Again a interesting question on my ask a questions page, keep them coming :)

Luke had a question where he wanted to get a date based calculation:

I have a table of people and a table of project assignments.
The assignments have a person, start date, end date and number of hours per week.

I want to create a pivot that has the date as columns and people as rows, with the total number of assigned hours as values.

I created a table in Excel that recreates this scenario:

Next I created a new table that contains a separate date range:

I loaded both tables  into PowerPivot. Because  I want to get the total number of hours per day I am unable to work with a relationship between the date table and the fact table. I need to create a formula that searches the fact table for those that rows are appropriate for each date value in the pivottable.

=Calculate(
	sum(Project[Hours]),
		FILTER(Project,
				COUNTROWS(FILTER(VALUES(Dates[Dates]),
						Project[startdate] <= Dates[Dates] &&
						Project[enddate] >= Dates[Dates] ))
				> 0)
		)

This measure does the following:
Calculate the sum of project[hours] for those rows in the Project table that has more than 0 rows in the Date table where Project[startdate] < = ‘Date’[Date] and Project[enddate] >= ‘Date’[Date].

The only downside of this query has to iterate through the entire project table for each row in the date table, is if the Project table is huge this might have big performance impact.

 

A second question was to create a project start date to current date sum. Again we need to create a measure to do it:

=if(COUNTROWS(VALUES(Dates[dates])) = 1,
	SUMX(DATESBETWEEN(Dates[dates], FIRSTDATE(Project[StartDate]), VALUES(Dates[dates]))
			, Project[SumPerDayMeasure])
, BLANK())

What happens here is that we want to sum all the values of the measure per day for each day from the beginning of the project to the current day.
Sumx will sum the values of our previous measure for each day between FIRSTDATE(Project[StartDate]) and VALUES(Dates[dates]), being the current day in the context.

Whence Microsoft's Master Data Management Product?

Kirk Haselden from MS has blogged some news about the upcomming Master Data Management product:

we’ll be formally announcing the go to market plans for the master data management product soon. If the number of emails in my inbox is any indication, interest in Microsoft’s MDM offering is really heating up. For those that may be wondering if the Stratature product lives on, I can definitely say yes. The core capabilities will be there, the people that came to Microsoft from Stratature are still part of our team and contributing with those that have joined since to deliver the next release.

Folks who wanted to be on the Technology Preview but didn’t make the cut off date don’t need to wait long as the TAP is around the corner.

I really want to see this, i’m very curious how the product is going to work.

Categories: BI general, General Tags:

5 Ways Companies Screw Up Business Intelligence—And How To Avoid the Same Mistakes

A collegue pointed this great slideshow from 2007  with some great tips:

Business intelligence is on top of most enterprises’ buying agenda: according to Forrester, 41% expect to make a purchase or upgrade related to BI in 2007. Still, there are plenty of obstacles that hinder—or even sabotage—a company’s ability to succesfully analyze data and act on it.

See the entire presentation here: http://www.baselinemag.com/c/a/Past-News/5-Ways-Companies-Screw-Up-Business-IntelligenceAnd-How-To-Avoid-the-Same-Mistakes/

Categories: BI general, General Tags:

Cloud Interoperability – Five Challenge Problems

April 21st, 2009 No comments

Ok while not realy BI (not yet anyway till Gemini) its a topic i am interested in: “data in the cloud”. This blog identifies five problems when starting to use cloud services,a interesting read:
http://smartdatacollective.com/Home/17990

Categories: Cloud, Coding, General Tags:

Microsoft Roadmap for Enterprise Search

March 4th, 2009 No comments

Enterprise search and business intelligence are two categories that have been closely linked to one another for some time. As information continues to rapidly grow, so does the need to navigate and make sense of it. Microsoft has disclosed a detailed road map for its enterprise search products, including the introduction of FAST Search for SharePoint and FAST Search for Internet Business. FAST Search for SharePoint will combine high-end search with the broad portal, collaboration, content management and business intelligence capabilities of SharePoint. Get the full details here.

From the MS BI blog.

Categories: General, SharePoint Tags: ,

Cool stuff: Real time NBA BI

March 2nd, 2009 No comments

A Post from MS BI blog attends us to a great real world BI app:

Xbox live and EA Sports have teamed up to provide a more realistic gaming experience with the latest NBA live 2009 video game feature, dubbed NBA live 365. The service pulls real data and statistics used as tracking data used by the real NBA teams. The result, the players who are hot or cold in the real NBA, perform better or worse in the game, creating an even more realistic gaming experience, as if the game wasn’t real enough! The service provides a detailed player DNA that includes real-world basketball data on statistics such as isolations, pick and rolls, post ups, spot ups, off ball screens and cuts. What the video from EA Sports to learn how it works.

Pretty cool stuf, great example of using a different kind of intelligence to create an amazing user experience.

Categories: BI Technical, General Tags: , ,

Last.fm on Twitter

February 25th, 2009 No comments

Since im forced to use twitter now :) I want to sync my last.fm with twitter: you can use the “Recently played tracks” feed and Twitterfeed. First, create (if you haven’t) an account on Twitterfeed and click on “go to my twitterfeeds (or create a new one)”, then on “Create a new feed”. On that page, enter your Twitter name and password (you can click on ‘test twitter authentication’ if you want to) and on “RSS feed url” type your “Recently played tracks” feed and click on ‘test rss feed’. On “Update frequency” and “Post up to X new updates each time”, you can choose how frequently (and how many updates) you want your tracks to be shown up, but remember to be considerate with your followers, since if you set this to update every 30 mins 5 new updates, this can be somewhat annoying to others. Then on the “Include” drop down menu, choose “title only”, so in this way, you can tweet the direct link to the song, and not only to the musician. Don’t forget to check the box next to “Include item link”. When you’re finished, click on “Update”, go listen to music and see if it works (it should be in a short time) Hope this helps you.

Found at http://getsatisfaction.com/twitter/topics/last_fm_on_twitter

Categories: General Tags: ,

CBS Gives March Madness Gives a High-Quality Makeover with Silverlight

February 23rd, 2009 No comments

Another big implementation with Silverlight that gets my basketball hearth beat faster !

CBS Sports is adding a high-quality viewing option to its March Madness On Demand (MMOD) video player.

2009_mmod_hq_player

The new player uses Microsoft’s Silverlight (CBS has a history with Microsoft and previously used the Windows Media Player). You can stream all 63 tournament games in standard definition at approximately 550kbps, or enjoy a sharper picture with the high-quality player with streams delivered up to 1.5 mbps.

Microsoft’s video technology already proved it can handle big sporting events during last year’s Olympics. Though Silverlight isn’t as ubiquitous as Flash, Microsoft says more than 100 million PCs have installed Silverlight 2.

Source: http://newteevee.com/2009/02/15/cbs-gives-march-madness-gives-a-high-quality-makeover/