<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tableau 技術專欄 彙整 - 歐立威科技</title>
	<atom:link href="https://www.omniwaresoft.com.tw/techcolumn/tableau-techcolumn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.omniwaresoft.com.tw/techcolumn/tableau-techcolumn/</link>
	<description>歐立威科技 Omniwaresoft｜全方位企業級開源軟體解決方案</description>
	<lastBuildDate>Mon, 29 Dec 2025 09:42:10 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>

<image>
	<url>https://www.omniwaresoft.com.tw/wp-content/uploads/2022/12/android-icon-192x192-1.png</url>
	<title>Tableau 技術專欄 彙整 - 歐立威科技</title>
	<link>https://www.omniwaresoft.com.tw/techcolumn/tableau-techcolumn/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">242464019</site>	<item>
		<title>Tableau 教學－使用表計算和參數進行前後期比較</title>
		<link>https://www.omniwaresoft.com.tw/techcolumn/tableau-techcolumn/tableau-table-caculation/</link>
		
		<dc:creator><![CDATA[Omni]]></dc:creator>
		<pubDate>Fri, 03 Mar 2023 10:13:27 +0000</pubDate>
				<category><![CDATA[Tableau 技術專欄]]></category>
		<category><![CDATA[技術專欄]]></category>
		<category><![CDATA[Tableau]]></category>
		<guid isPermaLink="false">http://www.omniwaresoft.com.tw/?p=18963</guid>

					<description><![CDATA[不論在哪個產業的分析中，我們時常都會遇到需要進行某數值前後期比較的情境，例如：計算營收年增率（YoY）、季增率（QoQ）、月增率（MoM），或是計算今年Q1與去年Q1的訂單量比較。這篇文章，我們將利用 Tableau 表計算和參數進行前後對比。]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="18963" class="elementor elementor-18963" data-elementor-post-type="post">
						<section data-particle_enable="false" data-particle-mobile-disabled="false" class="elementor-section elementor-top-section elementor-element elementor-element-51db8c84 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="51db8c84" data-element_type="section">
						<div class="elementor-container elementor-column-gap-thegem"><div class="elementor-row">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1dd3df5f" data-id="1dd3df5f" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-42d958fd flex-horizontal-align-default flex-horizontal-align-tablet-default flex-horizontal-align-mobile-default flex-vertical-align-default flex-vertical-align-tablet-default flex-vertical-align-mobile-default elementor-widget elementor-widget-text-editor" data-id="42d958fd" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
												<div class="elementor-text-editor elementor-clearfix">
						<h2><strong><span style="font-size: 18pt;">常見的前後期比較情境</span></strong></h2><p><span style="font-weight: 400;">不論在哪個產業的分析中，我們時常都會遇到需要進行某數值前後期比較的情境，例如：</span></p><ol><li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">計算營收年增率（Year on Year, YoY）、季增率（Quarter on Quarter, QoQ）、月增率（Month on Month, MoM），或是計算今年Q1與去年Q1的訂單量比較。</span></li><li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">執行行銷成效分析時，比較聖誕節優惠活動期間（12/19 &#8211; 12/25），與優惠活動前（12/12 &#8211; 12/18）新客數的差異。</span></li></ol><p><span style="font-weight: 400;">在第一個情境中比較的時間區間是固定的，不外乎就是年、季、月、週等時間單位，我們若要在 Tableau 進行這類的運算可使用「表計算」（table calculation）來達成，這也是最常見的前後期比較作法；但第二個情境無法用表計算來完成，因為比較的時間區間不是固定的，比方說農曆新年的活動檔期每年都會不一樣，也不是剛好一整個月份，這種情況下我們需要用到「參數」（parameter）功能來計算。 </span></p><p><span style="font-weight: 400;">後面我們將針對兩種情境分別舉一個例子說明，讓大家了解如何在 Tableau 中實現前後期比較的分析。</span></p><h2><strong><span style="font-size: 18pt;">使用情境 1：固定日期區間的前後期比較，以 YoY 為例</span></strong></h2><p><span style="font-weight: 400;">1 .首先產生一個逐年的銷售額折線圖，並在圖上加入銷售額的標籤。</span></p><p><img fetchpriority="high" data-recalc-dims="1" class="wp-image-18964 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.24.39.png?resize=618%2C338&#038;ssl=1" alt="Tableau Usecase step1" width="618" height="338" /></p><p><span style="font-weight: 400;">2. 點選標籤的銷售額，選取「快速表計算」中的「年增率」，將標籤改成以</span><span style="font-weight: 400;">年增率顯示，也就是銷售額的 YoY。</span></p><p><span style="font-weight: 400;"><img data-recalc-dims="1" class="wp-image-18965 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.28.47.png?resize=628%2C351&#038;ssl=1" alt="Tableau Usecase Step2" width="628" height="351" /></span></p><p><span style="font-weight: 400;">3. 再增加一</span><span style="font-weight: 400;">個銷售額標籤，即可完成銷售額與 YoY 並列的折線圖。也可以注意到在標籤設定的地方，改成年增率後會出現一個三角形符號（下圖紅圈處），代表使用了表計算功能。</span></p><p><img data-recalc-dims="1" class="wp-image-18966 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.36.09.png?resize=657%2C367&#038;ssl=1" alt="Tableau Usercase Step3" width="657" height="367" /></p><p><span style="font-weight: 400;">從上圖我們可以觀察到，銷售額每年都是成長的，其中 2019 年到 2020 年的成長幅度最大，2020 年比 2019 年增加了 27.2%，整年銷售額從 $758K 成長到 $964K。</span></p><h2><span style="font-size: 18pt;"><strong>使用情境 2：自訂日期區間的前後期比較</strong></span></h2><p>我們時常需要把一些關鍵指標放在儀表板的第一頁（例如下圖），此時可以把後期的銷售額 25,273 元，和前期 15,156 元做一個比較，並顯示出兩者的差異百分比，幫助我們判斷後期銷售額的表現狀況。</p><p>若要可以完全彈性的自訂前後期時間區間，建立步驟請參考以下說明：</p><p><img loading="lazy" data-recalc-dims="1" class="wp-image-18967 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.38.35.png?resize=332%2C94&#038;ssl=1" alt="Tableau Sales" width="332" height="94" /></p><p>1. 建立前期起日參數。「允許的值」設定為「當工作簿開啟時」以「訂單日期」欄位內有的值作為「範圍」，這樣可避免之後在選取前期起日時，選取到超出資料日期範圍的值。</p><p><img loading="lazy" data-recalc-dims="1" class="wp-image-18968 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.41.03.png?resize=453%2C495&#038;ssl=1" alt="Tableau Usecase2 Step1" width="453" height="495" /></p><p>2. 繼續建立前期訖日、後期起日、後期訖日參數，設定方式同前期起日參數，因此可以「重複」前期起日參數，然後在編輯參數中重新命名參數即可快速建立完成。</p><p><img loading="lazy" data-recalc-dims="1" class="wp-image-18969 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.44.56.png?resize=300%2C553&#038;ssl=1" alt="Tableau Usecase2 Step2" width="300" height="553" /></p><p><img loading="lazy" data-recalc-dims="1" class="wp-image-18970 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.47.22.png?resize=287%2C518&#038;ssl=1" alt="Tableau Usecase2 Step3" width="287" height="518" /></p><p><span style="font-weight: 400;">3. 使用「建立計算欄位」，建立前期銷售額、後期銷售額、銷售額成長率三個欄位。</span></p><p><img loading="lazy" data-recalc-dims="1" class="wp-image-18971 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.50.28.png?resize=628%2C361&#038;ssl=1" alt="Tableau Interface" width="628" height="361" /></p><p><img loading="lazy" data-recalc-dims="1" class="wp-image-18973 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.55.00.png?resize=624%2C358&#038;ssl=1" alt="Tableau Interface" width="624" height="358" /></p><p><img loading="lazy" data-recalc-dims="1" class="wp-image-18974 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%885.58.00.png?resize=625%2C414&#038;ssl=1" alt="Tableau" width="625" height="414" /></p><p><span style="font-weight: 400;">4. 最後我們可以依下圖 ❶❷❸❹ 的方式，把前期銷售額、後期銷售額、銷售額成長率三個欄位加入文字標籤中，並透過「編輯標籤」將關鍵指標排版。</span></p><p><img loading="lazy" data-recalc-dims="1" class="wp-image-18975 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%886.00.32.png?resize=604%2C341&#038;ssl=1" alt="Tableau Interface" width="604" height="341" /></p><p>5. <span style="font-weight: 400;">完成上述步驟後就可以藉由變更前後期起迄日的參數來自訂比較的時間區間。</span></p><p><span style="font-weight: 400;"><img loading="lazy" data-recalc-dims="1" class="wp-image-18976 aligncenter" src="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2023/03/2023-03-03-%E4%B8%8B%E5%8D%886.02.23.png?resize=609%2C334&#038;ssl=1" alt="Tableau Interface" width="609" height="334" /></span></p><h2><span style="font-size: 18pt;"><strong>結語</strong></span></h2><p><span style="font-weight: 400;">以上我們介紹了兩種方式來進行前後期比較的分析，許多情況下用情境 1 的介紹的</span><span style="font-weight: 400;">「表計算」即可快速達成，但想要更彈性的分析就需要用到「參數」。</span></p><p><span style="font-weight: 400;">想要知道更多表計算和參數的應用可以參考我們官方 YouTube 頻道的影片：</span></p><ul><li style="font-weight: 400;" aria-level="1"><a href="https://www.omniwaresoft.com.tw/contact/" target="_blank" rel="noopener"><span style="font-weight: 400;" data-rich-links="{&quot;fple-t&quot;:&quot;30分鐘快速學會表計算【Webinar：Tableau 小教室】&quot;,&quot;fple-u&quot;:&quot;https://youtu.be/deMB0cwjIvM&quot;,&quot;fple-mt&quot;:null,&quot;type&quot;:&quot;first-party-link&quot;}">30分鐘快速學會表計算【Webinar：Tableau 小教室】</span></a></li><li style="font-weight: 400;" aria-level="1"><a href="https://youtu.be/TOtgv5hflpw" target="_blank" rel="noopener"><span style="font-weight: 400;" data-rich-links="{&quot;fple-t&quot;:&quot;動態參數的應用技巧【Webinar：Tableau 小教室】&quot;,&quot;fple-u&quot;:&quot;https://youtu.be/TOtgv5hflpw&quot;,&quot;fple-mt&quot;:null,&quot;type&quot;:&quot;first-party-link&quot;}">動態參數的應用技巧【Webinar：Tableau 小教室】</span></a></li></ul><h2><span style="font-size: 18pt;"><strong>參考資料</strong></span></h2><ul><li style="font-weight: 400;" aria-level="1"><a href="https://kb.tableau.com/articles/howto/creating-a-filter-for-start-and-end-dates-parameters?lang=zh-tw" target="_blank" rel="noopener"><span style="font-weight: 400;">正在使用參數建立開始和結束日期篩選條件| Tableau Software</span></a></li><li style="font-weight: 400;" aria-level="1"><a href="https://kb.tableau.com/articles/HowTo/isolating-dimension-members?lang=zh-tw" target="_blank" rel="noopener"><span style="font-weight: 400;">隔離維度成員以在計算和篩選條件中使用| Tableau Software</span></a></li></ul><p><strong>本文章由歐立威技術顧問撰寫而成，轉載請註明出處，內容若有侵權請來信告知</strong></p><p>想了解更多資訊，<a href="https://www.omniwaresoft.com.tw/contact/" target="_blank" rel="noreferrer noopener">歡迎聯絡我們</a>，或是 <a href="https://page.line.me/870pcqyh?oat__id=4761625&amp;openQrModal=true" target="_blank" rel="noreferrer noopener">加入歐立威 Line 好友！</a></p>							</div>
										</div>
				</div>
					</div>
		</div>
					</div></div>
		</section>
				</div>
		]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18963</post-id>	</item>
		<item>
		<title>Tableau Server 連線管理利器 &#8211; 虛擬連線的介紹與設置</title>
		<link>https://www.omniwaresoft.com.tw/techcolumn/tableau-techcolumn/tableau-virtual-connection-intro-and-set-up/</link>
		
		<dc:creator><![CDATA[Omni]]></dc:creator>
		<pubDate>Mon, 13 Feb 2023 10:12:29 +0000</pubDate>
				<category><![CDATA[Tableau 技術專欄]]></category>
		<category><![CDATA[Tableau]]></category>
		<guid isPermaLink="false">http://www.omniwaresoft.com.tw/?p=18849</guid>

					<description><![CDATA[虛擬連線更可以管理、整合該資料庫的連線，並透過虛擬連線進行資料庫查詢的管理，此舉可以減輕資料庫查詢的負載，並同時保持資料讀取上的速度。雖然虛擬連線一次僅能針對一個資料庫進行設定，但對於大部分的企業來說已經可以滿足大多數的使用情境。]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="18849" class="elementor elementor-18849" data-elementor-post-type="post">
						<section data-particle_enable="false" data-particle-mobile-disabled="false" class="elementor-section elementor-top-section elementor-element elementor-element-27a9cd5f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="27a9cd5f" data-element_type="section">
						<div class="elementor-container elementor-column-gap-thegem"><div class="elementor-row">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-66ef4a28" data-id="66ef4a28" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-134009d7 flex-horizontal-align-default flex-horizontal-align-tablet-default flex-horizontal-align-mobile-default flex-vertical-align-default flex-vertical-align-tablet-default flex-vertical-align-mobile-default elementor-widget elementor-widget-text-editor" data-id="134009d7" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
												<div class="elementor-text-editor elementor-clearfix">
						<p></p>
<h2 class="has-medium-font-size wp-block-heading"><strong><strong>前言</strong></strong></h2>
<p></p>
<p></p>
<p>隨著 Tableau 逐漸作為各企業內部推廣首選的商業智慧工具，Tableau Server 也逐步進駐到各家的系統當中，Tableau 的特色除了強大且極具藝術感的報表繪製以外，強大的資料庫連線能力也是其一。</p>
<p></p>
<p></p>
<p>Tableau 可以快速、多樣地連結到各種不同的資料庫，當公司內部用戶逐漸增加，資料庫連線的複雜程度提高，管理者對於伺服器的管理也會變得越來越困難，特別是針對用戶與專案的連結、用戶對於資料的權限，皆是 Tableau Server 中難以管控的一環，譬如：管理者並不希望報表閱讀者直接看到原始的資料；不希望不同部門間的資料會互通有無造成紊亂，也因此 Tableau 在 Data Management Add-on 的額外付費功能中，提供 Virtual Connection（以下稱虛擬連線）作為管理上的解決辦法，本文會針對虛擬連線的定位與功能進行說明，並針對虛擬連線進行簡單的示範。&nbsp;</p>
<p></p>
<p></p>
<h2 class="has-medium-font-size wp-block-heading"><strong>什麼是 Virtual Connection</strong> (<strong>虛擬連線</strong>)</h2>
<p></p>
<p></p>
<p>虛擬連線最早是於 2021.4 版本中所推出的內容類型概念的管理層級，透過管理員身份以虛擬連線直接設定與資料庫的橋接，並且透過虛擬連線制定規則，將同一資料庫中的多張表得以同時進行管控，並且透過資料來源向下管理工作簿、指標、流程，利於 Tableau Server 管理員直接自資料庫連線進 Tableau 的過程中進行限制與管控。</p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖一：虛擬連線架構示意圖&gt;</p>
<p></p>
<p></p>
<p>如上圖所示：透過虛擬連線的管制，我們可以在資料庫與專案間的端口製作一個具限制性的連線控制，並且給予使用者需求的表（Table），而這些表可以透過資料原則的建立來進行篩選或是映射，然後透過工作簿製成最後的報表或是儀表板。</p>
<p></p>
<p></p>
<h2 class="has-medium-font-size wp-block-heading"><strong>如何使用虛擬連線</strong></h2>
<p></p>
<p></p>
<p>在經過上述針對虛擬連線的說明，相信讀者對虛擬連線都有一定程度的了解，接下來會筆者將會根據使用經驗進行虛擬連線的建立說明。以下根據官方文件內的流程圖進行說明，流程圖如下：</p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖二：虛擬連線建立流程圖&gt;</p>
<p></p>
<p></p>
<p>根據上圖的流程，我們將建立虛擬連線的流程主要分為以下五個步驟：<strong>建立虛擬連線、建立資料原則、發布虛擬連線並設定使用權限、設定虛擬連線的更新、使用虛擬連線</strong>，透過以上五個流程，就可以快速且有效的使用虛擬連線並製作報表及儀表板。</p>
<p></p>
<p></p>
<h3 class="wp-block-heading"><strong>步驟 1：建立虛擬連線</strong></h3>
<p></p>
<p></p>
<p class="has-text-align-left">在專案或是探索當中點擊「新建虛擬連線」來新建一個虛擬連線，然後根據欲連線的資料庫進行設定，然後選取連線中欲設定的表（Table）作為虛擬連線的內容並建立虛擬連線</p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖三：新增虛擬連線&gt;</p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖四：連線到資料庫&gt;<br></p>
<p></p>
<p></p>
<h3 class="wp-block-heading"><strong>步驟 2：</strong>建立資料原則</h3>
<p></p>
<p></p>
<p class="has-text-align-left">透過在資料原則設定中設定三個主要的部分，分別是設定原則表、設定原則欄位、設定原則條件。<br></p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖五：建立資料原則&gt;<br></p>
<p></p>
<p></p>
<h3 class="wp-block-heading">步驟 3：發布虛擬連線並設定使用權限</h3>
<p></p>
<p></p>
<p>在完成虛擬連線的發佈後，可以透過開啟權限設定表，根據個人與群組，設定虛擬連線的使用權限，包含誰可以看到此虛擬連線、誰可以使用等。</p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖六：設定虛擬連線權限&gt;</p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖七：編輯虛擬連線權限設定&gt;<br></p>
<p></p>
<p></p>
<h3 class="wp-block-heading">步驟 4：設定虛擬連線的更新</h3>
<p></p>
<p></p>
<p>透過排程設定更新虛擬連線，使虛擬連線中資料始終保持在最新狀態。</p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖八：設定虛擬連線的排程更新&gt;<br></p>
<p></p>
<p></p>
<h3 class="wp-block-heading">步驟 5：使用虛擬連線</h3>
<p></p>
<p></p>
<p class="has-text-align-left">透過開啟工作簿並連上虛擬連線作為資料來源，使用並建立報表及儀表板。</p>
<p></p>
<p></p>
<p></p>
<p class="has-text-align-center">&lt;圖九：報表建立的資料來源確認為虛擬連線&gt;<br></p>
<p></p>
<p></p>
<h2 class="has-medium-font-size wp-block-heading"><strong><strong>結論</strong></strong></h2>
<p></p>
<p></p>
<p>虛擬連線大大強化了 Tableau Server 在資料面上的管理與安全性。由於在資料導入的過程中就進行限制，故透過虛擬連線的設定，管理者可以放心的將資料直接交付給使用者進行處理；另外權限上的調整更是讓管理者不必擔心跨部門使用資料外洩的問題。</p>
<p></p>
<p></p>
<p>除了上述的優點，虛擬連線更可以管理、整合該資料庫的連線，並透過虛擬連線進行資料庫查詢的管理，此舉可以減輕資料庫查詢的負載，並同時保持資料讀取上的速度。雖然虛擬連線一次僅能針對一個資料庫進行設定，但對於大部分的企業來說已經可以滿足大多數的使用情境。</p>
<p></p>
<p></p>
<p>綜上所言，虛擬連線是一個針對企業打造的管理層級，若讀者想嘗試帶入公司的管理歡迎與歐立威洽詢。</p>
<p></p>
<p></p>
<p><strong>Reference: </strong></p>
<p></p>
<p></p>
<ol class="wp-block-list"><p></p>
<li><a href="https://help.tableau.com/current/online/en-us/dm_vconn_overview.htm" target="_blank" rel="noreferrer noopener">原廠文件 About Virtual Connections and Data Policies</a></li>
<p></p></ol>
<p></p>
<p></p>
<hr class="wp-block-separator has-css-opacity is-style-wide">
<p></p>
<p></p>							</div>
										</div>
				</div>
					</div>
		</div>
					</div></div>
		</section>
				</div>
		]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18849</post-id>	</item>
		<item>
		<title>Tableau 教學 &#8211; 儀錶板即時自動更新實作，戰情室、產線監控全靠這兩招！</title>
		<link>https://www.omniwaresoft.com.tw/techcolumn/tableau-techcolumn/tableau-dashboard-auto-real-time-refresh/</link>
		
		<dc:creator><![CDATA[Omni]]></dc:creator>
		<pubDate>Thu, 09 Feb 2023 09:57:54 +0000</pubDate>
				<category><![CDATA[Tableau 技術專欄]]></category>
		<category><![CDATA[Tableau]]></category>
		<guid isPermaLink="false">http://www.omniwaresoft.com.tw/?p=18837</guid>

					<description><![CDATA[若想在更短的時間內重整報表，例如：每 10 秒鐘更新一次，達到真正的「即時」，那就會需要使用 Tableau 提供的 API 去達成，讓我們可以自由自訂重整的頻率，無論是戰情室屏幕還是監控儀表板，都可以立刻看到資料的變化。以下會以 Google 試算表方式模擬資料即時的變更，再使用報表嵌入至網頁中的方式觀察自動重新整理的狀況，最後也會說明範例影片中使用的程式碼內容。]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="18837" class="elementor elementor-18837" data-elementor-post-type="post">
						<section data-particle_enable="false" data-particle-mobile-disabled="false" class="elementor-section elementor-top-section elementor-element elementor-element-716a702b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="716a702b" data-element_type="section">
						<div class="elementor-container elementor-column-gap-thegem"><div class="elementor-row">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-11de15c5" data-id="11de15c5" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6eb56611 flex-horizontal-align-default flex-horizontal-align-tablet-default flex-horizontal-align-mobile-default flex-vertical-align-default flex-vertical-align-tablet-default flex-vertical-align-mobile-default elementor-widget elementor-widget-text-editor" data-id="6eb56611" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
												<div class="elementor-text-editor elementor-clearfix">
						<p></p>
<h2 class="has-medium-font-size wp-block-heading"><strong>Tableau 報表自動即時更新</strong></h2>
<p></p>
<p></p>
<p>利用 Tableau 製作儀表板後，為了日後能持續看到最新的資料，我們會對報表進行資料更新，根據不同的報表主題，設置資料更新的頻率也不同。</p>
<p></p>
<p></p>
<p>若是不需要看到即時的資訊（例如：日批次更新的資料），可以使用擷取的資料連線方式並設置排程每日更新，即可每天看到該日批次的資料，但透過此方法最短僅能以小時為單位自動更新；若報表需要看到即時的資訊，例如：戰情室、產線監控儀表板等，就需要使用即時的資料連線方式，搭配自動重新整理，即可達成在更短的時間內，讓報表自動即時呈現最新的資料。</p>
<p></p>
<p></p>
<p>隨著 Tableau 的廣泛應用，越來越多人會利用 Tableau 製作戰情室儀表板，以便隨時使用資料做出精準決策。若要達成這個目標，首先要能確保資料是可以即時連線，並且能夠自動重新整理。以下會針對需要看到即時資訊的報表，介紹兩種自動重新整理來更新資料的方法。&nbsp;</p>
<p></p>
<p></p>
<h2 class="has-medium-font-size wp-block-heading">方法一：<strong>Tableau 擴充功能 Auto Refresh</strong></h2>
<p></p>
<p></p>
<p>Auto Refresh 自動重新整理，是 Tableau 內建的儀表板擴充功能，可以在製作報表時將此物件應用在儀表板中，會以倒數計時的方式呈現，倒數完畢就會自動重新整理儀表板，達到在短時間內呈現最新資料的效果，但須注意此方法的更新頻率最快為五分鐘。</p>
<p></p>
<p></p>
<p><strong>Auto Refresh</strong> 使用方式很簡單，在製作儀表板的物件區，拖曳「擴展」物件至畫面中，即可搜尋 Auto Refresh 並且下載此擴充程式，並且可於配置中設定更新頻率及物件文字大小，如下圖：</p>
<p></p>
<p></p>
<figure class="wp-block-image aligncenter is-resized"><img loading="lazy" src="https://lh3.googleusercontent.com/BDzPLK9tKFCNlQbZw8MpbqN6sRwKmtJFFV9HHHX9zEjKKZY3O_-eWiu1GGf10eaVSnWPvAzFmqP1iQC1bDnfVzFd1LEQZD-ViFKPtF5_wB7dA2NQ4nTElrwGw0otwF7wbhU-4Me8x57cNRw6409y" alt="Auto Refresh" width="664" height="399"></figure>
<p></p>
<p></p>
<h2 class="has-medium-font-size wp-block-heading">方法二：Tableau 嵌入報表自動重新整理</h2>
<p></p>
<p></p>
<p>若想在更短的時間內重整報表，例如：每 10 秒鐘更新一次，達到真正的「即時」，那就會需要使用 Tableau 提供的 API 去達成，讓我們可以自由自訂重整的頻率，無論是戰情室屏幕還是監控儀表板，都可以立刻看到資料的變化。</p>
<p></p>
<p></p>
<p>以下以 Google 試算表及 Tableau 超級市場範例資料集，模擬資料即時的變更，再使用報表嵌入至網頁中的方式觀察自動重新整理的狀況，最後也會說明範例影片中使用的程式碼內容。</p>
<p></p>
<p></p>
<p><strong>即時自動更新影片範例：</strong></p>
<p></p>
<p></p>
<figure class="wp-block-video aligncenter"><video controls="" src="https://www.omniwaresoft.com.tw/wp-content/uploads/2023/03/報表嵌入自動更新範例影片.mov"></video></figure>
<p></p>
<p></p>
<p>從範例影片中可以看出，在 Google 試算表中加入新的年份 2018 年（原始的資料年份只到 2016），報表自動重整後，有出現 2018 年的資料，接著再將 Google 試算表中加入的 2018 年資料刪除，再回到報表中，可以看到過了幾秒鐘滑鼠出現轉圈圈並且重新整理，回到原本只有到 2016 年的資料，實現了儀表板自動即時更新的效果。</p>
<p></p>
<p></p>
<p>以下為詳細的步驟說明。</p>
<p></p>
<p></p>
<p><strong>步驟 1.</strong> <strong>確保儀表板連結的資料來源是即時連線（live connection）</strong></p>
<p></p>
<p></p>
<figure class="wp-block-image aligncenter is-resized"><img loading="lazy" src="https://lh4.googleusercontent.com/ILJSHGGB8TMF-OL-HRkeO9UXjUL8-iXXoD3LF6l5sCX5rf71EeG52wQpFzmywtDuHPdCPMpR1voBWYTGhHKvDRTNDpLKzINwgXkjyUFjYxXX6Miv_zRpCgW0K7Z0jOyt2UlRZQaX6lvb8r7eXuo9" alt="live connection" width="543" height="366"></figure>
<p></p>
<p></p>
<p><strong>步驟 2.</strong> <strong>在前端網頁程式碼加入以下嵌入程式碼、自動更新程式設置</strong></p>
<p></p>
<p></p>
<ol class="wp-block-list"><p></p>
<li>使用 Tableau Javascripts API，後方需填入 server 的網址位置</li>
<p></p>
<p></p>
<li>第一個 function 是 refreshView（），是用在自動更新儀表板畫面</li>
<p></p>
<p></p>
<li>第二個 function 是 initialize（），是用在嵌入儀表板畫面，下方會宣告要嵌入的報表以及其格式設定</li>
<p></p>
<p></p>
<li>setInterval（refreshView, 豪秒數），是用在設定自動更新的頻率</li>
<p></p></ol>
<p></p>
<p></p>
<figure class="wp-block-image aligncenter is-resized"><img loading="lazy" src="https://lh6.googleusercontent.com/rTMo0bebtjWdquBnuskQI6EwLcWMbq7VbCBEDxSFmAP5-eDj7zD87pbw4cj1cA-7DzZdQZmx7sqaKUaZjdzMM0lV0kPjhr4b_-lBW0sLPPyWyvBZlIQApuqEwlB1dltP-zZrtHEhHk2tjYYl4Olz" alt="configuration" width="683" height="309"></figure>
<p></p>
<p></p>
<h2 class="has-medium-font-size wp-block-heading"><strong>結語</strong></h2>
<p></p>
<p></p>
<p>上述分享的兩種自動重新整理報表方式，皆須使用「即時」的資料連線，建議連線的資料來源須有較佳的規格，或是資料量不能太大，因為即時連線的方式本身就會影響整體效能，在重新整理後要能快速對資料做查詢及呈現，才符合我們對於戰情室或監控儀表板的期待。另外，使用者除了調校資料面的效能外，也可以透過儀表板的設計優化，加速整體的重整速度，提高使用體驗，迅速作出精準決策。</p>
<p></p>
<p></p>
<p><strong>Reference: </strong></p>
<p></p>
<p></p>
<ol class="wp-block-list"><p></p>
<li><a rel="noreferrer noopener" href="https://exchange.tableau.com/zh-TW/products/115" target="_blank">自動重新整理</a></li>
<p></p>
<p></p>
<li><a href="https://help.tableau.com/current/api/embedding_api/en-us/index.html" target="_blank" rel="noreferrer noopener">Tableau Embedding API v3</a></li>
<p></p></ol>
<p></p>
<p></p>
<hr class="wp-block-separator has-css-opacity is-style-wide">
<p></p>
<p></p>							</div>
										</div>
				</div>
					</div>
		</div>
					</div></div>
		</section>
				</div>
		]]></content:encoded>
					
		
		<enclosure url="https://www.omniwaresoft.com.tw/wp-content/uploads/2023/03/報表嵌入自動更新範例影片.mov" length="927305" type="video/quicktime" />

		<post-id xmlns="com-wordpress:feed-additions:1">18837</post-id>	</item>
		<item>
		<title>Tableau &#8211; Top N 常見誤用與正確使用指南</title>
		<link>https://www.omniwaresoft.com.tw/techcolumn/tableau-techcolumn/tableau-topn-guideness/</link>
		
		<dc:creator><![CDATA[Omni]]></dc:creator>
		<pubDate>Tue, 30 Aug 2022 08:42:13 +0000</pubDate>
				<category><![CDATA[Tableau 技術專欄]]></category>
		<category><![CDATA[Tableau]]></category>
		<guid isPermaLink="false">http://www.omniwaresoft.com.tw/?p=18149</guid>

					<description><![CDATA[除了可以藉由 Tableau 篩選器預設的「頂端」功能去達成以外，配合不同使用及分析情境，會需要其他方式來計算正確的 Top N 結果，讓我們可以以更彈性的方式去分析報表。]]></description>
										<content:encoded><![CDATA[
<h2 class="has-medium-font-size wp-block-heading"><strong>TopN 的用途</strong>是什麼？</h2>



<p>使用 Tableau 製作儀表板時，根據分析以及版面的需求，很多時候我們只需要針對前幾名的項目進行觀察，此時便可以運用 Top N 的功能呈現出來，迅速聚焦資訊。除了可以藉由 Tableau 篩選器預設的「頂端」功能去達成以外，配合不同使用及分析情境，會需要其他方式來計算正確的 Top N 結果，讓我們可以以更彈性的方式去分析報表。</p>



<h2 class="has-medium-font-size wp-block-heading"><strong>什麼情境下會使用到 Top N？</strong></h2>



<p>前面說明了 Top N 的用途，那到底在哪些情境下會用到這個功能呢？</p>



<p>舉例來說：在一張超市訂單資料集中，我只想關注某些表現特殊的項目，例如我想看到在各縣市中前 10 名消費額最高的顧客是哪些人，就可以使用 Top N 達成這個需求，針對這些客戶進行進一步的分析或行銷策略，並且還可以確保在加入其他欄位後，呈現的結果是正確的。</p>



<p>大家或許會疑惑，Tableau 篩選器本身不是就有「頂端」可以使用嗎？確實這個功能是可以做到 Top N，但在這個例子中，因為使用了一個以上的維度做分析，牽涉到 Tableau 的篩選順序問題，所以最後的分析數字會有錯誤。</p>



<p>以下示範錯誤及正確的例子，讓大家更清楚為何要使用別的方式去達成 Top N 功能。</p>



<h2 class="has-medium-font-size wp-block-heading">Top N 常見誤用<strong> ＆ 正確使用方式</strong></h2>



<p>以下列舉兩個常見的使用 Top N 後發生資料錯誤的狀況。會造成這些錯誤發生的原因是<strong>在 Tableau 中篩選器有執行順序先後的差別</strong>。</p>



<p>下圖為 Tableau 中篩選器的順序，從上而下開始執行，最上面最優先開始篩選，最下面則是最後執行。當篩選器之間或是篩選器與計算間順序不對，則會產生錯誤資料，此時可以根據需求或情境對篩選器順序或計算式的計算方式進行調整，以呈現正確資料。</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img loading="lazy" src="https://lh6.googleusercontent.com/EMSZbbiR-ud5vRCtFJoAlHNx-w2IY3Ke8Z30rFKdrHsUCpdUBA9iCfx25BIDwlXXiaI8L3YhyDTzXSHxFXmCA3EdDKKex6y9RDPMBvowBVF6wp20APvH9GkoVuZKu2IP3jWDmK9p19vU7Nf3J6EqCcQcMd3ST5c3o1AIR8TZLg_QJnGssufHyb2a5rCIBxb5E9uQ" alt="Tableau 篩選器順序" width="502" height="336"/></figure></div>


<h3 class="wp-block-heading" style="font-size:18px"><strong>範例 1－同時使用維度篩選器與 Top N 篩選器：改用上下文篩選</strong></h3>



<p>首先，最常見因篩選順序而發生錯誤的資料範例，即<strong>同時使用維度篩選器與 Top N 篩選器。</strong></p>



<p>以下範例使用的資料為 Tableau 附帶的「Sample-Superstore」有關訂單的資料集。</p>



<p>將「State」與「Customer Name」欄位放入列架上，也加入一個使用 Rank 函數的欄位來輔助我們確認每個顧客銷售額的排名，而「Sales」欄位放置欄架上。「Customer Name」以「Sales」大小遞減方式排序，這時可以看到每位顧客的銷售額狀況，為了只要顯示銷售額前十名顧客，可以將「Customer Name」欄位放置篩選條件中並為其選取頂端按「Sales」欄位大小前 10 名作為篩選條件，此時篩選器中新增了 Top N 篩選器，而視圖中也只會顯示前十名顧客內容。</p>



<p>若想要視圖中呈現「California」銷售額前十名的顧客。將「State」欄位放置篩選條件中，看看會發生什麼事？</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img loading="lazy" src="https://lh4.googleusercontent.com/FBN7ioLp78aE9E6sD-liYjbexylIhpWNPx4wuT61tH9DJTQLPC_eoGMnJlh1TpQ1S3uvS1eUYStMEaj6befwiFJ-tQHpvZwoG4r_PuUf-LD1iQP5363RaYX_riSeQ5AdgICOskQPCEywIQvrQ2rgC17SEZwluxEEEhM0-zdTz_dwesZYURFtaEWPLQSVCVX0XDDJ" alt="訂單工作表" width="584" height="320"/></figure></div>

<div class="wp-block-image">
<figure class="aligncenter is-resized"><img loading="lazy" src="https://lh5.googleusercontent.com/PFtBntWgn0ft72RQ_bszjdsagQeNTDB3S2tE7EYuANxRsjEKpXW6AW1GmAg50ol9jSGlporq6tnH9NejAeTJYwOs9CqBcEXE8IhgKC5UCI4Az7GEpYZpOZNMKWzRkRV5IE2FdNpRioLD9gjWpqocm-0r4U7s8x2cEs6VTnSQFzUMdM3WkngmsUPAxa2QqW1tA1FM" alt="篩選條件" width="605" height="419"/></figure></div>


<p>當我們加入「State」欄位篩選條件並篩選「California」後，此時視圖呈現 6 筆資料，另外 4 名不見了，如下圖所示。</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img src="https://lh4.googleusercontent.com/D265JMhlhikBRh5K1uDpqs-v1VDUggo8i7f_mO3K0bCtiEyam7JL_Fhud1wyv1rZTQ8yLuhL_ZSupcCxqH-A91jxwC2lOLh_34tzzB3D76Tawd6VjAJXv8Sc4jtLnWcEGnOvIG0wpBwuA2Ek34EWHwqsgMNLv41tqr3jPDvYlosPG7PXOi_Qk_6dOAsm1LbQ7VJs" alt="僅顯示 6 筆資料" width="600" height="-70"/></figure></div>


<p>由於此時篩選條件架中有兩個篩選器，分別是「Customer Name」Top N 篩選器與「State」一般維度篩選器，Top N 篩選器早於維度篩選器進行資料的篩選，所以 Top N 先篩選整個資料集的前 10 名，才接著篩選「California」，只有這六名出現是因為它們一開始是整個資料集的前 10 名，而現在視圖也不是我們要看的加州銷售額前 10 名的顧客名單。</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img src="https://lh4.googleusercontent.com/_nyeAi2gCwvMkIngB4OAxOECALPCM0y4G6nJDR41dLyjzKkKrNl8q1FZaaTUCjJaGeqP5sLBEA5yQA3oFTW9Tg_lCofeIHwtq2a1KTn9Y45bOwZ77G9d1R0i4kGnHVH7IfYVhtnt67Vzx5KgJ0_31tLZQt5oJEQ1XrsQltlPMZoUWNZW-4cfboDiYmogUA9rtTgy" alt="篩選器順序" width="600" height="-109"/></figure></div>


<p>為了解決這個問題，將一般維度「State」轉換為上下文篩選器，上下文篩選器背景會呈現咖啡色，使篩選順序早於 Top N 執行，因此會先篩選出「California」所有顧客，再從中篩選出前 10 名顧客，如下圖所示。</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img loading="lazy" src="https://lh3.googleusercontent.com/rMqchBrHySvZp40PshvHtqgLkbF1c8lBNp1myxYdbZft4zZR5n3zYRpvxRdLuBQy8aIjERTECi--5UetjHxkyokYA3NUjMZCF1o7IQGhbxv1K06UN8OOlfnywOnLxQART9ZBhQxIk6VEGi2t8U3x80JW0KELbkWDrwhtr9cPLuwrLDid8MuYsCviov98WVRpk9kI" alt="篩選器順序" width="635" height="426"/></figure></div>

<div class="wp-block-image">
<figure class="aligncenter is-resized"><img loading="lazy" src="https://lh4.googleusercontent.com/-xlQvR_ufg3twRNH-KuIrgkpuI8oHcKF9xbl5sN1XJcOwcinQHJ78dKtvmU3MXsXCv0Gq3R4E6nRDPVWALG0ntY2Y84V7PcIlW5R0NZELbUnVqCJU6lCuYddbmvpZTpd_4LfoczIRbvAYpM7MzSFavUngVRHeuho1K9K8S5UDUIvDU3J7Fv4u-TEqsC_dp1ST3Eq" alt="前 10 名顧客" width="951" height="306"/></figure></div>


<h3 class="wp-block-heading" style="font-size:18px"><strong>範例 2<strong>－</strong>同時使用維度篩選器與 Top N 篩選器：改用表計算篩選</strong></h3>



<p>此範例與範例 1 情境相同，篩選條件中同時有維度篩選與 Top N 篩選器，改以表計算的篩選來解決呈現資料錯誤的問題。</p>



<p>回到 Tableau 資料篩選順序圖上，因為 Top N 早於維度篩篩器，故將 Top N 的功能使用表計算篩選器來替代，此時維度篩選器將早於表計算篩選器，透過維度篩選器篩選後資料也會呈現我們要的結果。</p>


<div class="wp-block-image">
<figure class="aligncenter"><img src="https://lh3.googleusercontent.com/W1IO-fxZtugB356loawrP0N6QD1k0xH0V49rN_1vMo9eKjNCLni7ZcMaou2MDgslGZqVfc1QkAxyOX9WGoexbSKeJPcbHh8VRgEAOhwQO9N1-EqQ6AbuIFiAJX95qkhSlgAEa9xVf3u14hQycfrNgJI5NuCRwNSBzDtKdSgfQs6DRN8jU-xS3i0n6_pNID7q1AHk" alt="篩選器順序"/></figure></div>


<p>為了要新增表計算篩選器，首先要新增含有表計算的計算式欄位，第一個新增欄位名為「Rank，對銷售額進行排名；第二個欄位名為「Customer Top 10_Table Calc」進行取前 10 名的判斷，並放置篩選條件中，再將 Other 排除篩選條件中。當我們篩選「California」時，將呈現正確的「California」銷售前十名的顧客。</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img loading="lazy" src="https://lh3.googleusercontent.com/2FgxgI4GTYeoN2CFaZYXNxJqKAgl20xsSeQkqFh1prFDe7pmlhHMB33JllP0bXpqPvThTxbAC2uiVKYBZBsErM2OELiSAqLkg4zrId35Lua7IUR744E6D5Y6cl779u27W824jXnZsUAHDFPnqj7eMZzqHXDTM9nauye2ws-kx6Trw-nGv0YgYJaZ_3gClegV5HSt" alt="表計算" width="1000" height="255"/></figure></div>

<div class="wp-block-image">
<figure class="aligncenter is-resized"><img loading="lazy" src="https://lh6.googleusercontent.com/nFH2mm7GxRhm5QEwA5Uy3UG155XVLouN8LiSyqg0XAiWETPo_JC4Q7op08_InGpkDtnx4C8oKPJlfCEip7Owdg7dwUj4FzRgQgjPr0D7JD7VySSnr8FhE3_0UetY5gVrCXtQ_oah66vnC_Sed_dk" alt="" width="800" height="380"/></figure></div>


<h2 class="has-medium-font-size wp-block-heading"><strong>結語</strong></h2>



<p>從以上的範例，我們可以了解到 Tableau 的篩選順序會影響 Top N 呈現的結果，篩選順序愈上面的層級會優先處理，透過這些規範確保在製作報表時的正確性，搭配表計算篩選器的使用，使用者可以依照自身需求決定要看哪些維度的變化，讓報表更具彈性，實現自助分析的目標。</p>



<p><strong>Reference: </strong><a href="https://help.tableau.com/current/pro/desktop/zh-tw/order_of_operations.htm" target="_blank" rel="noreferrer noopener">Tableau 的操作順序</a></p>



<hr class="wp-block-separator has-css-opacity is-style-wide"/>



<p><strong>本文章由歐立威技術顧問撰寫而成，轉載請註明出處，內容若有侵權請來信告知</strong></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18149</post-id>	</item>
		<item>
		<title>How to connect R with Tableau</title>
		<link>https://www.omniwaresoft.com.tw/techcolumn/tableau-techcolumn/how-to-connect-r-with-tableau/</link>
		
		<dc:creator><![CDATA[Omni]]></dc:creator>
		<pubDate>Thu, 01 Feb 2018 09:16:17 +0000</pubDate>
				<category><![CDATA[Tableau 技術專欄]]></category>
		<category><![CDATA[技術專欄]]></category>
		<category><![CDATA[Tableau]]></category>
		<category><![CDATA[Techcolumn]]></category>
		<guid isPermaLink="false">https://goodpoint-studio.com/?p=12940</guid>

					<description><![CDATA[Jack Chen Install R ...]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="12940" class="elementor elementor-12940" data-elementor-post-type="post">
						<section data-particle_enable="false" data-particle-mobile-disabled="false" class="elementor-section elementor-top-section elementor-element elementor-element-33d7e83f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="33d7e83f" data-element_type="section">
						<div class="elementor-container elementor-column-gap-thegem"><div class="elementor-row">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3f24f661" data-id="3f24f661" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2c5389a8 flex-horizontal-align-default flex-horizontal-align-tablet-default flex-horizontal-align-mobile-default flex-vertical-align-default flex-vertical-align-tablet-default flex-vertical-align-mobile-default elementor-widget elementor-widget-text-editor" data-id="2c5389a8" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
												<div class="elementor-text-editor elementor-clearfix">
						<p class="FirstParagraph" style="text-align: right;"><span lang="EN-US">Jack Chen</span></p>
<h2><strong>Install R</strong></h2>
<ol>
<li>Go to <a href="http://cran.csie.ntu.edu.tw/">R project</a> and download <strong>R</strong> (Linux, Mac or Windows version) then install <strong>R</strong>.<img loading="lazy" data-recalc-dims="1" class="aligncenter wp-image-12942" src="https://i0.wp.com/104.154.39.219/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau1.png?resize=556%2C276" alt="How to connect R with Tableau1" width="556" height="276" srcset="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau1.png?w=1273&amp;ssl=1 1273w, https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau1.png?resize=300%2C149&amp;ssl=1 300w, https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau1.png?resize=1024%2C508&amp;ssl=1 1024w, https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau1.png?resize=768%2C381&amp;ssl=1 768w" sizes="(max-width: 556px) 100vw, 556px" /></li>
<li>Go to <a href="https://www.rstudio.com/">R Studio</a> and download <strong>R Sutdio</strong>. (Optional)</li>
<li>Start <strong>R</strong>, load the <strong>Rserve</strong> library and call the Rserve service in the R environment</li>
</ol>
<blockquote>
<pre style="text-align: justify;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;install.package("Rserve")
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; library(Rserve)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rserve(args = "--no--save")</pre>
</blockquote>
<h2><strong>Connect Rserve with Tableau&nbsp;</strong></h2>
<p>1.Open Tableau and establish a connection to Rserve from Tableau.<br>
<strong><strong>&nbsp; &nbsp;&nbsp;</strong></strong>Help -&gt; Settings and Performance -&gt; Manage R connections</p>
<p><img loading="lazy" data-recalc-dims="1" class="aligncenter wp-image-12941" src="https://i0.wp.com/104.154.39.219/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau2.png?resize=309%2C198" alt="How to connect R with Tableau2" width="309" height="198" srcset="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau2.png?w=393&amp;ssl=1 393w, https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau2.png?resize=300%2C192&amp;ssl=1 300w" sizes="(max-width: 309px) 100vw, 309px" /><br>
2.Set Server = localhost and port = 6311 then click OK</p>
<h5><img loading="lazy" data-recalc-dims="1" class="aligncenter wp-image-12945 size-full" src="https://i0.wp.com/104.154.39.219/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau3.png?resize=309%2C206" alt="How to connect R with Tableau3" width="309" height="206" srcset="https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau3.png?w=309&amp;ssl=1 309w, https://i0.wp.com/www.omniwaresoft.com.tw/wp-content/uploads/2018/02/How-to-connect-R-with-Tableau3.png?resize=300%2C200&amp;ssl=1 300w" sizes="(max-width: 309px) 100vw, 309px" /></h5>
<p><strong>References:</strong></p>
<ol>
<li><a href="http://www.tableau.com/learn/tutorials/on-demand/how-integrate-r-and-tableau?signin=e986a39d5c9cf87f6778058150c716de">Tableau: How to integrate R andt Tableau</a></li>
<li><a href="http://www.simafore.com/blog/bid/120209/Integrating-Tableau-and-R-for-data-analytics-in-four-simple-steps">Integrating Tableau and R for data analytics in four simple steps</a></li>
<li><a href="http://onlinehelp.tableau.com/current/pro/online/en-us/help.html#r_connection_manage.html%3FTocPath%3DReference%7CR%2520Connection%7C_____0">Tableau: Online help</a></li>
</ol>							</div>
										</div>
				</div>
					</div>
		</div>
					</div></div>
		</section>
				</div>
		]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">12940</post-id>	</item>
	</channel>
</rss>
