williamweber.net
  • Home
  • About
KEEP IN TOUCH

Posts by Will

Named Set Sub-totals in Excel using VisualTotals()

Feb22
2012
Leave a Comment Written by Will

This is just a quick tip for fixing the default Analysis Services (SSAS) named set sub-total behavior in Excel 2010. Normally when you select a named set for the rows or columns of a pivot table you don’t get a sub-total. Which, for me, removes a lot of the usefulness of the named set. Thankfully it’s a relatively easy fix. It just takes a little additional MDX in your named set definition.

Enter: VisualTotals() (msdn function reference)

The VisualTotals() function dynamically totals child members in a set. By adding the “All” member for whatever hierarchy you’re building your set from and wrapping the whole set in the VisualTotals() function you can get Excel to treat the named set just like any other group/hierarchy when it comes to sub-totals.

Typically if you created a set like this one (all examples from Adventure Works):

WITH SET [Amasia] AS
{
	[Geography].[Country].&[United States]
	,[Geography].[Country].&[Canada]
	,[Geography].[Country].&[Australia]
}

You’d see something like this:

no sub-totals

If instead you create your set like so:

WITH SET [Amasia] AS
VisualTotals(
	{
		[Geography].[Country].[All Geographies]
		,[Geography].[Country].&[United States]
		,[Geography].[Country].&[Canada]
		,[Geography].[Country].&[Australia]
	}
)

You’ll get a nice little sub-total at the bottom.

Yey! sub-totals

One thing to note is that you need to put the “All” member at the beginning of your VisualTotals set. Otherwise it won’t be correctly filtered by the children that follow and you’ll end up with a sub-total that is actually the full, unfiltered total of the “All” member.

  • Share this:
Posted in BI - Tagged BI, MDX, Scripts, SSAS

New Camera Please. – Mirrorless ILC Goodness

Feb08
2012
Leave a Comment Written by Will

A few years ago my wife and I upgraded our intro-model DSLR camera for a mid-range one (Nikon D60 to the Nikon D90). We’ve really enjoyed the camera and looking at our picture catalog from the before we moved into the DSLR world it’s readily apparent how much better our pictures are using a quality camera over a point-and-shoot.

That being said, I want a Mirrorless Interchangable Lens Camera (Mirrorless ILC or MILC) right now.

Trey Ratcliff (G+, twitter) over at www.stuckincustoms.com made a post recently about the coming demise of the DSLR. It got me interested in the technology and after looking at some of the new cameras that are coming out, I can’t wait to upgrade.

This one in particular caught my eye. It’s the Olympus OM-D E-M5. Stupid naming conventions aside, it looks sweet. The silver body model, with it’s throwback design is especially appealing. I reminds me of the my old film camera from high school. And although I have no particular love of my high school days I did love taking pictures and working in the dark room for hours on end.

Olympus OM-D E-M5

Unfortunately an upgrade is a long way off. These new-fangled toys don’t come cheap and all my existing DSLR lenses don’t do me a lick of good. Yep, gotta buy new stuff there too.

On the upside by the time I can afford to upgrade I believe the vast majority of the “issues” people have with the new technology will be worked out. Sensors will be bigger, the electronic viewfinder will have improved in speed and performance, and most importantly, the prices will start to come down.

In the mean time I’ll just lust after all the pretty hardware from afar.

  • Share this:
Posted in Photography - Tagged cameras, dslr, mirrorless ilc, photography

Formatting Map Legends in SQL Server 2008 R2 Reporting Services

Jan08
2012
Leave a Comment Written by Will

Recently I needed to do some slightly more advanced formatting of a map legend in SQL Server 2008 R2 Reporting Services (SSRS). I love the map reports you can build with SSRS in 2008 R2 but if your legend needs to show anything other than whole numbers, like a percentage, or perhaps a decimal value, or maybe even display negative values using parentheses instead of dashes, well you might be thinking you’re out of luck.

Thankfully that’s not the case. There isn’t a convenient number format screen for the map legend but it is possible to do all of the fancy formatting you want; it just may not be apparent at first glance.

The first thing that might throw you is that formatting for the various values that you want in the legend is not done in the properties of the legend itself. Legends in SSRS maps are just containers. You can display the values for multiple pieces of data in a single legend, like showing both the color and the size of a bubble. This means that the number format for a particular data set is done on whichever layer contains that piece of data.

