<?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: Substring in String in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020477#M939085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which variable do you want to dismiss?&lt;/P&gt;&lt;P&gt;I just used a variable for India to create a more flexible filter, of course you can use a constant value for 'India'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Jan 2016 18:35:48 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-31T18:35:48Z</dc:date>
    <item>
      <title>Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020472#M939080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings for the day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one variable which contains value 'India-1.Hyderabad,India-2.Bangalore,India-3.Kolkata,US-1.NewYork,US-2.Washington'&lt;/P&gt;&lt;P&gt;I want to create one more variable with india related values like &lt;SPAN style="font-size: 13.3333px;"&gt;1.Hyderabad,2.Bangalore,3.Kolkata&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 17:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020472#M939080</guid>
      <dc:creator />
      <dc:date>2016-01-31T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020473#M939081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is field we are talking about or a variable? If it is a variable how this getting created in a first place?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 17:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020473#M939081</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-31T17:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020474#M939082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SubField( MyVariableName, '-', 1) as Country&lt;/P&gt;&lt;P&gt;SubField( MyVariableName, '-', -1) As City&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 17:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020474#M939082</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-31T17:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020475#M939083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are really using only variables, maybe like attached?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 18:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020475#M939083</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-31T18:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020476#M939084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really like the Valueloop technique, but I have feeling that if this truly a variable, there might be an easier way to create the second variable without using the first one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 18:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020476#M939084</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-31T18:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020477#M939085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which variable do you want to dismiss?&lt;/P&gt;&lt;P&gt;I just used a variable for India to create a more flexible filter, of course you can use a constant value for 'India'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 18:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020477#M939085</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-31T18:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020478#M939086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't really want to dismiss anything from what you have proposed. It is an amazing solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am suggesting is that, if this variable is being getting created in the script using Peek() function. There might be an easier way to calculate another variable with the required output in the script. It won't be dynamic as yours (using vB), but may be we can have pre-created variables for each Country. Do you get what I am trying to say?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 18:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020478#M939086</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-31T18:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020479#M939087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I meant Stefan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Concat(Country&amp;amp; '-'&amp;amp;No.&amp;amp;'.'&amp;amp;City, ',') as Var1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Concat(If(Country = 'India', No.&amp;amp;'.'&amp;amp;City), ',') as Var2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Concat(If(Country = 'US', No.&amp;amp;'.'&amp;amp;City), ',') as Var3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country, No., City&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;India, 1, Hyderabad,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;India, 2, Bangalore,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;India, 3, Kolkata,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;US, 1, NewYork,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;US, 2, Washington&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vVar1 = Peek('Var1');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vVar2 = Peek('Var2');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vVar3 = Peek('Var3');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113108_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 18:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020479#M939087</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-31T18:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020480#M939088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the long string originates from your data model, I guess there are many easier solutions than what I suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 19:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020480#M939088</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-31T19:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in String</title>
      <link>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020481#M939089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Yup that is what I was hinting towards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 19:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substring-in-String/m-p/1020481#M939089</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-31T19:14:55Z</dc:date>
    </item>
  </channel>
</rss>

