May the Parameter be with you
Once upon a time, an analytic user that we will call “Darth Vader” from now on, asked me to know the total gross-sales amount made by his souvenir shops on the Emperor’s Death Star. I summoned a pack of filthy blood-thirsted puppy-loving spatial bounty-hunters, we made a SAS Visual Analytics report, and then I could show Darth Vader: “250 million colons sir!”. For those who don’t know, colon is not just the ending part of your intestine, it is Costa Rica currency as well. You might wonder why the Death Star currency is Costa Rica currency too, however this is a mystery that historians are still struggling with. I think it must have something to do with workforce costs.
“Good job padawan, today you survive, now tell me the total gross-amount for vibrator souvenirs sales only”. An ambiguous Ewok that was looking quite familiar with the topic, proposed to split the gross-amount KPI on the merchandise category. Now you should know the range of products sold on the Death Star is quite wide, therefore we turned out to have one hundred useless extra-columns, talking about shit-flavored lollypops, wrong-holed inflatable dolls, Jabba the Hut porn movies, and such, and we could not find vibrators. Darth Vader made the Ewok become more familiar with vibrators.
A wooly wookie suggested then to apply a filter, so we did. When Darth Vader saw the report, he asked why he couldn’t see the vibrator’s total together with the overall total inside the same table. “Sir, if we make a filter, VA is not considering anything else falling outside the filter constraints, so this is the total in its perception, this is the sacred VA Verb!”. The wooly wookie was taken to a beautician and shaved to death.
Then it came the time for the Gungan. “…shall weesa build a calculat measure?” It took almost four hours for the Gungan to write down the formula, and when Darth Vader asked for the total for shit-flavored lollypops too, the Gungan committed suicide.
And it was only after they were all shaved, suicided and “vibrated” to death, that it came to my mind Yoda’s teaching: “Miiiiike… the Parameter runs strong inside you! Use the Parameter!”. I always thought that having a parameter valorized as “vibrators” is not very useful, however in that moment I realized that you can have the parameter bound to a selector such as a textbox or a combobox, and then having the calculated item using the parameter itself.
IF ( ProductCategory'n = '<parameter>'p )
RETURN 'value'n
ELSE 0
Darth Vader types the product category inside the textfield, and then the calculated item re-calculates on that very category.
In particular, parameters are very handy for what-if analysis (e.g.: what if Darth Vader asks for a new report?). Having complex KPIs with dynamic definitions means that by switching the parameters values we can have the metrics re-calculated on the fly basing on different possible scenarios. Many of you already know the Bridget Jones use-case: a drop-down list showing panties types and two KPIs: “% probability to get to bed”, “% probability to have him running after he sees your panties”. By selecting “granny-style panties” or selecting “tangas” the effect is quite different, and KPIs evidently invert their trends.
In the end, I want to emphasize just one aspect about this VA feature, but I have to be very clear about it: I watched “The Bridget Jones Diary” just once, and just for Visual Analytics’ sake. I swear.
May the Parameter be with you.











