<?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 Vdim Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1373999#M419599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi at all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field with a several codes concatenated and separated by semicolon. This field is called Variables and for example he has these values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) AAA;VDIM=125~54~45,LLL&lt;/P&gt;&lt;P&gt;2)VDIM=100~45~55;CCC;CCC&lt;/P&gt;&lt;P&gt;3)AAA;BBB;VDIM=100~58~63&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like to do is to create a second field in the script that give to me only the value VDIM=....~....~.... for any records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField(Variables,';',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives to me the follow results for the three records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) AAA&lt;/P&gt;&lt;P&gt;2) VDIM=100~45~55&lt;/P&gt;&lt;P&gt;3)AAA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created this because i wanted to use this second formula that extract the string that i need if the result is VDIM=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;Left(SubField(Variables,';',1),5) = 'VDIM=',&lt;/P&gt;&lt;P&gt;SubField(Variables,';',1),&lt;/P&gt;&lt;P&gt;SubField(Variables,';',2)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would like to create an automatic formula that starts to find where is the position of VDIM= and then estract only the data that I need. So the logic should be this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&lt;/P&gt;&lt;P&gt;Left(SubField(Variables,';',a),5) = 'VDIM='&lt;/P&gt;&lt;P&gt;IS TRUE THEN&lt;/P&gt;&lt;P&gt;SubField(Variables,';',a)&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;a + 1&lt;/P&gt;&lt;P&gt;AND SO ON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in order to do it? Or there are other ways in order to reach the same result? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2017 17:20:11 GMT</pubDate>
    <dc:creator>andrea90casa</dc:creator>
    <dc:date>2017-09-07T17:20:11Z</dc:date>
    <item>
      <title>Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1373999#M419599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi at all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field with a several codes concatenated and separated by semicolon. This field is called Variables and for example he has these values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) AAA;VDIM=125~54~45,LLL&lt;/P&gt;&lt;P&gt;2)VDIM=100~45~55;CCC;CCC&lt;/P&gt;&lt;P&gt;3)AAA;BBB;VDIM=100~58~63&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like to do is to create a second field in the script that give to me only the value VDIM=....~....~.... for any records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField(Variables,';',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives to me the follow results for the three records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) AAA&lt;/P&gt;&lt;P&gt;2) VDIM=100~45~55&lt;/P&gt;&lt;P&gt;3)AAA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created this because i wanted to use this second formula that extract the string that i need if the result is VDIM=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;Left(SubField(Variables,';',1),5) = 'VDIM=',&lt;/P&gt;&lt;P&gt;SubField(Variables,';',1),&lt;/P&gt;&lt;P&gt;SubField(Variables,';',2)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would like to create an automatic formula that starts to find where is the position of VDIM= and then estract only the data that I need. So the logic should be this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&lt;/P&gt;&lt;P&gt;Left(SubField(Variables,';',a),5) = 'VDIM='&lt;/P&gt;&lt;P&gt;IS TRUE THEN&lt;/P&gt;&lt;P&gt;SubField(Variables,';',a)&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;a + 1&lt;/P&gt;&lt;P&gt;AND SO ON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in order to do it? Or there are other ways in order to reach the same result? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 17:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1373999#M419599</guid>
      <dc:creator>andrea90casa</dc:creator>
      <dc:date>2017-09-07T17:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374000#M419600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&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 Field,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;'VDIM=' &amp;amp; TextBetween(Field, 'VDIM=', ';') as NewField;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA;VDIM=125~54~45,LLL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VDIM=100~45~55;CCC;CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA;BBB;VDIM=100~58~63&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;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175854_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 17:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374000#M419600</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-07T17:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374001#M419601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny thank you very much for your help.&amp;nbsp; I tried but it works only for one records, the other gives me only VDIM= and not the value that i need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)VDIM=125~54~45&lt;/P&gt;&lt;P&gt;2)VDIM=100~45~55&lt;/P&gt;&lt;P&gt;3)VDIM=100~58~63&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 17:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374001#M419601</guid>
      <dc:creator>andrea90casa</dc:creator>
      <dc:date>2017-09-07T17:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374002#M419602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, I missed a key thing here (in red below)... try this&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 Field,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'VDIM=' &amp;amp; TextBetween(Field &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;&amp;amp; ';'&lt;/SPAN&gt;, 'VDIM=', ';') as NewField;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA;VDIM=125~54~45,LLL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VDIM=100~45~55;CCC;CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA;BBB;VDIM=100~58~63&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 17:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374002#M419602</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-07T17:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374003#M419603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes it happen that field variables doesn't have a VDIM=.... but only other text like AAA, or sometimes the records is empty .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case i can use the same formula or i have to add IF statement or somethin else more efficient?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 17:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374003#M419603</guid>
      <dc:creator>andrea90casa</dc:creator>
      <dc:date>2017-09-07T17:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374004#M419604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as this gives you the right output (I am guessing it would give null for the NewField in those cases) for the cases you mentioned, I would just use this and not look for alternatives....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 17:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374004#M419604</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-07T17:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374005#M419605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i checked and when there is only one record like VDIM=....~....~ the output is correct, when the record is for example AAA then the output it is not correct because it gives VDIM=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 22:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374005#M419605</guid>
      <dc:creator>andrea90casa</dc:creator>
      <dc:date>2017-09-07T22:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374006#M419606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go...&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 Field,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(TextBetween(Field &amp;amp; ';', 'VDIM=', ';'))) &amp;gt; 0, 'VDIM=' &amp;amp; TextBetween(Field &amp;amp; ';', 'VDIM=', ';')) as NewField;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA;VDIM=125~54~45,LLL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VDIM=100~45~55;CCC;CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA;BBB;VDIM=100~58~63&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 23:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374006#M419606</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-07T23:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Vdim Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374007#M419607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 06:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vdim-Issue/m-p/1374007#M419607</guid>
      <dc:creator>andrea90casa</dc:creator>
      <dc:date>2017-09-08T06:16:49Z</dc:date>
    </item>
  </channel>
</rss>

