Tableau
You can connect to Cube from Tableau, a visual analytics platform, using the Cube SQL API.
Enable Cube SQL API
Don't have a Cube project yet? Learn how to get started here.
Cube Cloud
Click How to connect your BI tool link on the Overview page, navigate to the SQL API tab and enable it. Once enabled, you should see the screen like the one below with your connection credentials:
Self-hosted Cube
You need to set the following environment variables to enable the Cube SQL API. These credentials will be required to connect to Cube from Tableau later.
CUBEJS_PG_SQL_PORT=5432
CUBEJS_SQL_USER=myusername
CUBEJS_SQL_PASSWORD=mypassword
Connecting from Tableau
Tableau connects to Cube as to a Postgres database.
In Tableau, select PostgreSQL connector and enter credentials from the above step.
Querying data
Your cubes will be exposed as tables, where both your measures and dimensions are columns.
