Wednesday, 18 September 2013

Tableau on Mac revisited

Hi guys,

Looks like the wait is almost over. If you've been in the Tableau bandwagon and roam around the forums, you'll notice something that keeps popping up, a lot people love Tableau but people would love even more to run Tableau on their Macs. Its nothing like having a shiny laptop with a glowing Apple logo on it doing all this visualizations, it just clicks.

Tableau has been the envy of Mac users who had to resort to virtualization just to run their favorite analysis software, such elegant tool does not belong to an old clunky PC they might think. Alas, they can rejoice although not too soon. Tableau v8.2 which will feature a Mac version would likely be released early 2014, how early? We have no idea, but don't expect it to be too early.



You can view the original report at the Tableau Public Blog.

Friday, 15 March 2013

Custom Filled Maps and Boundaries with Tableau 7

Hi guys, Its been a while but man oh man it has been an exciting time for us. New ventures, new customers and a new version of Tableau in the horizon.

 Today however I delve into something that I have been trying to work on, but didn't have the time to actually explore it, which is creating custom filled maps in Tableau 7. Everybody who's using Tableau 7 by now would have been familiar with filled maps. It is a nice feature that enables you to quantify measures by filling colors to the map boundaries. As seen in the sample from our sister blog Datalore:

This is all well if your data is in the US, but for us Malaysians, we can see our detail at the state level, and nothing more. So I set up to find out how to actually create custom filled maps for more refined representation in our map.

If you scour the interweb, there are quite a number of good tutorials on how to achieve this, the two most comprehensive, IMHO would be using tha shape2tab tool and TabGeoHack, accessible below:

shape2tab:
http://community.tableausoftware.com/message/173304#173304

TabGeoHack: 
http://www.clearlyandsimply.com/clearly_and_simply/2012/03/create-your-own-filled-maps-in-tableau.html

Which method for you is your cup of tea, but I'm using TabGeoHack, and I'll make a summarized version according to my own tests on our entry today. This guide is only serve to give an idea on what to do, it should be enough for you to start on, but I do strongly encourage you to read the full guides.


Step 1: Download the files and unzip

1. TabGeoHack (the tableau custom shape tool)

2. GDAL 1.9 (geographical library)

Download the files and unzip, I'd like to make things simple and put TabGeoHack in "C:/TabGeoHack"
and GDAL in "C:/GDAL".

Step 2: The general settings.

TabGeoHack uses an xml file called YML, the details of YML can be read in the comprehensive TabGeoHack guide above, but suffice for you to find this file: tabgeohack.yml in your TabGeoHack folder ("C:/TabGeoHack/tabgeohack.yml" in mine).

Open the file with a text editor like Notepad, Notepad++ or Editplus and change the red colored text below to your own path:

So the Tableau repository should be in "C:\Users\<USER>\Documents\My Tableau Repository"
And the GDAL path should be the place where you unzip the GDAL installer. Remember, The GDAL path should be the path where you have the bin folder as below:



Step 4: Get or create shape files

In the Open source community there is a very powerful tool for any GIS work called Quantum GIS, here you can create your own custom shape files and export it into ESRI shapes, just remember that Tableau uses ESPG:4236 or WGS84 if you make your own.

But for the purpose of this entry, i'll be using the same site as suggested in the comprehensive detail by downloading from here:

GADM website

for the Global Administrative Areas of Malaysia that includes districts, which is not available in Tableau 7.

Download the file and unzip. You can put it anywhere you like but you'd have to set the PATH in the environment settings, personally I just create a folder in TabGeoHack's folder for Malaysia. e,g. "C:/TabGeoHack/Malaysia"

Once you have unzipped the folder, the shapefiles would contain several different file extensions, but you pay attention to SHP files, which should also be the biggest size among the lot. For example in my "C/TabGeoHack/Malaysia" folder I would have as below:


Step 5: Creating your own YML configuration file.

