Tip of the Week

Cascading Property Control Drop downs

Last week we discussed how to create cascading Property Control Drop downs using Data On-Demand.  This is done using Information Links. If you do not use Information Links, this week’s tip will show you how to accomplish this without using Information Links. All the data will be loaded into Spotfire at once, but you can use the drop downs to select what information to show in given visualizations.

To do this we make use of Calculated Columns.  Let’s assume we have the same Data Table from the previous tip, which contains ‘Region’, ‘State’, and ‘City’, along with other Columns, and we want to allow the user to select which Region to load via a Property Control, and then display States from that region in a second Property Control.  Finally after selecting a State from the second Property Control, a visualization is updated to display Towns and Cities from the selected State.


First step is to create a drop-down list Property Control to display unique values from the Region column.

 

Next step is to create a Calculated Column called ‘Filtered State’. In the expression we should check if the Region Column value equals the value specified in the property we created earlier. If it does, it will output the value from the State Column.

if ([Region] = "${whichRegion}",[State],null)


Next step is to create the second Property Control drop-down. This one will display unique values in the newly created Filtered State Column.
 

The final step is to create a second Calculated Column called ‘Filtered City’. In the expression we should check if the State Column value equals the value specified in the property we just created. If it does, it will output the value from the City Column.


if ([State] = "${whichState}",[City],null)

Now we can create any visualization and use the ‘Filtered City’ column to display the Cities and Towns from the selected State from the selected Region.
 

Interested in learning more, take our 3.1 Delta training or our end user training courses either onsite, regionally, or using our blended online/webinar model.

Comments

 

Birgit said:

Great tip!

I use these dropdown to give the user the choice between customergroups (ie. business customers or consumer customers) or productgroups.

Is there also a possibility to use document color schemes?

When I change the selection, I loose the color settings.

June 10, 2010 9:48 AM
 

thesis papers said:

great one...

June 15, 2010 1:44 PM
 

Lauwm said:

How do I allow users to select multiple states, then show all the cities within the multiple states?

July 18, 2010 9:58 PM
 

Tip of the Week said:

There are some situations where you will want to have a Drop-down list Property Control display fixed

September 25, 2011 6:54 PM
 

David said:

Did anyone else have problems getting this to work?

November 21, 2011 8:10 PM
 

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:13 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:03 AM
 

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:03 AM
 

uggretrocargosale said:

January 4, 2012 8:49 PM

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