<?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: Is there a way to extract out all possible values from a column and display them in a table chart? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933923#M76936</link>
    <description>&lt;P&gt;If you select FORK in your new table then the ID&amp;nbsp;1, 4, 5, 6 and 7 will be associated to that selection.&lt;/P&gt;
&lt;P&gt;If you select ID 2 then the kitchen items&amp;nbsp;SPORK and SPOON will be associated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you try it out on the small dataset that you provided to us when creating this post to see how my solution will behave.&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2022 18:56:49 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2022-05-21T18:56:49Z</dc:date>
    <item>
      <title>Is there a way to extract out all possible values from a column and display them in a table chart?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933824#M76916</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I currently have a table where there is one column in particular where I want to extract values from. Those values from the column are like such:&lt;/P&gt;
&lt;TABLE style="width: 40.42747526718057%;" border="1" width="40.42747526718057%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="1.2376237623762376%"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="23.433184865913322%"&gt;&lt;STRONG&gt;KITCHEN ITEM&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="1.2376237623762376%"&gt;1&lt;/TD&gt;
&lt;TD width="23.433184865913322%"&gt;FORK, CANDLE&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="1.2376237623762376%"&gt;2&lt;/TD&gt;
&lt;TD width="23.433184865913322%"&gt;SPOON, SPORK&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="1.2376237623762376%"&gt;3&lt;/TD&gt;
&lt;TD width="23.433184865913322%"&gt;KNIFE, CANDLE&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="1.2376237623762376%"&gt;4&lt;/TD&gt;
&lt;TD width="23.433184865913322%"&gt;FORK, CANDLE&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="1.2376237623762376%"&gt;5&lt;/TD&gt;
&lt;TD width="23.433184865913322%"&gt;KNIFE, SPOON, FORK, CANDLE&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="1.2376237623762376%"&gt;6&lt;/TD&gt;
&lt;TD width="23.433184865913322%"&gt;SPOON, FORK, CANDLE&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="1.2376237623762376%"&gt;7&lt;/TD&gt;
&lt;TD width="23.433184865913322%"&gt;FORK&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to extract that data from the table and display it in a table chart in the Sheet like such:&lt;/P&gt;
&lt;TABLE border="1" width="49.43517080745342%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="26.862885857860732%"&gt;&lt;STRONG&gt;Kitchen Item Extracted&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="22.572307607107724%"&gt;&lt;STRONG&gt;Count of Items&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="26.862885857860732%"&gt;KNIFE&lt;/TD&gt;
&lt;TD width="22.572307607107724%"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="26.862885857860732%"&gt;SPOON&lt;/TD&gt;
&lt;TD width="22.572307607107724%"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="26.862885857860732%"&gt;SPORK&lt;/TD&gt;
&lt;TD width="22.572307607107724%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="26.862885857860732%"&gt;FORK&lt;/TD&gt;
&lt;TD width="22.572307607107724%"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="26.862885857860732%"&gt;CANDLE&lt;/TD&gt;
&lt;TD width="22.572307607107724%"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My original thought was to use this function and do it in the script:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;TEXT(TRIM(SUBFIELD([Kitchen Items], ','))) AS [Kitchen Items Extracted]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;However, the problem with this method is it made my app worse in three ways:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;It exponentially increased the number of rows in my table&lt;/LI&gt;
&lt;LI&gt;It is incredibly inefficient&lt;/LI&gt;
&lt;LI&gt;Getting a summation or total count for the original number of rows in the table is impossible (for example, the table originally had 1000 rows and with the code above, there is now 100,000 rows)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Is there a way to accomplish this in the sheet level? Or is there a more efficient way to do this in the script?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 22:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933824#M76916</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-05-20T22:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract out all possible values from a column and display them in a table chart?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933838#M76918</link>
      <description>&lt;P&gt;&lt;BR /&gt;Let's keep your 1000 rows table as is, but instead create a dimension table for kitchen items.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Transactions:&lt;BR /&gt;LOAD &lt;BR /&gt;ID, &lt;BR /&gt;[KITCHEN ITEM] as %kitchenItemID, &lt;BR /&gt;Dim1, &lt;BR /&gt;Dim2, &lt;BR /&gt;DimN&lt;BR /&gt;FROM Source;&lt;/P&gt;
&lt;P&gt;//create a dimension table &lt;BR /&gt;for each _id in &lt;BR /&gt;fieldvaluelist('%kitchenItemID')&lt;BR /&gt;[Kitchen items]:&lt;BR /&gt;Load &lt;BR /&gt;'$(_id)' as %kitchenItemID,&lt;BR /&gt;TEXT(TRIM(SUBFIELD('$(_id)', ','))) AS [Kitchen Item]&lt;BR /&gt;Autogenerate 1;&lt;BR /&gt;next _id&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 06:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933838#M76918</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-05-21T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract out all possible values from a column and display them in a table chart?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933916#M76935</link>
      <description>&lt;P&gt;Thanks!&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;If I make a selection in the source table, would the selection also reflect in the newly created table?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I select “FORK”, would it automatically filter the new table on FORK?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 15:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933916#M76935</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-05-21T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract out all possible values from a column and display them in a table chart?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933923#M76936</link>
      <description>&lt;P&gt;If you select FORK in your new table then the ID&amp;nbsp;1, 4, 5, 6 and 7 will be associated to that selection.&lt;/P&gt;
&lt;P&gt;If you select ID 2 then the kitchen items&amp;nbsp;SPORK and SPOON will be associated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you try it out on the small dataset that you provided to us when creating this post to see how my solution will behave.&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 18:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1933923#M76936</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-05-21T18:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract out all possible values from a column and display them in a table chart?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1934534#M76983</link>
      <description>&lt;P&gt;I just tried it out and maybe I modified it incorrectly, but I got a syntax error after the for loop:&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Transactions:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD ID&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;,[KITCHEN ITEM] AS %kitchenDocumentID&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;RESIDENT Inventory&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;for each _id in&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;fieldvaluelist('%kitchenDocumentID')&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;[Kitchen items]:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Load&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;'$(_id)' as %kitchenDocumentID,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;TEXT(TRIM(SUBFIELD('$(_id)', ','))) AS [Kitchen Document Item]&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Autogenerate 1;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;next _id&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikToFindOut_1-1653366286002.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80110i0CE35C5D0B1F75EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QlikToFindOut_1-1653366286002.png" alt="QlikToFindOut_1-1653366286002.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;I get a syntax error on &lt;FONT face="courier new,courier"&gt;[Kitchen items]&lt;/FONT&gt;. Any thoughts why?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks!&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 May 2022 04:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1934534#M76983</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-05-24T04:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract out all possible values from a column and display them in a table chart?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1934555#M76986</link>
      <description>&lt;P&gt;I don't see why, except that you might have a line break between 'in' and 'fieldvaluelist'. You can not have a line break there.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Since the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;for each..next&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;statement is a control statement and as such is ended with either a semicolon or end-of-line, each of its three possible clauses (&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;for each&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;exit for&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;next&lt;/SPAN&gt;&lt;SPAN&gt;) must not cross a line boundary.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If that is not the issue then please take a screenshot of your error message and post it here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 04:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1934555#M76986</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-05-24T04:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract out all possible values from a column and display them in a table chart?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1939192#M77416</link>
      <description>&lt;P&gt;This didn't work quite well, but I tweaked it and I got exactly what I needed.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 20:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-there-a-way-to-extract-out-all-possible-values-from-a-column/m-p/1939192#M77416</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-06-02T20:20:26Z</dc:date>
    </item>
  </channel>
</rss>