Now comes the slightly difficult part for the unfamiliar, you have to create your own YML file to be used to process your custom shapes for Tableau. First, you need to copy a sample YML file in the Samples folder "C/TabGeoHack/Sample". There should be a file named "Porirua Tsunami Warnings.yml". Copy this file to your TabGeoHack root (e.g. C:/TabgeoHack") rename it to your project, in my case I renamed it to "Malaysia.yml" and then I open the file. Here you'd see quite a mess of information, so clean it up first say like below (pay attention also on the red bubbles):


*Note: Daerah means District in Malay.

Change the location of your source shapefiles and ourput folder in the first Bubble, say mine is "C:/TabGeoHack/Malaysia".

In the second bubble, you can remove any irrelevant data from the sample and you can add in the shape file you want to use. In my case there are 3 *.shp files : "MYS_adm0", "MYS_adm1" and "MYS_adm2". Each one representing Country, State and District, since I'm only concentrating on district, I chose "MYS_adm2" as my shapefile. Save this file for later, because the next set of information relies on the next process.


Step 6: Using TabGeoHack --info option

In order to know which fields that we can use in our shape file, we have to analyze its content, this is the first part of using TabGeoHack. Unfortunately, TabGeoHack doesn't have any fancy GUI, everything is command prompt. So fire up the command prompt from your start menu, by pressing start and searching cmd.exe, then run it. Go to TabGeoHack directory and enter the command:

 "tabgeohack --info Malaysia.yml"

Of course, replace Malaysia.yml with your own filename.


Ok, now we can complete the configuration, with this we can add to Tableau's custom Geocoding. Depending on your shapefile configuration, there are a few information that Tableau needs. A unique ID is a must and also the name of the district that we are about to add. Therefore, in my case, since I'm adding district data, I'm going to take ID_2 for the district ID as a unique identifier, and Name_2 for district name.

Now my Malaysia.yml config file looks like this:


Do take note of the purging option, by enabling purge_synonyms as true, it allows you to only load the necessary geolocation and ignoring others, so if you only want to focus on a certain country, state, city etc, you'd have to incorporate this into the config file, but in my case, I just set purge_synonyms as false, even though it could hinder performance, but my district boundaries isn't that much so I can risk it.

There is an important note regarding purging, I'll explain it in the next step.



Step 7: Generate the custom geolocoding and import it into Tableau.

Once you have completed the configuration, you can generate the custom geocoding with TabGeoHack.

At the command prompt, still in the same path, type the command below:

 "tabgeohack --roles Malaysia.yml"

You should be seeing this:



And in your shapefiles folder ("C:/TabGeoHack/Malaysia/" in my case), you should be seeing a few folders being generated, most importantly, an folder called "Custom Geocoding Files" should be generated containing a generated CSV with the latitude and longitude generated from your shapefiles.




 Now open Tableau, go to the main menu and select Map --> Geocoding --> Import Custom Geocoding.


The import process depends on how much data you are inserting and also if there are any errors or not. For example, in my configuration. I used the english word for "District" as my District ID and Name, Tableau threw me an error because the word District is already taken by Tableau. So I renamed "District" to Daerah, which is the Malay translation.



Note on purging:
If you enable it, purging causes all the purged locations inaccessible from your workbook or other workbooks that has locations beyond your custom ones. In order to get back the other locations, you have to remove the custom Geocoding from the Map menu. Don't worry though, you can easily reactivate the Custom Geocoding by running the TabGeoHack command below:

 "tabgeohack --activate Malaysia.yml" (change the YML file name to yours)

Step 8: Linking the Shapes to the custom Geocoding.

The final step for this is to run the TabGeoHack shape option, after all of the above process is completed, simply run the command:

 "tabgeohack --shapes Malaysia.yml" (change the YML file name to yours)



Ok we're done!!

Step 9: Test out your new Custom filled map.

So now we're done, just connect to your data with the new locations, create the workbook, and see the beauty unfold in front of your eyes.




PS: I know my map is not perfect, but hey I have just demonstrated successfully on adding Custom Filled Shapes with tableau. You can checkout for the better example at:

http://www.clearlyandsimply.com/clearly_and_simply/2012/03/create-your-own-filled-maps-in-tableau.html


And always don't forget, visit our website http://www.venturess.com for exciting news on Tableau as well as other entries from our sister blog: http://vss-datalore.blogspot.com/

-Zan

Tuesday, 4 December 2012

FB ❤ Tableau

At the recent Tableau Customer Conference 2012 in San Diego, Tableau got several existing customers from big brands such as Facebook to talk about Tableau. Such big corporations will process millions of data a second, and Tableau's ability to tackle the big task of processing and visualizing these data, with such a phenomenal price range have instantly becoming a favorite with these companies.

Lets take a look at what Namit Raisurana is saying about Tableau in Facebook.

Jump to the link for the full story: http://bit.ly/FBloveTB

For more information on Tableau and to view our other blog entries, go to our website: http://www.venturess.com

Wednesday, 31 October 2012

Map Options

Hi guys,

Tableau's Geolocation or Map capability is one of the coolest features in Tableau.

It allows you to have a topographical idea on location based data.

Take a look at our sample entries at our sister blog here:

http://vss-datalore.blogspot.com/2012/10/malaysian-political-map-1986-to-present.html


http://vss-datalore.blogspot.com/2012/09/the-dawn-of-megatall-skyscrapers.html


Now besides the standard map that you see in Tableau, you can:

1. Change to a different map by adding a WMS compatible map at Main menu - Map - Background Maps - WMS Servers.



2. You can also change the color of the base map, this is enabled by default on the built in map, for WMS maps, it depends on the service provider.

Normal Map
Dark Map
Gray Map

3. Layers are also supported in the Map options, in the built-in map, there are a lot of US-based layers that you can utilize. For WMS maps, it is again, depend on the provider.




So please explore, and don't just stick to one single map option, hope you enjoy working with your maps now.

-VSS

Wednesday, 12 September 2012

Tableau, visual analysis for Enterprise solutions

With Tableau 7, a lot of the creases between other Enterprise-wide solutions be it CRM and ERP has been ironed out in the current version. Now, its easier and more economical to include Tableau's analytical and visualization engine into these Enterprise solution because of Tableau's expertise in visual query is unmatched, and the price that Tableau offer is far less.

Say for example a suite like SPSS, having added their own Viz Designer would not even compare to having Tableau, although they are heading the right direction, having the experience that Tableau has with interactive visualization coupled with the vastness of data other than SPSS to work with on, definitely Tableau is the clear winner.

And now companies are heading towards Tableau integration with their existing or future CRM or ERP systems in droves. Salesforce, for example have proven how easy it is this integration can be, and how Tableau's visual analytics engine is not just complementing their existing systems, but giving their presentations the extra edge with live, interactive visualizations that is insightful and decisive. Plus its also not so bad when adding all these features doesn't break the bank.
Salesforce CRM, tableau integrates with Salesforce, salesforce tableau integration, tableau salesforce integration
jump to the links below to get the full story on Tableau's superior analytical engine, and how Salesforce CRM is arming Tableau in its arsenal:




Sunday, 5 August 2012

Tableau on Mac

If you intend to run Tableau on Mac with no reboot and easily switch between OS X and Windows, here is the recommended tips:
  • Install Parallels in your Mac to host the Windows OS
  • Install Tableau on Windows OS
  • Memory suggested: 8G RAM

Wednesday, 1 August 2012

How pie charts are bad for your analytical health

The main reason when we visualize information in charts or graphs is to make it easier to interpret and compare information within, however, using Pie Charts have proven the opposite. Why? As Steve Fenton puts it


1. Pie charts made it difficult to compare individual values.

Nasty Euro Election Pie Chart

As this example taken from the 2009 BBC News European Election Results suggests, even though it is reasonably clear that the Conservative Party has the biggest chunk of the vote, it is definitely hard to see the difference between the next three parties, UKIP, Labour and the Liberal Democrats. It is also quite hard to tell the difference between the next two parties, Green and BNP. As the purpose of the chart is to tell the differences between each party, using a pie chart proves to difficult in achieving this.


Fantastic Euro Election Column Chart


Now if we compare to the bar chart above, it is so much easier to see the difference between the items.


2. The size of a pie chart wouldn't make any difference.

Shocking Tiny Pie
Awful Large Pie

From the same data as above, resizing a pie chart would not reveal anymore data, and the space taken to resize just to make it clear would only be a waste.


Excellent Tiny Column Chart
Stunning Huge Column Chart


Compared to the bar charts above, the smaller chart is already showing a clear difference between the columns, but when enlarged you'd get a more clearer picture of the differences.


3. Displaying combined values.


Disasterous UK Election Pie Chart

From the 2009 BBC News European Election Results above, if we wanted to see how would the Conservative party fare when say the Labour party were to join forces with the Liberal Democrats, its very hard to tell using the pie chart above.

Brilliant UK Election Column Chart
If we observe the same using our bar chart, we can clearly see that the combined party could have an edge over the Conservative party.

Aside to the 3 arguments above, there are more details showing how pie charts are not the best choice. and 3D pie charts? Let the chart below explain everything :)


Suck on that, Conway.

You can follow the rest of the story on pie charts here and also here

All images are taken directly from the source blogs to the credit of the authors.