Can’t wait for the Tableau conference next week year? How about playing a game of blackjack against Tableau in the meantime? No, you won’t win real money. But you can sharpen your skills in case a future since the next conference is in Vegas.
By the way, this dashboard uses a little known fact that secondary data sources are many times refreshed only from the cache even when the primary sends a new query to the data source. Want to discuss? Ask me questions, provide feedback and critique in the Tableau Community Viz Talk
Just remember to press F5 (refresh the browser) after you play — or the cards won’t be shuffled (of course, you could use that to your advantage by just pressing the revert button – though sometimes the dealer still likes to shuffle).
(scroll down to play!)
Joshua,
I don’t know how you do it, but you are one of the most creative Tableau users that I know of. Congrats on your continued excellent work and thanks for teaching me new tricks. I’m looking forward to playing some blackjack!
Ken
Thank you for the kind words, Ken!
neat concept, but I’m getting the same hand every time.
JR,
I looks like Tableau Public has gotten even more efficient at caching than when I first created this. It used to be that most new “sessions” would re-randomize. There are some other occasional oddities as well. I’ll have to look into it and see if there are any ways to force the randomization.
-Joshua
Joshua,
I added “&:refresh=yes” to the link and it looks like it forces a new session and doesn’t cache. Cards do not repeat, at least for the few hands I tested.
http://public.tableau.com/views/BlackJack/Blackjack?:embed=y&:loadOrderID=0&:display_count=yes&:showVizHome=no&:refresh=yes
As for the Javascript, I added in “” right before the param name=’toolbar’
Sorry, the code didn’t show in the comments. I added in “param name=’refresh’ value=’yes’ ” in between a greater than sign and /less than sign