Skip to content

Commit 7b940eb

Browse files
authored
Merge pull request #29 from MIXMARLEON/master
Added Tableau
2 parents 224f08f + 366e974 commit 7b940eb

File tree

7 files changed

+25312
-0
lines changed

7 files changed

+25312
-0
lines changed

analytic dashboards/Tableau/Monthly_EnCommunityAnalytics local.twb

Lines changed: 12161 additions & 0 deletions
Large diffs are not rendered by default.

analytic dashboards/Tableau/Monthly_EnCommunityAnalytics public demo.twb

Lines changed: 12569 additions & 0 deletions
Large diffs are not rendered by default.

analytic dashboards/Tableau/README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Preparing the PC
2+
3+
You will need a driver to connect. We use **Cloudera Hive**. You can download the driver from the official website:
4+
https://www.cloudera.com/downloads/connectors/hive/odbc/2-6-1.html
5+
Registration is required, you can do it right there for free. You also need to know your OS and bit depth in order to choose the right version for download.
6+
Installation is simple, no explanation required.
7+
8+
9+
# Foreword
10+
11+
This guide describes how to connect Tableau to AtScale.
12+
However, the twb files already have the connection.
13+
Also in the tds folder are files for connecting to the AtScale public demo.
14+
15+
16+
# Preparing AtScale
17+
18+
## Publishing a project
19+
To connect a cube, you need to publish a project with the necessary cubes
20+
21+
To publish, select **PROJECTS > "Project name" > DRAFT "Project name" > PUBLISH**
22+
23+
![Publish a project](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/1.png)
24+
25+
In the window that appears, you can select another datasource or leave the current one by clicking Next.
26+
27+
![Publish Window](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/2.png)
28+
29+
## Downloading the tds file
30+
31+
After that, we will have a published project. We need a Tbaleau connection file.
32+
In the **published** project, select the **cube**. In our case, this is Members. Then go to the **CONNECT** tab.
33+
On it, select *Connect a BI Tool > TABLEAU*
34+
35+
![tds file](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/3.png)
36+
37+
In the window that appears, select **DOWNLOAD TDS**
38+
39+
![Downloading tds](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/4.png)
40+
41+
# Connect source to Tableau
42+
43+
## New file
44+
When starting Tableau in left menu select Connect, To a File, More… from the list and open your .tds file that you downloaded earlier.
45+
46+
![Download tds](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/6.png)
47+
![Download tds](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/5.png)
48+
49+
## To an existing report
50+
If you want to add a data source to an existing report,
51+
select the **Data Source** tab on the tab bar below and click on the Tableau icon in the top left, then follow the steps above.
52+
53+
## Authorization in the
54+
Tableau data source will ask you to enter your username and password from Atscale
55+
56+
![Authorization](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/7.png)
57+
58+
After successful authorization your cube will appear in the data sources and you can get started.
59+
60+
![Cube in the report](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/8.png)
61+
62+
The TDS file is XML, so it won't be too hard to fix this XML in case
63+
you have republished the project under a different name, or made changes to the hostname of the Atscale server.
64+
65+
You can also replace the data source by right-clicking on it and selecting *Replace Data Source...*
66+
67+
![Source replacement 1](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/9.png)
68+
69+
Then you need to select the current and new data source in the window that appears
70+
71+
![Source replacement 2](https://github.com/teccod/AtScale-Tableau-DC/blob/main/readme_img/10.png)
72+
73+
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<datasource formatted-name="ContributedMembers" inline="true" version="18.1" xmlns:user="http://www.tableausoftware.com/xml/user">
3+
<!-- TDS Generated by AtScale Engine version 2021.4.0.11186 -->
4+
<!-- Cube is member of schema "EnCommunnityAnalytics2" with content hash 83a0630c5afcb161cb2620b2e4c2893c4e554aa0 -->
5+
<connection class="federated">
6+
<named-connections>
7+
<named-connection name="AtScale">
8+
<connection authentication="yes" authentication-type="3" class="hadoophive" connection-type="2" transport-type="1" dbname="" odbc-connect-string-extras="DisableLimitZero=1;ssl=0" username="" one-time-sql="" port="11111" server="atscale-public.demo.community.intersystems.com" sslmode="">
9+
<connection-customization class="hadoophive" enabled="true" version="18.1">
10+
<vendor name="hadoophive"/>
11+
<driver name="hadoophive"/>
12+
<customizations>
13+
<customization name="odbc-connect-string-extras" value="DisableLimitZero=1;ssl=0"/>
14+
<customization name="CAP_CONNECT_STORED_PROCEDURE" value="no"/>
15+
<customization name="CAP_CREATE_TEMP_TABLES" value="no"/>
16+
<customization name="CAP_FAST_METADATA" value="no"/>
17+
<customization name="CAP_ODBC_USE_NATIVE_PROTOCOL" value="yes"/>
18+
<customization name="CAP_QUERY_BOOLEXPR_TO_INTEXPR" value="no"/>
19+
<customization name="CAP_QUERY_INCLUDE_GROUP_BY_COLUMNS_IN_SELECT" value="yes"/>
20+
<customization name="CAP_QUERY_GROUP_BY_ALIAS" value="no"/>
21+
<customization name="CAP_QUERY_GROUP_BY_DEGREE" value="yes"/>
22+
<customization name="CAP_QUERY_HAVING_REQUIRES_GROUP_BY" value="yes"/>
23+
<customization name="CAP_QUERY_HAVING_UNSUPPORTED" value="no"/>
24+
<customization name="CAP_QUERY_RECOMPILE_FAILED_QUERY" value="no"/>
25+
<customization name="CAP_QUERY_SELECT_ALIASES_SORTED" value="no"/>
26+
<customization name="CAP_QUERY_SORT_BY_DEGREE" value="yes"/>
27+
<customization name="CAP_QUERY_TOPSTYLE_LIMIT" value="yes"/>
28+
<customization name="CAP_QUERY_TOPSTYLE_ROWNUM" value="no"/>
29+
<customization name="CAP_QUERY_TOPSTYLE_TOP" value="no"/>
30+
<customization name="CAP_QUERY_TOP_0_METADATA" value="yes"/>
31+
<customization name="CAP_STORED_PROCEDURE_PREFER_TEMP_TABLE" value="no"/>
32+
<customization name="CAP_SUPPRESS_DISCOVERY_QUERIES" value="no"/>
33+
</customizations>
34+
</connection-customization>
35+
</connection>
36+
</named-connection>
37+
</named-connections>
38+
<relation connection="AtScale" name="ContributedMembers" table="[encommunnityanalytics2].[contributedmembers]" type="table"/>
39+
</connection>
40+
41+
<column caption="FullDateContribution" datatype="date" name="[FullDateContribution]" role="dimension" type="ordinal">
42+
43+
</column>
44+
<column caption="Link" datatype="string" name="[Link]" role="dimension" type="nominal">
45+
46+
</column>
47+
<column caption="MonthYear" datatype="string" name="[MonthYear]" role="dimension" type="nominal">
48+
49+
</column>
50+
<column caption="MonthYearNum" datatype="integer" name="[MonthYearNum]" role="dimension" type="ordinal">
51+
52+
</column>
53+
<column caption="Name" datatype="string" name="[Name]" role="dimension" type="nominal">
54+
55+
</column>
56+
<column caption="YearContributors" datatype="integer" name="[YearContributors]" role="dimension" type="ordinal">
57+
58+
</column>
59+
<column aggregation="Sum" caption="CommentsVotes" datatype="integer" name="[m_CommentVotes_sum]" role="measure" type="quantitative">
60+
61+
</column>
62+
<column aggregation="Sum" caption="CommentsAmount" datatype="integer" name="[m_CommentsAmount_sum]" role="measure" type="quantitative">
63+
64+
</column>
65+
<column aggregation="Sum" caption="Comments" datatype="integer" name="[m_Comments_sum]" role="measure" type="quantitative">
66+
67+
</column>
68+
<column aggregation="CountD" caption="ContributionMembers" datatype="integer" name="[m_Member_distinct]" role="measure" type="quantitative">
69+
70+
</column>
71+
<column aggregation="Sum" caption="Points" datatype="integer" name="[m_Overall_sum]" role="measure" type="quantitative">
72+
73+
</column>
74+
<column aggregation="Sum" caption="PostsVotes" datatype="integer" name="[m_PostVotes_sum]" role="measure" type="quantitative">
75+
76+
</column>
77+
<column aggregation="Sum" caption="Posts" datatype="integer" name="[m_Posts_sum]" role="measure" type="quantitative">
78+
79+
</column>
80+
<column aggregation="Sum" caption="Views" datatype="integer" name="[m_Views_sum]" role="measure" type="quantitative">
81+
82+
</column>
83+
<drill-paths>
84+
<drill-path name="AuthorInfo">
85+
86+
<field>[Link]</field>
87+
<field>[Name]</field>
88+
89+
</drill-path><drill-path name="DateDimensionContribution">
90+
91+
<field>[MonthYear]</field>
92+
<field>[MonthYearNum]</field>
93+
94+
</drill-path>
95+
</drill-paths>
96+
97+
<layout dim-ordering="alphabetic" dim-percentage="0.5" measure-ordering="alphabetic" measure-percentage="0.4" show-structure="false"/>
98+
</datasource>
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<datasource formatted-name="Members" inline="true" version="18.1" xmlns:user="http://www.tableausoftware.com/xml/user">
3+
<!-- TDS Generated by AtScale Engine version 2021.4.0.11186 -->
4+
<!-- Cube is member of schema "EnCommunnityAnalytics2" with content hash 83a0630c5afcb161cb2620b2e4c2893c4e554aa0 -->
5+
<connection class="federated">
6+
<named-connections>
7+
<named-connection name="AtScale">
8+
<connection authentication="yes" authentication-type="3" class="hadoophive" connection-type="2" transport-type="1" dbname="" odbc-connect-string-extras="DisableLimitZero=1;ssl=0" username="" one-time-sql="" port="11111" server="atscale-public.demo.community.intersystems.com" sslmode="">
9+
<connection-customization class="hadoophive" enabled="true" version="18.1">
10+
<vendor name="hadoophive"/>
11+
<driver name="hadoophive"/>
12+
<customizations>
13+
<customization name="odbc-connect-string-extras" value="DisableLimitZero=1;ssl=0"/>
14+
<customization name="CAP_CONNECT_STORED_PROCEDURE" value="no"/>
15+
<customization name="CAP_CREATE_TEMP_TABLES" value="no"/>
16+
<customization name="CAP_FAST_METADATA" value="no"/>
17+
<customization name="CAP_ODBC_USE_NATIVE_PROTOCOL" value="yes"/>
18+
<customization name="CAP_QUERY_BOOLEXPR_TO_INTEXPR" value="no"/>
19+
<customization name="CAP_QUERY_INCLUDE_GROUP_BY_COLUMNS_IN_SELECT" value="yes"/>
20+
<customization name="CAP_QUERY_GROUP_BY_ALIAS" value="no"/>
21+
<customization name="CAP_QUERY_GROUP_BY_DEGREE" value="yes"/>
22+
<customization name="CAP_QUERY_HAVING_REQUIRES_GROUP_BY" value="yes"/>
23+
<customization name="CAP_QUERY_HAVING_UNSUPPORTED" value="no"/>
24+
<customization name="CAP_QUERY_RECOMPILE_FAILED_QUERY" value="no"/>
25+
<customization name="CAP_QUERY_SELECT_ALIASES_SORTED" value="no"/>
26+
<customization name="CAP_QUERY_SORT_BY_DEGREE" value="yes"/>
27+
<customization name="CAP_QUERY_TOPSTYLE_LIMIT" value="yes"/>
28+
<customization name="CAP_QUERY_TOPSTYLE_ROWNUM" value="no"/>
29+
<customization name="CAP_QUERY_TOPSTYLE_TOP" value="no"/>
30+
<customization name="CAP_QUERY_TOP_0_METADATA" value="yes"/>
31+
<customization name="CAP_STORED_PROCEDURE_PREFER_TEMP_TABLE" value="no"/>
32+
<customization name="CAP_SUPPRESS_DISCOVERY_QUERIES" value="no"/>
33+
</customizations>
34+
</connection-customization>
35+
</connection>
36+
</named-connection>
37+
</named-connections>
38+
<relation connection="AtScale" name="Members" table="[encommunnityanalytics2].[members]" type="table"/>
39+
</connection>
40+
41+
<column caption="AuthorFullName" datatype="string" name="[AuthorFullName]" role="dimension" type="nominal">
42+
43+
</column>
44+
<column caption="AuthorLink" datatype="string" name="[AuthorLink]" role="dimension" type="nominal">
45+
46+
</column>
47+
<column caption="AuthorName" datatype="string" name="[AuthorName]" role="dimension" type="nominal">
48+
49+
</column>
50+
<column caption="FullDateMember" datatype="date" name="[FullDateMember]" role="dimension" type="ordinal">
51+
52+
</column>
53+
<column caption="Link" datatype="string" name="[Link]" role="dimension" type="nominal">
54+
55+
</column>
56+
<column caption="MonthYear" datatype="string" name="[MonthYear]" role="dimension" type="nominal">
57+
58+
</column>
59+
<column caption="MonthYearNum" datatype="integer" name="[MonthYearNum]" role="dimension" type="ordinal">
60+
61+
</column>
62+
<column caption="Name" datatype="string" name="[Name]" role="dimension" type="nominal">
63+
64+
</column>
65+
<column caption="YearMember" datatype="integer" name="[YearMember]" role="dimension" type="ordinal">
66+
67+
</column>
68+
<column aggregation="CountD" caption="Members" datatype="integer" name="[m_ID_distinct]" role="measure" type="quantitative">
69+
70+
</column>
71+
<column aggregation="CountD" caption="ContributionMembers" datatype="integer" name="[m_Member_distinct]" role="measure" type="quantitative">
72+
73+
</column>
74+
<column aggregation="CountD" caption="MTM_Members_num" datatype="integer" name="[MTM_Members_num]" role="measure" type="quantitative">
75+
76+
</column>
77+
<column default-format="p0.00%" aggregation="Avg" caption="MTM_Members_percent" datatype="real" name="[MTM_Members_percent]" role="measure" type="quantitative">
78+
79+
</column>
80+
<column aggregation="CountD" caption="TotalMemberMonth" datatype="integer" name="[TotalMemberMonth]" role="measure" type="quantitative">
81+
82+
</column>
83+
<column aggregation="CountD" caption="TotalMemberYear" datatype="integer" name="[TotalMemberYear]" role="measure" type="quantitative">
84+
85+
</column>
86+
<drill-paths>
87+
<drill-path name="AuthorInfo">
88+
89+
<field>[Link]</field>
90+
<field>[Name]</field>
91+
92+
</drill-path><drill-path name="DateDimensionMember">
93+
94+
<field>[MonthYear]</field>
95+
<field>[MonthYearNum]</field>
96+
97+
</drill-path>
98+
</drill-paths>
99+
100+
<layout dim-ordering="alphabetic" dim-percentage="0.5" measure-ordering="alphabetic" measure-percentage="0.4" show-structure="false"/>
101+
</datasource>

0 commit comments

Comments
 (0)