<?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: How to get proper formula in the QV Script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722438#M1050198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the Substring(field,'/',1) does not work. I tied to set it as separate variable and it does not work as well - the synthax is wrong...&lt;/P&gt;&lt;P&gt;From your example i conclude that the synthax you meant was:&lt;/P&gt;&lt;P&gt;substring(field, end of the string expression,start at), returning for "KRToo/oodd' the"KTR oo" one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find in any help materials that such synthax exists for substring expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 15:15:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-29T15:15:31Z</dc:date>
    <item>
      <title>How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722433#M1050193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;I need to redefine one of my QV dimensions, using other dimensions loaded. The simplest way would be to do this directly in the load script, however being able to get what I want in excel (attached) by writting appropriate formula, I am not able to mirror this in QV script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to convert the excel loginc into the QV script logic?&lt;/P&gt;&lt;P&gt;thanks a lot in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722433#M1050193</guid>
      <dc:creator />
      <dc:date>2014-10-29T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722434#M1050194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Draszor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Product_Type='Finished good',substring(Sub_Product_Name,'/',1)&amp;amp;'-'&amp;amp; Size_Name,Sub_Product_Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722434#M1050194</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-29T12:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722435#M1050195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot, but I need as well the part for non Finished goods...&lt;/P&gt;&lt;P&gt;The formula basically says that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If Product Type = Finished good and sub product name contains "/", then take the text until the "/" sign&lt;/LI&gt;&lt;LI&gt;Otherise, then take the text until the " " sign in Sub_Product_Name&amp;nbsp; or if " " sign does not exist, take the whole string from Sub_Product_Name&lt;/LI&gt;&lt;LI&gt;add the Size_Name for Finished goods&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722435#M1050195</guid>
      <dc:creator />
      <dc:date>2014-10-29T12:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722436#M1050196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably need to nest that if for all that, but definitely doable in QV &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722436#M1050196</guid>
      <dc:creator />
      <dc:date>2014-10-29T12:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722437#M1050197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Product_Type='Finished good' and wildMatch(Sub_Product_Name,'*/*')&amp;gt;0,substring(Sub_Product_Name,'/',1)&amp;amp;'-'&amp;amp; Size_Name,if(Product_Type='Finished good' and wildMatch(Sub_Product_Name,'*/*')&amp;lt;0,substring (Sub_Product_Name,' ',1) &amp;amp;'-'&amp;amp; Size_Name),Sub_Product_Name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 13:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722437#M1050197</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-29T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722438#M1050198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the Substring(field,'/',1) does not work. I tied to set it as separate variable and it does not work as well - the synthax is wrong...&lt;/P&gt;&lt;P&gt;From your example i conclude that the synthax you meant was:&lt;/P&gt;&lt;P&gt;substring(field, end of the string expression,start at), returning for "KRToo/oodd' the"KTR oo" one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find in any help materials that such synthax exists for substring expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 15:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722438#M1050198</guid>
      <dc:creator />
      <dc:date>2014-10-29T15:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722439#M1050199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really sorry got confused with that function &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace it with:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Product_Type='Finished good' and wildMatch(Sub_Product_Name,'*/*')&amp;gt;0,subfield(Sub_Product_Name,'/',1)&amp;amp;'-'&amp;amp; Size_Name,if(Product_Type='Finished good' and wildMatch(Sub_Product_Name,'*/*')&amp;lt;0,subfield (Sub_Product_Name,' ',1) &amp;amp;'-'&amp;amp; Size_Name),Sub_Product_Name))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;KC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722439#M1050199</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-29T16:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722440#M1050200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot KC,&lt;/P&gt;&lt;P&gt;now thi worked - I needed to do very few editorial changes like:&lt;/P&gt;&lt;P&gt;Instead of wildMatch(Sub_Product_Name,'*/*')&amp;lt;0&lt;/P&gt;&lt;P&gt;I used wildMatch(Sub_Product_Name,'*/*')=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or I added the proper part of the formula for non Finished goods, but your code was 98% ready.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very helpful, very quick, I am very glad&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 08:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722440#M1050200</guid>
      <dc:creator />
      <dc:date>2014-10-30T08:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get proper formula in the QV Script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722441#M1050201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;You are welcome Rob &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Actually i didnt try that syntex in app, i just wrote that so coudnt track my mistakes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-proper-formula-in-the-QV-Script/m-p/722441#M1050201</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-30T12:49:30Z</dc:date>
    </item>
  </channel>
</rss>

