Tip of the Week

Using Multiple Ranges in a Column

One of the most requested tasks is the ability to assign multiple ranges to a column. For example, suppose you are looking at sales data and you want to look at sales between two separate ranges?  There are a couple options. You can always create a Tag column and tag the values as either in the ranges or outside the ranges.  This would require some manual effort in creating the Tag Collection and then tagging the values.

A quicker option is to use an expression inside the axes you want to display the column in.   For example, if the name of the column we want multiple ranges on is ‘Total Amount of Purchases' and the two ranges we wanted were between $5,000 and $20,000 and then between $35,000 and $50,000, we would build the expression as shown below:

if((20000>[Total Amount of Purchases] and [Total Amount of Purchases]>5000) or (50000>[Total Amount of Purchases] and [Total Amount of Purchases]>35000),[Total Amount of Purchases],null)

If you add the expression above to an axis in the Expression dialog, it will add a few parenthesis and show up as it should.

 

 

 

If you use an expression like above with the values hard coded, its best to hide the Filter from the Filter Panel, as it may be confusing to the end user.

However, if you use an expression that does not have hard coded range values, rather they are calculated using built-in functions, then the ranges will be updated when the Filter is updated, so it is a good idea to keep showing the Filter.


Comments

 

pilotman145 said:

thats a new way to look at it. thanks

November 18, 2009 12:24 AM
 

uggkensington said:

http://www.uggkensingtons.org/

http://www.uggkensingtons.org/ugg-fox-fur-short-boots-5531-c-54.html | UGG Fox Fur Short Boots 5531

http://www.uggkensingtons.org/ugg-kensington-boots-5678-c-2.html | UGG Kensington Boots 5678

http://www.uggkensingtons.org/ugg-rainier-eskimo-boots-5189-c-85.html | UGG Rainier Eskimo Boots 5189

http://www.uggkensingtons.org/ugg-retro-cargo-boots-1895-c-3.html | UGG Retro Cargo Boots 1895

December 27, 2011 8:17 PM
 

uggskensingtonsale said:

www.uggskensingtonsale.org

www.uggskensingtonsale.orgugg-adirondack-boots-ii-c-6.html | UGG Adirondack Boots II

www.uggskensingtonsale.orgugg-adirondack-tall-boots-c-11.html | UGG Adirondack Tall Boots

www.uggskensingtonsale.orgugg-amberlee-boots-c-34.html | UGG Amberlee Boots

www.uggskensingtonsale.orgugg-annabelle-boots-c-35.html |

December 28, 2011 4:30 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

Syndication

Tags

Other Spotfire Blogs

Spotfire's interactive information visualization and analytic solutions give users a remarkable experience for quickly and easily querying data and reporting results for superior business intelligence. From portfolio management and customer retention programs to key processes such as CRM, marketing, research, bioinformatics, yield and asset management and design for manufacturing, enterprises around the world rely on Spotfire's business analytics software to improve operational performance.

©Copyright 2000-2011 TIBCO Software Inc | Privacy Policy | Terms of Use I Blog I Contact Us I Content Center