<?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: how to create a new column filled with '1' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850277#M655832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Load *, 1 As DataCounter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;from sourcetable;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 12:20:33 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2015-05-26T12:20:33Z</dc:date>
    <item>
      <title>how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850272#M655826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;my short question:&lt;/P&gt;&lt;P&gt;how can i create a new column filled with '1' in every row in an existing table.&lt;/P&gt;&lt;P&gt;I need it to count my data without the 'count' command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850272#M655826</guid>
      <dc:creator />
      <dc:date>2015-05-26T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850273#M655827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my short answer: just type 1 into a new expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850273#M655827</guid>
      <dc:creator />
      <dc:date>2015-05-26T12:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850274#M655828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I understand, in the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as newfield,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but why you don't want count?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850274#M655828</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-26T12:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850275#M655829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but i don't understand your idea... i need a column named 'DataCounter' that have as much as rows like the other columns in this table. But 'DataCounter' has a '1' in every row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850275#M655829</guid>
      <dc:creator />
      <dc:date>2015-05-26T12:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850276#M655830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another short answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field1&lt;/P&gt;&lt;P&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; field2,&lt;/P&gt;&lt;P&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; ...,&lt;/P&gt;&lt;P&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; fieldn,&lt;/P&gt;&lt;P&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; 1 as myCounter&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850276#M655830</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2015-05-26T12:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850277#M655832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Load *, 1 As DataCounter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;from sourcetable;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850277#M655832</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-05-26T12:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850278#M655833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *, 1 as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DataCounter from Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850278#M655833</guid>
      <dc:creator />
      <dc:date>2015-05-26T12:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850279#M655834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is why the long more detailed question is more helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You talk about a new column which sounds like a new expression in a chart, c&lt;SPAN style="font-size: 13.3333330154419px;"&gt;reating a new expression with just '1' in it will do just that in a chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually though it sounds like you a looking for a new field in your data model, now you have given a bit more detail.&lt;/P&gt;&lt;P&gt;For that you can simply add a new field to your load &lt;/P&gt;&lt;P&gt;1 As DataCounter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850279#M655834</guid>
      <dc:creator />
      <dc:date>2015-05-26T12:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column filled with '1'</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850280#M655835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or if your table already exists (and you don't wanna change the LOAD statement - or you can't), use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;JOIN (ExistingTable)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD 1 AS RowCounter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;AUTOGENERATE 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should test which is faster: another LOAD RESIDENT or a simple JOIN. Massimo's original table LOAD moditifcation will beat everything else...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-new-column-filled-with-1/m-p/850280#M655835</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-05-26T12:43:33Z</dc:date>
    </item>
  </channel>
</rss>

