<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Content in Tableau Community Forums</title>
    <link>/profile-content.jspa?filterID=contentstatus[published]&amp;targetUser=30755</link>
    <description>Recent content in Tableau Community Forums</description>
    <language>en</language>
    <pubDate>Thu, 04 Dec 2014 01:16:20 GMT</pubDate>
    <generator>Jive Engage 8.0.5.0  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-12-04T01:16:20Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>String Calculated Field - Conditional Categorization</title>
      <link>https://community.tableau.com/thread/149203</link>
      <description>&lt;!-- [DocumentBodyStart:97163925-8205-4a77-b1ce-4fb1c5e15395] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I need help figuring out how to count the instances of a word within text strings but not limit it to just counting an entry once such as when I use the IF THEN ELSEIF formula. See example below:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Sample entries&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=";"&gt;Text String&lt;/td&gt;&lt;td style=";"&gt;Sentences&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;The bridge that the fox jump is yellow&lt;/td&gt;&lt;td style=";"&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;The quick brown animal jump over the bridge.&lt;/td&gt;&lt;td style=";"&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;If I use the following calculated field (and the order matters)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Calculated Field: Text Search&lt;/p&gt;&lt;p&gt;IF CONTAINS([Text String],"Fox" ) THEN "Fox"&lt;/p&gt;&lt;p&gt;ELSEIF CONTAINS([Text String],"Bridge" ) THEN "Bridge"&lt;/p&gt;&lt;p&gt;ELSEIF CONTAINS([Text String],"Yellow" ) THEN "Yellow"&lt;/p&gt;&lt;p&gt;ELSEIF CONTAINS([Text String],"jump" ) THEN "Jump"&lt;/p&gt;&lt;p&gt;ELSE "" END&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;If you do a count of how many times the words show up with the elseif logic, it is sequential so it would count Fox first and then when it's done it goes to the next so it only shows up as this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=";"&gt;Text Search&lt;/td&gt;&lt;td style=";"&gt;Sum of Sentences&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;Bridge&lt;/td&gt;&lt;td style=";"&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;Fox&lt;/td&gt;&lt;td style=";"&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Is there a way that it would show the following?&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=";"&gt;Text Search&lt;/td&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;Bridge&lt;/td&gt;&lt;td style=";"&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;Fox&lt;/td&gt;&lt;td style=";"&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;Yellow&lt;/td&gt;&lt;td style=";"&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;Jump&lt;/td&gt;&lt;td style=";"&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;--------&lt;/p&gt;&lt;p&gt;Post script:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Related to this is a product feature idea for Text mining ability in Tableau. Click here and vote it up: &lt;a class="jive-link-idea" data-containerId="2010" data-containerType="14" data-objectId="3069" data-objectType="3227383" href="https://community.tableau.com/ideas/3069"&gt;http://community.tableau.com/ideas/3069&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:97163925-8205-4a77-b1ce-4fb1c5e15395] --&gt;</description>
      <pubDate>Thu, 04 Dec 2014 01:16:20 GMT</pubDate>
      <author>tableaucommunity@tableau.com</author>
      <guid>https://community.tableau.com/thread/149203</guid>
      <dc:date>2014-12-04T01:16:20Z</dc:date>
      <clearspace:dateToText>4 years 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

