<?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 Split strings by delimiter into multiple subfields similar to how CSV does it but using Qlik in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2449335#M1225667</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have some data exported from Shopify which is effect is a whole bunch of comma delimited tag words of a particular item but stored in a single field. In practice its something like a Tshirt in size Medium where a customer has picked multiple single items of the various colors on sale and has purchased a multi color pack of goods. I want to split up this field (which can be any length) into separate columns in a Qlik table, similar to what would happen if you imported the field as if it were a CSV without the " " around the string when it gets split into separate columns. I'm using Qlikview here.&lt;/P&gt;
&lt;P&gt;Some example data below:&lt;/P&gt;
&lt;P&gt;[Table1]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Order, ColorList&lt;BR /&gt;#43308, "White,White,White,White,White,White"&lt;BR /&gt;#43327, "Powder Beige,Powder Beige,Powder Beige,Powder Beige,White,White,White"&lt;BR /&gt;#43329, "Black,Black,Black,Black,Powder Beige"&lt;BR /&gt;#43335, "Powder Beige,Powder Beige,Powder Beige,Powder Beige,Powder Beige"&lt;BR /&gt;#43342, "Black,Black,Black,Midnight Navy,Midnight Navy,Midnight Navy"&lt;BR /&gt;#43346, "Black,Black"&lt;BR /&gt;#43347, "Black,Black,Black,Black,Black,Black,Black"&lt;BR /&gt;#43349, "Black,Black,Black,Black,Black,Black,Black"&lt;BR /&gt;#43354, "Powder Beige,Powder Beige,Powder Beige,Black,Black"&lt;BR /&gt;#43354, "Black,Cherry,Black"&lt;BR /&gt;#43361, "Blood Stone,Blood Stone,Midnight Navy,Midnight Navy,Black,Black,Black"&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Ideally I want to display the above data as:&lt;/P&gt;
&lt;P&gt;Order&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;White&amp;nbsp; &amp;nbsp; PowderBeige&amp;nbsp; &amp;nbsp;Black&amp;nbsp; &amp;nbsp;... etc.&lt;/P&gt;
&lt;P&gt;#43308&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;/P&gt;
&lt;P&gt;#43308&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;
&lt;P&gt;#43329&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;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;
&lt;P&gt;... etc.&lt;/P&gt;
&lt;P&gt;If the formatting above doesnt get mangled when I post this I hope you'll get the idea. I simply want to create additional columns using the unique names of the colors as the title of the additional columns and then put the count of the number of times that color name is repeated per order line in the ColorList string(field).&lt;/P&gt;
&lt;P&gt;With help from other posts in this forum&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Split-String-Function-In-QlikView/td-p/221912" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Split-String-Function-In-QlikView/td-p/221912&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-to-get-Subfield-value-count/td-p/488174" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-to-get-Subfield-value-count/td-p/488174&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Analytics/SUBFIELD-and-CountIF/td-p/1786994" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-Qlik-Analytics/SUBFIELD-and-CountIF/td-p/1786994&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;A href="https://www.bitmetric.nl/blog/qlik-sense-subfield/" target="_blank" rel="noopener"&gt;https://www.bitmetric.nl/blog/qlik-sense-subfield/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its fairly straightforward to determine the unique items in the ColorList strings and also to count them, and then using set expressions and manually creating a Table report column per unique color name achieve a result.&lt;/P&gt;
&lt;P&gt;For example by doing this:&lt;/P&gt;
&lt;P&gt;LOAD Order, SubField(ColorList, ',') AS UniqueColor RESIDENT [Table1];&lt;/P&gt;
&lt;P&gt;LOAD Order, SubStringCount(ColorList,',')+1 AS ColorCount RESIDENT [Table1];&lt;/P&gt;
&lt;P&gt;However, the caveat is this isnt easily scalable. Doing it with 10 items is easy, but when I have a list of 500+ colors and 50000 records I need to find a way to do this for much longer comma delimited strings and have a way of in script splitting up this string into separate fields or a subtable of the color list items which I can then further manipulate as desired.&lt;/P&gt;
&lt;P&gt;This expression works (obviously I change the color name in the {' '} section for other colors in additional expressions per color but this doesnt scale well so its a lot of manual model front end maintenance to keep this updated.&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;UniqueColor={'Black'}&amp;gt;}SubField(ColorList,','))&lt;/P&gt;
&lt;P&gt;Can anyone suggest a way I can do this in Qlik code (or some other method that's generic and automated) for different delimited color names (or any other tags) in the loaded string automatically in Qlik.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2024 13:35:14 GMT</pubDate>
    <dc:creator>Angazi</dc:creator>
    <dc:date>2024-05-06T13:35:14Z</dc:date>
    <item>
      <title>Split strings by delimiter into multiple subfields similar to how CSV does it but using Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2449335#M1225667</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have some data exported from Shopify which is effect is a whole bunch of comma delimited tag words of a particular item but stored in a single field. In practice its something like a Tshirt in size Medium where a customer has picked multiple single items of the various colors on sale and has purchased a multi color pack of goods. I want to split up this field (which can be any length) into separate columns in a Qlik table, similar to what would happen if you imported the field as if it were a CSV without the " " around the string when it gets split into separate columns. I'm using Qlikview here.&lt;/P&gt;
&lt;P&gt;Some example data below:&lt;/P&gt;
&lt;P&gt;[Table1]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Order, ColorList&lt;BR /&gt;#43308, "White,White,White,White,White,White"&lt;BR /&gt;#43327, "Powder Beige,Powder Beige,Powder Beige,Powder Beige,White,White,White"&lt;BR /&gt;#43329, "Black,Black,Black,Black,Powder Beige"&lt;BR /&gt;#43335, "Powder Beige,Powder Beige,Powder Beige,Powder Beige,Powder Beige"&lt;BR /&gt;#43342, "Black,Black,Black,Midnight Navy,Midnight Navy,Midnight Navy"&lt;BR /&gt;#43346, "Black,Black"&lt;BR /&gt;#43347, "Black,Black,Black,Black,Black,Black,Black"&lt;BR /&gt;#43349, "Black,Black,Black,Black,Black,Black,Black"&lt;BR /&gt;#43354, "Powder Beige,Powder Beige,Powder Beige,Black,Black"&lt;BR /&gt;#43354, "Black,Cherry,Black"&lt;BR /&gt;#43361, "Blood Stone,Blood Stone,Midnight Navy,Midnight Navy,Black,Black,Black"&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Ideally I want to display the above data as:&lt;/P&gt;
&lt;P&gt;Order&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;White&amp;nbsp; &amp;nbsp; PowderBeige&amp;nbsp; &amp;nbsp;Black&amp;nbsp; &amp;nbsp;... etc.&lt;/P&gt;
&lt;P&gt;#43308&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;/P&gt;
&lt;P&gt;#43308&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;
&lt;P&gt;#43329&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;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;
&lt;P&gt;... etc.&lt;/P&gt;
&lt;P&gt;If the formatting above doesnt get mangled when I post this I hope you'll get the idea. I simply want to create additional columns using the unique names of the colors as the title of the additional columns and then put the count of the number of times that color name is repeated per order line in the ColorList string(field).&lt;/P&gt;
&lt;P&gt;With help from other posts in this forum&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Split-String-Function-In-QlikView/td-p/221912" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Split-String-Function-In-QlikView/td-p/221912&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-to-get-Subfield-value-count/td-p/488174" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-to-get-Subfield-value-count/td-p/488174&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Analytics/SUBFIELD-and-CountIF/td-p/1786994" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-Qlik-Analytics/SUBFIELD-and-CountIF/td-p/1786994&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;A href="https://www.bitmetric.nl/blog/qlik-sense-subfield/" target="_blank" rel="noopener"&gt;https://www.bitmetric.nl/blog/qlik-sense-subfield/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its fairly straightforward to determine the unique items in the ColorList strings and also to count them, and then using set expressions and manually creating a Table report column per unique color name achieve a result.&lt;/P&gt;
&lt;P&gt;For example by doing this:&lt;/P&gt;
&lt;P&gt;LOAD Order, SubField(ColorList, ',') AS UniqueColor RESIDENT [Table1];&lt;/P&gt;
&lt;P&gt;LOAD Order, SubStringCount(ColorList,',')+1 AS ColorCount RESIDENT [Table1];&lt;/P&gt;
&lt;P&gt;However, the caveat is this isnt easily scalable. Doing it with 10 items is easy, but when I have a list of 500+ colors and 50000 records I need to find a way to do this for much longer comma delimited strings and have a way of in script splitting up this string into separate fields or a subtable of the color list items which I can then further manipulate as desired.&lt;/P&gt;
&lt;P&gt;This expression works (obviously I change the color name in the {' '} section for other colors in additional expressions per color but this doesnt scale well so its a lot of manual model front end maintenance to keep this updated.&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;UniqueColor={'Black'}&amp;gt;}SubField(ColorList,','))&lt;/P&gt;
&lt;P&gt;Can anyone suggest a way I can do this in Qlik code (or some other method that's generic and automated) for different delimited color names (or any other tags) in the loaded string automatically in Qlik.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 13:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2449335#M1225667</guid>
      <dc:creator>Angazi</dc:creator>
      <dc:date>2024-05-06T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split strings by delimiter into multiple subfields similar to how CSV does it but using Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2449382#M1225668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/157693"&gt;@Angazi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I'm not sure I understand exactly what you need. If you have already tested the alternative I am going to present, I am sorry.&lt;BR /&gt;From your example model, just run this script:&lt;/P&gt;
&lt;PRE&gt;Table2:&lt;BR /&gt;Load&lt;BR /&gt;  Order,&lt;BR /&gt;  SubField(ColorList, ',') as Colors&lt;BR /&gt;Resident Table1;&lt;/PRE&gt;
&lt;P&gt;To have Qlik automatically generate this data model:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rodrigo_martins_0-1715006838266.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165542i5135014F9142A005/image-size/large?v=v2&amp;amp;px=999" role="button" title="rodrigo_martins_0-1715006838266.png" alt="rodrigo_martins_0-1715006838266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this scenario, working with many columns (an undefined number) would not be ideal. The best way is actually a "high" table, which is already the result offered by Qlik. With this table you can create the visualization you presented in your question (the pivot table generates the columns automatically):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rodrigo_martins_1-1715006870854.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165543iF898952C51A1A0FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="rodrigo_martins_1-1715006870854.png" alt="rodrigo_martins_1-1715006870854.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;On the other hand, if you need the columns in your data model, you can try using the &lt;A href="https://help.qlik.com/pt-BR/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Generic.htm" target="_blank" rel="noopener"&gt;Generic&lt;/A&gt; prefix in the result of the first transformation. It does the opposite of a Crosstable, generating tables for different values ​​from the 2nd dimension of the original table. The disadvantage is that it generates a table for each value found, which will leave your model very cluttered (500+ tables):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rodrigo_martins_2-1715006979740.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165544iBC88C9511B3995B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rodrigo_martins_2-1715006979740.png" alt="rodrigo_martins_2-1715006979740.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can even work on joining these tables, but in that case you will still be stuck with a "fixed" list of colors. As for performance, I believe that the first option (without using Generic) is better, but the ideal is to always test the available options and compare.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 14:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2449382#M1225668</guid>
      <dc:creator>rodrigo_martins</dc:creator>
      <dc:date>2024-05-06T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Split strings by delimiter into multiple subfields similar to how CSV does it but using Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2450465#M1225671</link>
      <description>&lt;DIV data-pm-slice="1 1 []" data-en-clipboard="true"&gt;Hi Rodrigo,&lt;/DIV&gt;
&lt;DIV&gt;Thank you very much for your prompt response and detailed explanations.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I am unclear by what you mean by a "high" table - is that the same thing as a "tall" table as described here?&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/crosstable.htm" rev="en_rl_none" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/crosstable.htm&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Generic.htm" rev="en_rl_none" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Generic.htm&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have tried in the past 2 days various script permutations using crosstable and generic prefixes but have not had any success. My crosstable syntax produces incorrect results and generic gives me many tables but they contain multiple color names per named table which is also not what I'm expecting.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have made a little progress in the following direction however,&lt;/DIV&gt;
&lt;DIV&gt;If I take your expression, which appears to be the same as my "UniqueColor" example.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV data-codeblock="true" data-line-wrapping="false"&gt;
&lt;DIV data-plaintext="true"&gt;Table2:&lt;/DIV&gt;
&lt;DIV data-plaintext="true"&gt;Load Order, SubField(ColorList, ',') as Colors Resident Table1;&lt;/DIV&gt;
&lt;DIV data-plaintext="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;I see this, which is helpful because I am getting the Colors - the colorname - repeated multiple times per order - which makes sense because in my original ColourList data this colorname was repeated that many times separated by the comma delimiter, so then in theory if I can count the number of times a particular colorname repeats per order# I have something useful to start with.&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_69b7b1f9a06867Angazi_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Angazi_4-1715190665330.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165728i439509B055E2DEA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Angazi_4-1715190665330.png" alt="Angazi_4-1715190665330.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;Then if I add some additional script code like the below as per &lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/CounterAggregationFunctions/TextCount.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/CounterAggregationFunctions/TextCount.htm&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV data-codeblock="true" data-line-wrapping="false"&gt;
&lt;DIV data-plaintext="true"&gt;Table3:&lt;/DIV&gt;
&lt;DIV data-plaintext="true"&gt;LOAD Colors, TextCount(Colors) as ColorTextCount Resident Table2 Group By Colors;&lt;/DIV&gt;
&lt;DIV data-plaintext="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;I see this which seems to show a correct TOTAL count of the colornames across all the ColorList column data in the example INLINE sample data I provided initially.&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_69b7b1f9a06867Angazi_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Angazi_5-1715190745223.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165729i2CCA93A31BAC0AA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Angazi_5-1715190745223.png" alt="Angazi_5-1715190745223.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;So now while I have gotten to a total above which is great, I'd also like to have an intermediate sum of the count of unique colornames per individual order#.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Like I think you were suggesting I need to use a Pivot table for this. However, clearly I'm missing something fundamental and/or my aggregation logic is broken, because the below isnt getting me the result I want and when I add Colors as a dimension the results look even worse.&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_69b7b1f9a06867Angazi_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Angazi_6-1715190824404.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165730iD5F559ECD4ADB04C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Angazi_6-1715190824404.png" alt="Angazi_6-1715190824404.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;I'm trying to get to the view you showed like this:&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_69b7b1f9a06867Angazi_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Angazi_7-1715190844021.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165731i1C72915E103E0104/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Angazi_7-1715190844021.png" alt="Angazi_7-1715190844021.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 May 2024 17:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2450465#M1225671</guid>
      <dc:creator>Angazi</dc:creator>
      <dc:date>2024-05-08T17:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Split strings by delimiter into multiple subfields similar to how CSV does it but using Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2450518#M1225672</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/157693"&gt;@Angazi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes, I did mean tall table, sorry about that!&lt;/P&gt;
&lt;P&gt;In my example I built the Pivot Table with the same model as yours (up to [Table2]), and the following settings (it's in pt-br):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rodrigo_martins_0-1715197653644.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165735i43CB36918C7F616A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rodrigo_martins_0-1715197653644.png" alt="rodrigo_martins_0-1715197653644.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Another way to achieve the same result would be to create a third table in your model, grouping the orders and colors and counting the number of colors in each group, like this:&lt;/P&gt;
&lt;PRE&gt;Table2:&lt;BR /&gt;Load&lt;BR /&gt;&lt;SPAN&gt; Order,&lt;/SPAN&gt;&lt;BR /&gt; SubField(ColorList, ',') as Colors&lt;BR /&gt;Resident Table1;&lt;BR /&gt;&lt;BR /&gt;Drop Table Table1;&lt;BR /&gt;&lt;BR /&gt;Table3:&lt;BR /&gt;Load&lt;BR /&gt;&lt;SPAN&gt; SubField(KeyOrderColor, '|', 1) as Order,&lt;/SPAN&gt;&lt;BR /&gt; SubField(KeyOrderColor, '|', 2) as Color,&lt;BR /&gt; Qty;&lt;BR /&gt;Load&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt; Order &amp;amp; '|' &amp;amp; Colors as KeyOrderColor,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Count(Colors) as Qty&lt;/SPAN&gt;&lt;BR /&gt;Resident Table2 Group By Order &amp;amp; '|' &amp;amp; Colors ;&lt;BR /&gt;&lt;BR /&gt;Drop Table Table2;&lt;/PRE&gt;
&lt;P&gt;The resulting model would look like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rodrigo_martins_1-1715197817436.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165736i43FDE033B98D4085/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rodrigo_martins_1-1715197817436.png" alt="rodrigo_martins_1-1715197817436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Pivot Table would then need to be modified to:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rodrigo_martins_2-1715197834921.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165737iC698FFEE5251AE08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rodrigo_martins_2-1715197834921.png" alt="rodrigo_martins_2-1715197834921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(it can be Max, Min, Sum, as there will only be a single record for the key order + color)&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 19:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2450518#M1225672</guid>
      <dc:creator>rodrigo_martins</dc:creator>
      <dc:date>2024-05-08T19:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Split strings by delimiter into multiple subfields similar to how CSV does it but using Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2450865#M1225673</link>
      <description>&lt;DIV data-pm-slice="1 1 []" data-en-clipboard="true"&gt;Aha, thank you, I was over complicating things, your approach is much simpler than what I was trying and more importantly works perfectly&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;In en-za I get to this in Qlikview:&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_706a12c9b9c958Angazi_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Angazi_2-1715269422706.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165795i337F20166180415C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Angazi_2-1715269422706.png" alt="Angazi_2-1715269422706.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;Trying the table3 approach, I get this which is also as expected.&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_706a12c9b9c958Angazi_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Angazi_3-1715269440757.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165796i366CF2B79954AAA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Angazi_3-1715269440757.png" alt="Angazi_3-1715269440757.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;Excellent, I'm pretty sure I can scale this concept generically across all the excessive comma delimited "tag" fields Shopify data exports insist on frustrating me with so that I can build proper models that make much more sense to me by using Qlik.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Wonderful, thank you very much for your superb assistance - this is a great solution. Cheers&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 May 2024 15:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-strings-by-delimiter-into-multiple-subfields-similar-to/m-p/2450865#M1225673</guid>
      <dc:creator>Angazi</dc:creator>
      <dc:date>2024-05-09T15:45:08Z</dc:date>
    </item>
  </channel>
</rss>

