<?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: Challenging Case. Splitting a string into parts conditionally in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276889#M400911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;many thanks Perter for your replay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the formula you provided it only takes the first value but what if i have more than one sub string that is prefixed with + &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2017 07:41:11 GMT</pubDate>
    <dc:creator>kaldubai</dc:creator>
    <dc:date>2017-01-25T07:41:11Z</dc:date>
    <item>
      <title>Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276887#M400909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everyone i have a problem need your help with it&lt;/P&gt;&lt;P&gt;i have a field that contains toppings added to a Pizza and the field looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;toppings:&lt;/P&gt;&lt;P&gt;RMADT0046;SFT0F0005;+060;060;+RMTOC0019;RMTOC0019&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now this field actually contains both the extra toppings added and the default once&lt;/P&gt;&lt;P&gt;the extra once are prefixed with + sign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is&lt;/P&gt;&lt;P&gt;how to extract only the once that prefixed with a +&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 09:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276887#M400909</guid>
      <dc:creator>kaldubai</dc:creator>
      <dc:date>2017-01-19T09:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276888#M400910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TextBetween( toppings &amp;amp; ';' , '+' , ';' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276888#M400910</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-19T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276889#M400911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;many thanks Perter for your replay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the formula you provided it only takes the first value but what if i have more than one sub string that is prefixed with + &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 07:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276889#M400911</guid>
      <dc:creator>kaldubai</dc:creator>
      <dc:date>2017-01-25T07:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276890#M400912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its straightforward in the backend. Add this to your load after loading the main fact table (containing toppings):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Added:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE added_topping like '+*'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LoAD toppings,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SubField(toppings, ';') as added_topping&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident &amp;lt;fact table name&amp;gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace &lt;EM style="font-size: 13.3333330154419px;"&gt;&amp;lt;fact table name&amp;gt;&lt;/EM&gt; with the correct name of the resident table containing toppings. Use new field [added_toppings] in the front end expressions/dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276890#M400912</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-01-25T08:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276891#M400913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its trickier in the front end because the number of toppings will not be known. You will need an unwieldy and awkward to debug expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(SubStringCount(toppings, '+') = 1, TextBetween(toppings &amp;amp; ';' , '+' , ';' ),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(SubStringCount(toppings, '+') = 2, &lt;EM style="font-size: 13.3333330154419px;"&gt;TextBetween('+'&amp;amp;&lt;/EM&gt;SubString(toppings, '+', 1)&amp;amp;';'&lt;EM style="font-size: 13.3333330154419px;"&gt; , '+' , ';' )&amp;amp;....&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;If(SubStringCount(toppings, '+') = 3, ...,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;...&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;'')))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276891#M400913</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-01-25T08:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276892#M400914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TextBetween also takes a 4th parameter which tells which one of the matching toppings you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBetween( toppings &amp;amp; ';' , '+' , ';' , 1 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // picks the first match&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBetween( toppings &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;';' , '+' , ';' , 2 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the second and so forth ... it doesn't matter if you pick one &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // that doesn't exists as it returns an empty string.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 09:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276892#M400914</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-25T09:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276893#M400915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks johanthan for your response &lt;/P&gt;&lt;P&gt;the solution you suggested at first&amp;nbsp; finds the first plus then takes the whole string,then afterward it divides the string into sub string creating more rows&amp;nbsp; .&lt;/P&gt;&lt;P&gt;i actually i came up with a temporary solution &lt;SPAN style="font-size: 10pt;"&gt; which is somthing like your second post instead i used subfield function but as you mentioned the maximum number of toppings can be known but it is still not fixed &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;therefore i was &lt;/SPAN&gt;wondering&lt;SPAN style="font-size: 10pt;"&gt; if there is any &lt;/SPAN&gt;possibility to perform a for loop or while on a particular field to check the value part by part &lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 09:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276893#M400915</guid>
      <dc:creator>kaldubai</dc:creator>
      <dc:date>2017-01-25T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276894#M400916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well i have done the same thing but using subfield along the way with concat function , as for now the maximum number of substring count is 41 so i repeated the code about 45 in case the number exceeded 41 but what if it exceeded 45. that way ill have to check the maximum number every now and then and the code will get out of control &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 09:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276894#M400916</guid>
      <dc:creator>kaldubai</dc:creator>
      <dc:date>2017-01-25T09:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Challenging Case. Splitting a string into parts conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276895#M400917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;string into sub string creating more rows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't do this in the main table and don't join it, My suggestion would have created a sidecar table with the additions, not extra rows in the fact/data table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 13:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Challenging-Case-Splitting-a-string-into-parts-conditionally/m-p/1276895#M400917</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-01-25T13:51:14Z</dc:date>
    </item>
  </channel>
</rss>