In the list of map layers click on the little down arrow to the right of the layer that contains the legend data you want to modify and then select either the color or the size rule that you want to display. In this example I’m changing the color rules for a point layer, but you’ll find the same options the center point of a polygon layer as well.

Layer Properties Select

Once in the properties dialog select the legend tab.

Layer Properties Dialog

Here you can select which legend container you want this legend to appear in and you can set the format in the “Legend text:” box.

Here’s a quick breakdown of the format string you see in that box:

#FROMVALUE{N0} - #TOVALUE{N0}
  • #FROMVALUE (and #TOVALUE) – pretty self explanatory these are indicators for the values on either side of each range in your legend.
  • {N0} – This is the format of the value on either side of range.
  • If you’re so inclined you can even change the center ‘-’ to some other character(s) to change how the range values are separated.

On to the formatting itself. “N0″ is the same formatting string you see elsewhere in your SSRS reports, meaning a number with 0 decimals. So by using rather typical Excel style formatting strings you can make the values in your legend look however you like. So

Showing 2 decimals

#FROMVALUE{N2} - #TOVALUE{N2}

Percent with a single decimal

#FROMVALUE{P1} - #TOVALUE{P1}

Or this way if you prefer

#FROMVALUE{#.0%} - #TOVALUE{#.0%}

Which means that if you want to get fancy and do something like, say, change negatives to use parentheses instead of a dash you can use a semicolon to delineate how a number looks when it’s positive or when it’s negative, like so: (I changed the separator to a || just for fun)

#FROMVALUE{#.0%;(#.0%)} || #TOVALUE{#.0%;(#.0%)}

I’ve been spending  a bit of time with map reports lately so I’ll some more mapping related stuff to post in the near future.

  • Share this:
Posted in Reporting - Tagged Maps, Reporting, SQL 2008 R2, SSRS

MDX: Scope Statement For All Measures in Multiple Measure Groups

Dec06
2011
Leave a Comment Written by Will

This was irritating me today so I thought I would share. If you need to write a scope statement that will include all the measures in multiple measure groups; perhaps you’re implementing some Time Intelligence calculations and you want to have any new measures dynamically included, then the statement looks a little something like this:

SCOPE({MeasureGroupMeasures("Internet Sales"), MeasureGroupMeasures("Reseller Sales")});

I forgot the {} the first time around and was super confused by an error message when I attempted to deploy the MDX calculation to the cube that said that said “The END SCOPE statement does not match the opening SCOPE statement.” Because my SCOPE and END SCOPE statements looked just fine to me.

  • Share this:
Posted in BI, Scripts - Tagged Analysis Services, MDX, Scripts, SSAS

Startup Frenzy Is Out of Control

Oct20
2011
Leave a Comment Written by Will

A recent, and refreshingly brief, article over on Business Insider about the inexplicable amount of hype that tech media lavishes on startup funding crystallized what’s got me so cynical about “the valley” and startups lately. What it comes down to is that I simply cannot understand how so many seemingly intelligent people think it’s a good idea to throw huge sums of money at a “business” (if you can even call most startups a business) that has absolutely no revenue stream, and moreover has no viable plan for generating one.

It’s ludicrous (or is it Ludacris, I get them mixed up).

And yet, I think I could conservatively estimate that about 98% of all the articles the show up on Tech Crunch and other tech blogs make some mention of some new funding round that Social-McGamify (totally trademarking that) has just managed to secure.

But when a startup announces that they’re going to focus on generating revenue instead of digging a hole of debt they get a polite golf-clap and whispers ripple through the audience of people trying to figure out what they could be thinking; “You’re never going to make it the front page of Techmeme with a viable business model, you fool.”

What they’re thinking is that wrapping your mouth around the VC funding exhaust pipe (or other metaphoric pipe-shaped thing) is, for lack of better phrase, retarded. Not only are you reinforcing the fact that you can’t make money, you’re spending your time whoring yourself to VCs rather than working on your business/product/service. Take that time and energy and put it toward making something that people will actually pay you for.

Listen, if your strategy is hovering anywhere near the “get a bunch of users and then monetize them with ads” model I’m going to clue you in on something:

No one wants your shit.

Users want more ads like they want to get shot in the face with Nerf darts dipped in feces. If you can’t come up with a product or service that people will give you actual money for, just stop. Stop what you’re doing and go beg for your job back stacking widgets at the widget factory. Besides people with good ideas need widgets and those widgets aren’t going to make themselves.

  • Share this:
Posted in Opinion - Tagged opinion, startups

The Building Windows 8 Blog is Amazing!

Oct12
2011
Leave a Comment Written by Will

Windows 8 Start ScreenWow! The Building Windows 8 blog is amazing. And the most recent post, Reflecting on your comments on the Start screen, in which they respond to a number of the comments about the new Start Page design is pretty much mind-blowing in its transparency and detail.

That a company with Microsoft’s history and with the negative perception that hangs over just about everything the company has done since their inception to fling the doors open on the entire design and development process for their flagship product borders on the insane.

But I love it.

Despite  its size and technical detail (or maybe “because of”, I can’t decide) the post below was one of the most interesting things I’ve read in months. I mean, holy shit, there’s a goddamned comparison heat map of mouse travel time for a user to get to their favorite applications between Windows 7 and Windows 8. Who exposes that level of detailed research to their users (at times overtly hostile users at that)? There’s even a mathematical formula for Fitts’ Law (which I had never heard of) that I can’t imagine anyone cares about, but still it’s there and it made perfect sense to me to include it in the post.

Now granted, I work for a Microsoft Partner, and Microsoft technology has put food on the table and a roof over my family’s head for basically my entire working career, but in all that time I still often felt like I was working for the “bad guy.” Microsoft the unstoppable devil of the tech world that’s going to eat up all the little guys and squelch any and all innovation it can get its grubby mitts on.

But in the last two or three years, with a real ramp-up around the release of Windows Phone 7, my feelings have changed dramatically. Now I feel that Microsoft is doing more interesting and innovative work than the vast majority of the cookie-cutter startups in Silicon Value that Robert Scoble likes to blather on about. I’m pretty sure I’m going to puke the next time I see “breaking” news about the latest location-based, app-discovery, picture-sharing, social-network, wunderkind that’s managed to convince a gaggle of jack-ass VCs (who all just happened to have started the last, now defunct, version of the very same thing) to give them a few million dollars.

Give me a company that’s making fundamental changes to the most widely used operating system on the planet and doing it completely out in the open. That’s who I want to work with.

  • Share this:
Posted in Opinion - Tagged Microsoft, opinion, Windows, Windows 8

My iPad Must Have App List

Oct11
2011
Leave a Comment Written by Will

I was recently asked for a list of apps I would recommend for the iPad. I decided to do it up right, with links and some brief commentary and post it on the blog. Seemed the easiest way to share.

I’d be curious to hear your suggestions for the list.

News:

  • Zite (excellent presentation and very configurable)
  • Flipboard (also good for social networks and whatnot. I like Zite better for straight news)
  • Huffington Post
  • NPR for iPad

Games: (Side note: I like iPad board games, so this list is a little heavy with that type of game)

  • Smallworld (fantastic boardgame by Days of Wonder – my favorite game company.)
  • Ticket to Ride (again by Days of Wonder – their most popular game)
  • Conquist (this game is beautiful. There is a sequel that I haven’t played but it looks to be even better than the first.)
  • Scrabble (great iphone integration. Of course you have to like scrabble)
  • Cut the Rope HD
  • Steambirds (there’s a free flash version on the web you can try out to see if you like it)
  • Crimson: Steam Pirates (a rip off of Steambirds with higher production values, still good)
  • Puzzle Agent 1 and 2 (I liked 2 better but both are great)
  • Plants vs. Zombies

Kids: (I have a 3 year old girl, just for context on these picks)

  • Parachute Panic HD (fun game in its own right, but my little girl loves it)
  • Doodle Find
  • Little Things (fun “find the item game.” Artistically quite nice.)
  • Rapunzel – Tangled (animated story book. my daughter’s favorite)
  • PBS Kids (can be hit or miss, but I have found some good stuff for the kids)

Productivity/Tools:

  • Springpad (a great web service for saving notes and all sorts of other stuff)
  • AppShopper (great for finding new and onsale stuff. I got just about every EA game over a few months for $0.99 because of this)
  • Bing for iPad (surprisingly awesome)
  • Quickoffice Pro HD (spendy, but great if you want to use your iPad for work related stuff)
  • Penultimate (best handwriting app by far)
  • Nightstand Central (I use this for my alarm clock. Tons of options.)
  • Wundermap (my favorite weather app)

