How to Visualize Your Amazon Redshift Data Using Tableau
The integration between Tableau and Redshift is powerful, but it requires many preliminary steps. Panoply eliminates most data engineering and database admin operations.
Join the DZone community and get the full member experience.Join For Free
are you a data analyst? you must be familiar with both tableau and aws redshift and you must know (or at least you should believe me) that integrating the redshift columnar-based database speed with the mature, rich, and interactive tableau creates an awesome experience.
in a previous article , i described how to create custom google analytics dimensions, export the data, and import it to redshift. don’t miss it, since this one is a continuation of it. in this short one, i will take you through the integration process, through to the eventual presentation of an aggregated graph of page view performance by the number of visitors.
note: in this guide, we use tableau desktop version 10.0 , which you can easily download and try for free. once downloaded and installed, you can perform the following steps to connect it with redshift. it will also help to ensure you have your redshift information (host name, database name, username, and password) on hand.
on the tableau desktop start page, under connect, select the amazon redshift option.
enter your redshift information and click sign in .
on the data source page (shown above), do the following:
click the data source name at the top of the page, then enter a unique data source name for use in tableau. it’s good practice to use a data source naming convention that helps other users figure out which data source tableau is connected to.
from the schema drop-down list, select a schema or use the text box to search for a schema by name.
under table , select a table or use the text box to search for a table by name.
drag the table to the canvas, then click the sheet tab to start your analysis.
now that tableau is connected to our redshift database, we can move onto visualizing it.
from the tableau desktop menu bar, select data and then select a table from the list of data source tables at the bottom of the popup menu. for our example, we wanted to create reports and charts based on the clientid table (as shown below).
next, on the menu bar, select dashboard > new dashboard .
a graph is displayed, returning the number of page views by timestamp , pagepath,and clientid:
as shown in the steps below, from this point on, we can experiment with tableau’s simple ui and filters to visualize the data based on our specific business requirements:
on the menu bar, select worksheet > new worksheet .
next, on the menu bar, select data > users .
from the dimensions and measures sections in the left pane, you can adjust the worksheet, selecting the relevant columns and rows.
for example, the screenshot below shows which pages have been viewed and how many times, by date.
alternatively, if you want to look at a specific clientid (information not supported out-of-the-box by ga), you can create a graph similar to this one:
number of page views by specific page by specific clientid and by date.
or, by making a few simple changes to the arrangement of your data, you can create a different visualization for the same example:
number of page views by specific page by specific clientid and by timestamp.
as can you see, using tableau desktop offers a simple way to start visualizing your redshift data.
advanced use cases: using panoply
the integration between tableau and redshift is a powerful one. however, there are lots of preliminary steps that are required to make it happen, which can make the whole process cumbersome, lengthy, and hard to maintain. in an advanced real-life case, your database will hold more than two tables and will need to be continuously processed to be ready for visualization.
there are lots of preliminary steps that are required to make it happen, which can make the whole process cumbersome, lengthy, and hard to maintain.
this is where panoply.io comes into play:
panoply.io’s visualization plugins.
panoply.io provides a data warehouse solution, from extracting the data source right through to load and transform. besides out-of-the-box integration with tableau, panoply services also integrate with other external bi tools such as chart.io, looker, and powerbi.
the automated, data management solution leverages redshift infrastructure and empowers it by eliminating its management overhead, including both the underlying infrastructure and the database layers. you can think of panoply as an automated data engineering robot, eliminating the vast majority of data engineering and database administrative operations.
Published at DZone with permission of Alon Brody. See the original article here.
Opinions expressed by DZone contributors are their own.