<?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: GENERATE ROWS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794038#M1210989</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;, cross join takes too much time to generate it i have ~ 1 000 000 rows , that's why i am looking something different&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 11:31:34 GMT</pubDate>
    <dc:creator>Micki</dc:creator>
    <dc:date>2021-03-24T11:31:34Z</dc:date>
    <item>
      <title>GENERATE ROWS</title>
      <link>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794006#M1210984</link>
      <description>&lt;P&gt;Hi folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to generate data table using distinct column like&amp;nbsp;&lt;BR /&gt;I have two values in column&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column1:&lt;/P&gt;&lt;P&gt;2020-01-02&lt;/P&gt;&lt;P&gt;2020-02-03&lt;/P&gt;&lt;P&gt;Result:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Column 2&lt;/P&gt;&lt;P&gt;2020-01-02&amp;nbsp; &amp;nbsp;&amp;nbsp;2020-01-02&lt;/P&gt;&lt;P&gt;2020-01-02&amp;nbsp; &amp;nbsp;&amp;nbsp;2020-02-03&lt;/P&gt;&lt;P&gt;2020-02-03&amp;nbsp; &amp;nbsp;&amp;nbsp;2020-02-03&lt;/P&gt;&lt;P&gt;2020-02-03&amp;nbsp; &amp;nbsp; 2020-01-02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And of course without cross join&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 10:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794006#M1210984</guid>
      <dc:creator>Micki</dc:creator>
      <dc:date>2021-03-24T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE ROWS</title>
      <link>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794024#M1210986</link>
      <description>&lt;P&gt;Why without cross join? Based on your description, it sounds like the cross join is exactly what you want...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 11:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794024#M1210986</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-24T11:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE ROWS</title>
      <link>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794038#M1210989</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;, cross join takes too much time to generate it i have ~ 1 000 000 rows , that's why i am looking something different&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 11:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794038#M1210989</guid>
      <dc:creator>Micki</dc:creator>
      <dc:date>2021-03-24T11:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE ROWS</title>
      <link>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794043#M1210990</link>
      <description>&lt;P&gt;I think anything else you'd use, probably a loop, would only take longer, but I haven't actively tested this.&lt;/P&gt;&lt;P&gt;You could use a loop on FieldValueList and find out if it's faster, I guess...&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Column1&lt;BR /&gt;2020-01-02&lt;BR /&gt;2020-02-03];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FOR Each i in FieldValueList('Column1')&lt;/P&gt;&lt;P&gt;Load Column1, '$(i)' as Column2&lt;BR /&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also dual-loop on FieldValueList and skip reading from the resident entirely... Again, not sure if that would have a positive impact on performance or not - my guess is it'd be a negative one, but I haven't tested.&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Column1&lt;BR /&gt;2020-01-02&lt;BR /&gt;2020-02-03];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FOR Each i in FieldValueList('Column1')&lt;BR /&gt;For each j in FieldValueList('Column1')&lt;BR /&gt;Load '$(j)' as Column1, '$(i)' as Column2&lt;BR /&gt;Autogenerate(1);&lt;BR /&gt;next j&lt;BR /&gt;NEXT i&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 11:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GENERATE-ROWS/m-p/1794043#M1210990</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-24T11:42:26Z</dc:date>
    </item>
  </channel>
</rss>

