<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create a New Variable from part of another string variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878011#M306555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you give example what should be stored in your new variables?&lt;/P&gt;&lt;P&gt;hostone\...&lt;/P&gt;&lt;P&gt;hosttwo\...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;P&gt;did you check the stringfunctions. they may help you&lt;/P&gt;&lt;P&gt;if you explain the outcome, it's easier to get help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 20:41:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-21T20:41:17Z</dc:date>
    <item>
      <title>Create a New Variable from part of another string variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878010#M306554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Basically I have a variable that is a URL. Sometime it starts with &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow"&gt;http://&lt;/A&gt;&lt;SPAN&gt;. Other times it will start with &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt; or www.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically want to create a Host Name variable from the URL variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://hostone/addtexthere" rel="nofollow"&gt;http://hostone/addtexthere&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://hostone/moretextstuff/here" rel="nofollow"&gt;http://hostone/moretextstuff/here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;www.hostone/text/morestuff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://hosttwo/stuff/here" rel="nofollow"&gt;http://hosttwo/stuff/here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The top three would be put classified as the same Host Name (Host One) based on the "hostone." The bottom one would be put in Host Name (Host 2) based on the part of it that says "hosttwo"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very much unsure how to go about this in Qlikview. Can anyone help me out here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 18:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878010#M306554</guid>
      <dc:creator />
      <dc:date>2015-04-21T18:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New Variable from part of another string variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878011#M306555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you give example what should be stored in your new variables?&lt;/P&gt;&lt;P&gt;hostone\...&lt;/P&gt;&lt;P&gt;hosttwo\...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;P&gt;did you check the stringfunctions. they may help you&lt;/P&gt;&lt;P&gt;if you explain the outcome, it's easier to get help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878011#M306555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T20:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New Variable from part of another string variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878012#M306556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this substituting in your URL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield([Your URL], '/', 3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878012#M306556</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-04-21T20:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New Variable from part of another string variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878013#M306557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming the URL always contains either hostone or hosttwo:&lt;/P&gt;&lt;P&gt;if(index(URL,'hostone'), 'Host One', 'Host Two')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878013#M306557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T21:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New Variable from part of another string variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878014#M306558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically what I want stored in my new variable would just be the host name. So the part that is after the www. but before any of the slashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for the example I gave above I would want hostone and hosttwo to be what is stored in the new variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878014#M306558</guid>
      <dc:creator />
      <dc:date>2015-04-22T15:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New Variable from part of another string variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878015#M306559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I used hostone and hosttwo as a basic example, but with the data I'm working with I will likely have over 40 hosts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878015#M306559</guid>
      <dc:creator />
      <dc:date>2015-04-22T15:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New Variable from part of another string variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878016#M306560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me try another way:&lt;/P&gt;&lt;P&gt;'Host ' &amp;amp; capitalize(textbetween(URL, 'host', '/'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878016#M306560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T15:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a New Variable from part of another string variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878017#M306561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I'm a new user and was unaware of the textbetween() function! This worked perfectly for what I wanted, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 20:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-New-Variable-from-part-of-another-string-variable/m-p/878017#M306561</guid>
      <dc:creator />
      <dc:date>2015-04-22T20:10:14Z</dc:date>
    </item>
  </channel>
</rss>

