
This chapter describes how to set up your Tableau to communicate with MarkLogic Server. The main topics are:
This chapter describes how to connect and configure Tableau version 10. The procedures described here may be different if you are using an older version of Tableau.
Install Tableau, as described in the Tableau documentation.
Tableau has select * as the default query for the initial connection. To improve performance between Tableau and MarkLogic, follow the instructions below.
In the path shown below, save the following xml structure as odbc-marklogic.tdc (the name does not matter, but extension has to be .tdc):
C:\Users\**\Documents\My Tableau Repository\Datasources
If installing the 32-bit ODBC driver, the contents of the odbc-marklogic.tdc file should look like the following:
<?xml version='1.0' encoding='utf-8' ?>
<connection-customization class='genericodbc' enabled='true' version='10.2'> <vendor name='MarkLogic' /> <driver name='MarkLogic SQL (X86)' /> <customizations> <customization name='CAP_QUERY_TOP_0_METADATA' value='yes' /> <customization name='CAP_ODBC_METADATA_SUPPRESS_SELECT_STAR' value='yes' /> <customization name='CAP_QUERY_WHERE_FALSE_METADATA' value='no' /> <customization name='CAP_CREATE_TEMP_TABLES' value='no' /> </customizations> </connection-customization>
This section describes how to connect Tableau to MarkLogic Server.
The procedure described in this section assumes you have first installed the MarkLogic ODBC driver and configured it as an ODBC data source on the client server, as described in Installing and Configuring the MarkLogic Server ODBC Driver.
Other Databases (ODBC):Connect:Database field is ignored). Click Sign In:After successfully connecting Tableau to MarkLogic Server, you can add the defined views, as tables, to your workbook.
employees view is dragged to the workbook:expenses view is dragged to the canvas and joined with employees with an inner join. The results are shown below.Sheet1.Sheet1 window, drag EmployeeID, FirstName and LastName from the employees view in the Dimensions pane to the Rows field. Drag Category and Amount from the expenses view to the Rows field. You should see your data stored in MarkLogic Server displayed in table on the right.