<?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 Data manipulation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-manipulation/m-p/2064748#M87330</link>
    <description>&lt;P&gt;If anyone can help I would appreciate it.&lt;/P&gt;
&lt;P&gt;I have data that is one different rows of the table, but the have a common cell in the data.&lt;/P&gt;
&lt;P&gt;And I would like to shows case it next to eachother instead of having different rows.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;OUTPUT:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Alternate info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Test&lt;/TD&gt;
&lt;TD width="25%"&gt;Random data 1&lt;/TD&gt;
&lt;TD width="25%"&gt;Random data 2&lt;/TD&gt;
&lt;TD width="25%"&gt;Random data 3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="lia-align-center"&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="lia-align-center"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;Alternate info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Test&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Random data 1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Test&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Random data 2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="40px"&gt;
&lt;P&gt;Test&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="50%" height="40px"&gt;Random data 3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Wed, 26 Apr 2023 10:45:27 GMT</pubDate>
    <dc:creator>JacoAucamp</dc:creator>
    <dc:date>2023-04-26T10:45:27Z</dc:date>
    <item>
      <title>Data manipulation</title>
      <link>https://community.qlik.com/t5/App-Development/Data-manipulation/m-p/2064748#M87330</link>
      <description>&lt;P&gt;If anyone can help I would appreciate it.&lt;/P&gt;
&lt;P&gt;I have data that is one different rows of the table, but the have a common cell in the data.&lt;/P&gt;
&lt;P&gt;And I would like to shows case it next to eachother instead of having different rows.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;OUTPUT:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Alternate info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Test&lt;/TD&gt;
&lt;TD width="25%"&gt;Random data 1&lt;/TD&gt;
&lt;TD width="25%"&gt;Random data 2&lt;/TD&gt;
&lt;TD width="25%"&gt;Random data 3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="lia-align-center"&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="lia-align-center"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;Alternate info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Test&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Random data 1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Test&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Random data 2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="40px"&gt;
&lt;P&gt;Test&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="50%" height="40px"&gt;Random data 3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 26 Apr 2023 10:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-manipulation/m-p/2064748#M87330</guid>
      <dc:creator>JacoAucamp</dc:creator>
      <dc:date>2023-04-26T10:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data manipulation</title>
      <link>https://community.qlik.com/t5/App-Development/Data-manipulation/m-p/2064840#M87336</link>
      <description>&lt;P&gt;there are at least two general answers to this.&amp;nbsp; &lt;BR /&gt;the first one is involved and requires more analysis as you may want a scalable solution - what are you trying to accomplish?&amp;nbsp; how large is your data?&amp;nbsp; do you need an optimized UI? etc..&lt;BR /&gt;the 2nd is straight forward, a direct answer to a specific question.&lt;BR /&gt;the reason i brought that up is that sometimes the straight forward asnwer is not always the best answer as it drives other problems down the road.&lt;BR /&gt;&lt;BR /&gt;having said that, my simple answer is this:&lt;BR /&gt;1. concatenate the info column grouped by alternate column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NoConcatenate
NewTable:
load [Alternate info], concat(info,'|') as infoS
resident originalTable
group by [Alternate info];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this will result in the following table:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;test&lt;/TD&gt;
&lt;TD width="50%"&gt;info1|info2|info3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;test2&lt;/TD&gt;
&lt;TD width="50%"&gt;info4|info5|info6|info7&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;2: in your table you have no choice but to create the maximum number of columns needed to cover all your concatenated field + the 1st field.&amp;nbsp; if the number of INFO fields is fixed then it is simpler, but if the number of fields is not consistent then you will have to add a condition to show or hide each field depending on the length of the concatenated field.&lt;BR /&gt;for the fist concatenated field:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;subfield(InfoS,'|')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is a sample you can see the expressions:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1682515028960.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105897iE4AD3DCC9352B792/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1682515028960.png" alt="edwin_0-1682515028960.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 13:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-manipulation/m-p/2064840#M87336</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-04-26T13:18:03Z</dc:date>
    </item>
  </channel>
</rss>

