williamweber.net
  • Home
  • About
KEEP IN TOUCH

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

Gowalla vs. Foursquare: Location based “gaming”

Dec04
2009
3 Comments Written by Will

Gowalla by Austin, TX based Alamofire and Foursquare are two new location based mobile apps that were release this year and both have been getting an lot of attention. Location based apps and games are gaining quite a bit of popularity as GPS becomes almost ubiquitous in our handheld devices. The raise of Geocaching is a great example of how a techy hobby has gone mainstream with the increase of GPS aware devices; just do a search for geocaches near you and you’ll know what I mean.

In concept Gowalla and Foursquare are rather similar. You create an account, get connected with friends, and then you start “checking-in” to various establishments as you go about your daily or nightly travels. I’ve decided to write up what’s turned into a rather lengthy comparison of the two and which one I prefer. So without further ado, here goes:

READ MORE »

  • Share this:
Posted in Gaming, Social Games - Tagged Gaming

XNA Used by Rock Band for Community Content

Jul18
2009
2 Comments Written by Will

I did a presentation at my office recently about the basics of XNA 3.0 and what’s possible with it. During that presentation someone asked me if XNA was being used by any major developers to create games. At the time I didn’t have any specific examples but I did say that I believed the platform had the capability to do so. Yesterday I found an article that talks about the new Rock Band Network a joint venture between MTV (which owns Harmonix, the company that developed Rock Band) and Microsoft to create a community driven platform for adding content to Rock Band.

This is pretty much what I’ve been expecting from one of the two music games from the beginning. Some way for emerging artists and bands to throw their master tracks up and have something spit out the appropriate colored buttons on virtual fret board. I actually think the Rock Band Network is an even better solution than some sort of algorithm. Now, there’s a way for labels, bands, or studios to put a track on the Network and have a dedicated community help create the virtual track.

Now, being that this Network is actually a subset of XNA Creators Club it’s unsurprising that the tracks created through this network will only be available on the Xbox 360. Bummer for those PS3 owners, but in the grand scheme of things a venture like this is only going to improve the music game genre which, in my opinion, has become incredibly stale and over-saturated. Maybe I’ll even dig my plastic instruments out of the garage and turn the game on again.

Here’s an excerpt from the article:

The Rock Band Network is the result of a 16-month development process with a number of partners. Most important was Microsoft. Tracks released through the Rock Band Network will only be available at first to Xbox 360 users, as it relies on Microsoft’s XNA game development platform and its Creators Club online community of developers.

The Creators Club allows freelance developers or hobbyists to make their own games and sell them on the Xbox Live Marketplace. Games created through this process must first be submitted to the Creators Club community for game-play and content review before they are added to the marketplace.

The Rock Band Network marks the first time that XNA and the Creators Club have been used to outsource the development of expansions to an existing game, according to Dave Mitchell, the Microsoft product unit manager in charge of overseeing the two programs.

The Creators Club reviews about 30-50 games per month. Because MTV and Microsoft expect the number of “Rock Band” submissions to quickly dwarf these totals, the software giant took the unprecedented step of creating a custom version of the Creators Club for Harmonix, complete with a customized set of review procedures specific to music games-including checking for copyright infringement-which Harmonix will host separate from the existing Microsoft site.

  • Share this:
Posted in Gaming, XNA - Tagged Gaming, xna
« Older Entries

Recent Posts

  • 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
  • The Building Windows 8 Blog is Amazing!
  • My iPad Must Have App List

From Twitter:

  • Seriously #SSAS not having a a simple Average aggregation is @#$@%!!! ridiculous. #ssashelp 1 day ago
  • looking for recommendations on a heart-rate monitor. Simple or all advanced techno-fancy is cool. 1 week ago
  • Look! Has made it back into our nightly rotation recently. Cute little book. Thanks @fourzerotwo and @jawboneradio http://t.co/2rRf3UON 1 week ago
  • More updates...

Posting tweet...

Powered by Twitter Tools

Categories

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

Archives

  • 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