Difference between revisions of "Tableau Connector"

From Fusion Registry Wiki
Jump to navigation Jump to search
(Get Data)
(Get Data)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:How_To]]
 
=Overview=
 
=Overview=
It is possible to connect [https://www.tableau.com/ Tableau] to the data web services of the [[Fusion_Registry|Fusion Registry]] and [[Fusion_Edge_Server|Fusion Edge Server]]. The connection makes use of Tableau's [https://help.tableau.com/current/pro/desktop/en-us/examples_web_data_connector.htm Web Data Connector] framwork, which enables the Fusion software to integrate seamlessly as a datasource.
+
It is possible to connect [https://www.tableau.com/ Tableau] to the data web services of the [[Fusion_Registry|Fusion Registry]] and [[Fusion_Edge_Server|Fusion Edge Server]]. The connection makes use of Tableau's [https://help.tableau.com/current/pro/desktop/en-us/examples_web_data_connector.htm Web Data Connector] framework, which enables the Fusion software to integrate seamlessly as a datasource. Please note that Tableau's Web Data Connector 2.0 has been depreciated and may no longer work in previous versions of Fusion Registry.
 +
 
 +
Regnology Release R1.1.0.00 July 2024 now includes support for Tableau's Web Data Connector 3.0 and has been tested using Tableau Public Edition 2024.1.4.
 +
 
  
 
The following image shows the high level architecture, where Tableau is acting as the presentation tier, enabling users to view, tabulate, graph and analyse data. The Fusion Registry provides Tableau an API for data retrieval, where ultimately the data will live in one or more data stores, which may have varying types.
 
The following image shows the high level architecture, where Tableau is acting as the presentation tier, enabling users to view, tabulate, graph and analyse data. The Fusion Registry provides Tableau an API for data retrieval, where ultimately the data will live in one or more data stores, which may have varying types.
Line 13: Line 17:
 
After opening Tableau connect to a Server, choosing the Web Data Connector. If this option is not shown in the left hand navigation bar, click ‘More…’ to show the option in the right hand window, as shown below.
 
After opening Tableau connect to a Server, choosing the Web Data Connector. If this option is not shown in the left hand navigation bar, click ‘More…’ to show the option in the right hand window, as shown below.
  
[[File:Tableau-wdc.png|500px|none]]
+
[[File:Tableau Connector select.png|700px|none]]
  
 
After clicking the Web Data Connector option, a pop up window will appear, this is the embedded web browser in Tableau. This invites the user to enter the URL to connect to. The URL for the Fusion Registry is:
 
After clicking the Web Data Connector option, a pop up window will appear, this is the embedded web browser in Tableau. This invites the user to enter the URL to connect to. The URL for the Fusion Registry is:
Line 22: Line 26:
 
<strong>NOTE:</strong> The above URL is not designed to work in a web browser, whilst a page will display you will not be able to use it to get data unless it is accessed via the Tableau Web Data Connector.
 
<strong>NOTE:</strong> The above URL is not designed to work in a web browser, whilst a page will display you will not be able to use it to get data unless it is accessed via the Tableau Web Data Connector.
  
[[File:Tableau-wdc-step2.png|500px]]
+
[[File:Tableau enter url.png|700px]]
  
 
On entering this URL, and pressing [enter] Tableau will retrieve the User Interface from the Fusion Registry and present it in the embedded browser, as shown below
 
On entering this URL, and pressing [enter] Tableau will retrieve the User Interface from the Fusion Registry and present it in the embedded browser, as shown below
Line 28: Line 32:
 
== Choose Dataset(s) ==
 
== Choose Dataset(s) ==
  
[[File:Tableau-wdc-step3.png|500px]]
+
[[File:Tableau-wdc-step3.png|700px]]
  
 
The available Datasets from the Fusion Registry are displayed in Tableau’s embedded web browser, the user is able to choose one or more Datasets to query. After selecting one or more datasets, click Next.
 
The available Datasets from the Fusion Registry are displayed in Tableau’s embedded web browser, the user is able to choose one or more Datasets to query. After selecting one or more datasets, click Next.
  
 
== Filter Data  ==
 
== Filter Data  ==
[[File:Tableau-wdc-step4.png|500px]]
+
[[File:Tableau Filter Data.png|700px]]
  
 
The next step shows all the available dimensions, and filters for each dimension, for the chosen datasets. If multiple datasets were selected in step 2, then the list of dimensions is the combination of dimensions from all datasets, with the values for each dimension being the combination of common dimensions. It should be noted that with multiple dataset selection it possible to construct a query which only retrieves data from a subset of selected datasets.
 
The next step shows all the available dimensions, and filters for each dimension, for the chosen datasets. If multiple datasets were selected in step 2, then the list of dimensions is the combination of dimensions from all datasets, with the values for each dimension being the combination of common dimensions. It should be noted that with multiple dataset selection it possible to construct a query which only retrieves data from a subset of selected datasets.
  
 
== Get Data ==
 
== Get Data ==
[[File:Tableau-wdc-step5.png|500px]]
+
[[File:Tableau go to worksheet.png|700px]]
  
 
On clicking ‘Get Data’ in the Web Data Connector, the embedded browser window will close, and the dataset tables resulting from the data query will be displayed in the left hand pane. Drag and drop the table into the drop zone shown in the above image, and then click the Update Now button to retrieve the data. If multiple tables are put into the drop zone, Tableau will provide mechanisms for performing table joins.
 
On clicking ‘Get Data’ in the Web Data Connector, the embedded browser window will close, and the dataset tables resulting from the data query will be displayed in the left hand pane. Drag and drop the table into the drop zone shown in the above image, and then click the Update Now button to retrieve the data. If multiple tables are put into the drop zone, Tableau will provide mechanisms for performing table joins.
Line 44: Line 48:
 
Once Tableau gets the data, it will be displayed in the table, as shown in the image above. Each coded SDMX Dimension and Attribute will show both the code id and code name, code names will be displayed according to the user’s locale settings if multilingual names were defined in the SDMX metadata. It is possible at this point to hide/show columns, or click on ‘Sheet 1’ to construct a data visualisation of the data. The visualisations can be saved, and the data in the visualisations can be updated directly from the Fusion Registry using the data refresh mechanisms provided by Tableau.
 
Once Tableau gets the data, it will be displayed in the table, as shown in the image above. Each coded SDMX Dimension and Attribute will show both the code id and code name, code names will be displayed according to the user’s locale settings if multilingual names were defined in the SDMX metadata. It is possible at this point to hide/show columns, or click on ‘Sheet 1’ to construct a data visualisation of the data. The visualisations can be saved, and the data in the visualisations can be updated directly from the Fusion Registry using the data refresh mechanisms provided by Tableau.
  
 +
Example Visualisation
 +
 +
[[File:Tableau example visualisation.png|700px]]
 +
 +
== Observation Value ==
 +
When testing the new Tableau connector, we found that pervious visualisations did not work as expected due to the data type as set in the Data Structure for the Observation Value. If this happens, you can either change the data type or follow these steps in Tableau.
  
[[File:Tableau-wdc-step6.png|center]]
+
# Right click the Obs Value and convert it to a Measure
 +
# Having done that, right click again and select Change Data type, select Number and then Decimal
 +
# Right click Obs Value again and select Default Properties and then Aggregation, select Sum

Latest revision as of 01:38, 2 July 2024

Overview

It is possible to connect Tableau to the data web services of the Fusion Registry and Fusion Edge Server. The connection makes use of Tableau's Web Data Connector framework, which enables the Fusion software to integrate seamlessly as a datasource. Please note that Tableau's Web Data Connector 2.0 has been depreciated and may no longer work in previous versions of Fusion Registry.

Regnology Release R1.1.0.00 July 2024 now includes support for Tableau's Web Data Connector 3.0 and has been tested using Tableau Public Edition 2024.1.4.


The following image shows the high level architecture, where Tableau is acting as the presentation tier, enabling users to view, tabulate, graph and analyse data. The Fusion Registry provides Tableau an API for data retrieval, where ultimately the data will live in one or more data stores, which may have varying types.

Tableau-architecture.png

Connecting Tableau to the Fusion Registry

These steps work for both the commercial version of Tableau, as well as the free to use public version, both available from the Tableau website.

Connect to Registry / Edge Server Service

After opening Tableau connect to a Server, choosing the Web Data Connector. If this option is not shown in the left hand navigation bar, click ‘More…’ to show the option in the right hand window, as shown below.

Tableau Connector select.png

After clicking the Web Data Connector option, a pop up window will appear, this is the embedded web browser in Tableau. This invites the user to enter the URL to connect to. The URL for the Fusion Registry is: http(s)://[registry url]/tableau/explorer.html For example: https://demo.metadatatechnology.com/FusionRegistry/tableau/explorer.html

NOTE: The above URL is not designed to work in a web browser, whilst a page will display you will not be able to use it to get data unless it is accessed via the Tableau Web Data Connector.

Tableau enter url.png

On entering this URL, and pressing [enter] Tableau will retrieve the User Interface from the Fusion Registry and present it in the embedded browser, as shown below

Choose Dataset(s)

Tableau-wdc-step3.png

The available Datasets from the Fusion Registry are displayed in Tableau’s embedded web browser, the user is able to choose one or more Datasets to query. After selecting one or more datasets, click Next.

Filter Data

Tableau Filter Data.png

The next step shows all the available dimensions, and filters for each dimension, for the chosen datasets. If multiple datasets were selected in step 2, then the list of dimensions is the combination of dimensions from all datasets, with the values for each dimension being the combination of common dimensions. It should be noted that with multiple dataset selection it possible to construct a query which only retrieves data from a subset of selected datasets.

Get Data

Tableau go to worksheet.png

On clicking ‘Get Data’ in the Web Data Connector, the embedded browser window will close, and the dataset tables resulting from the data query will be displayed in the left hand pane. Drag and drop the table into the drop zone shown in the above image, and then click the Update Now button to retrieve the data. If multiple tables are put into the drop zone, Tableau will provide mechanisms for performing table joins.

Once Tableau gets the data, it will be displayed in the table, as shown in the image above. Each coded SDMX Dimension and Attribute will show both the code id and code name, code names will be displayed according to the user’s locale settings if multilingual names were defined in the SDMX metadata. It is possible at this point to hide/show columns, or click on ‘Sheet 1’ to construct a data visualisation of the data. The visualisations can be saved, and the data in the visualisations can be updated directly from the Fusion Registry using the data refresh mechanisms provided by Tableau.

Example Visualisation

Tableau example visualisation.png

Observation Value

When testing the new Tableau connector, we found that pervious visualisations did not work as expected due to the data type as set in the Data Structure for the Observation Value. If this happens, you can either change the data type or follow these steps in Tableau.

  1. Right click the Obs Value and convert it to a Measure
  2. Having done that, right click again and select Change Data type, select Number and then Decimal
  3. Right click Obs Value again and select Default Properties and then Aggregation, select Sum