Other Stuff:

  • NFL ’11 for iPad (very well done if you’re a football fan. Must have.)
  • Share this:
Posted in Gaming, Opinion - Tagged apps, ipad, lists

Nook Color Price Drop – I Think They Want to Fail

Sep29
2011
Leave a Comment Written by Will

Barnes & Noble is a little amusing with this price drop on their Nook Color. They dropped the price $25 after the Kindle Fire annoucement sent their stock in the toilet (via All Things D). So now it’s $225. That’s still $25 more than the Fire which appears to be a more full featured device from a service provided with more content and cheaper prices.

These are the decisions that baffle me. Android tablets like the Xoom that come in a at the same price as the iPad. Price drops that are essentially meaningless because you’re still more expensive than your competitor and that’s all that people care about. You could have dropped it to $200 even and still would have been idiotic because even $1 more than the Fire is way to much.

Now if they had done something interesting like say, dropped the price to $180 so they were closer to the price of the new B&W Kindle Touch, that might make a difference to consumers. As it stands, unless they plan another significant price drop to coincide with the actual release of the Fire on Nov.15, B&N is in for a world of hurt.

  • Share this:
Posted in Opinion - Tagged amazon, b&n, kindle, kindle fire, nook, opinion

Disable Visual Studio Automatic Connect to Team Foundation Server (TFS)

Apr15
2011
Leave a Comment Written by Will

Recently I’ve run into an issue connecting Visual Studio into a number of TFS systems simultaneously and also wanting to use Visual Studio for my own development without connecting to TFS. By default Visual Studio tries to automatically connect to the last TFS environment that you were connected. When you don’t have access to that server Visual Studio takes forever to fail that connection and then allow you to either connect to a different server or just open without the connection at all.

To fix the problem I went out and grabbed the Team Foundation Server Power Tools.

After installing those tools. I opened up the Visual Studio Command Prompt:

Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt

Then ran:

tfpt connections

That brings up the the TFS Connection dialog where you can uncheck:

“Automatically reconnect to last server on startup.”


And that allowed me to open Visual Studio and then choose my Team Server if I was in that environment or to develop locally without waiting for Visual Studio to fail it’s connection to the Team Server.

There may be other ways to deal with this but this worked for me and has greatly reduced my irritation when trying to develop in multiple environments.

  • Share this:
Posted in BI - Tagged team foundation server, tfs, visual studio

A New Goal for A New Life

Jan19
2011
3 Comments Written by Will

There’s nothing like drastic, violent change that can make you reevaluate your life and future. Five months ago (just about to the day) my second daughter was born. That caused my wife and me to reevaluate our lives together and we decided that it made a lot of sense for her to leave her job and stay at home with the girls. We’ve been very happy with the decision and wouldn’t change it in the least, but it’s certainly been a learning experience for the both of us. Then last month I left my job to join a great consulting firm in the Twin Cities. I’m extremely excited about the change but consulting is a new world to me which only adds to the anxiety of starting a new job.

All of this change has caused me to look at my personal and professional goals and really take stock of where I’m going. The end result is that I’m pretty much tossing everything out the window and starting fresh. READ MORE »

  • Share this:
Posted in SQL Server - Tagged goals, mvp
« Older Entries

Recent Posts

  • Named Set Sub-totals in Excel using VisualTotals()
  • New Camera Please. – Mirrorless ILC Goodness
  • Formatting Map Legends in SQL Server 2008 R2 Reporting Services
  • MDX: Scope Statement For All Measures in Multiple Measure Groups
  • Startup Frenzy Is Out of Control

From Twitter:

  • Not being able to put named sets in the report filter of an Excel pivot table really is becoming the bane of my existence lately. #msbi 7 hrs ago
  • In @Target and there isn't a @windowsphone in sight. Are they even trying. 3 days ago
  • Troubleshooting data driven subscriptions in #SSRS is good fun. 5 days ago
  • More updates...

Posting tweet...

Powered by Twitter Tools

Categories

  • BI
  • Gaming
  • Opinion
  • Photography
  • Reporting
  • Scripts
  • Social Games
  • SQL Server
  • XNA

Archives

  • February 2012
  • January 2012
  • December 2011
  • October 2011
  • September 2011
  • April 2011
  • January 2011
  • December 2009
  • July 2009
  • April 2009

EvoLve theme by Theme4Press  •  Powered by WordPress williamweber.net