<?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 ColumnNo() Error in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ColumnNo-Error-in-Set-Analysis/m-p/283445#M496735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this script in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;EffectiveYear={2011},EffectiveWeek={$(=ColumnNo())}&amp;gt;} TOTAL [Employee Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unfortunately, ColumnNo() is not recognized properly by set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried placing RowNo() and it works as well as placing constant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 02:10:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-07T02:10:23Z</dc:date>
    <item>
      <title>ColumnNo() Error in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/ColumnNo-Error-in-Set-Analysis/m-p/283445#M496735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this script in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;EffectiveYear={2011},EffectiveWeek={$(=ColumnNo())}&amp;gt;} TOTAL [Employee Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unfortunately, ColumnNo() is not recognized properly by set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried placing RowNo() and it works as well as placing constant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 02:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ColumnNo-Error-in-Set-Analysis/m-p/283445#M496735</guid>
      <dc:creator />
      <dc:date>2011-12-07T02:10:23Z</dc:date>
    </item>
    <item>
      <title>ColumnNo() Error in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/ColumnNo-Error-in-Set-Analysis/m-p/283446#M496736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the problem is that QlikView first evaluates the Dollar-Sign Expansions to get the final expression, and after tries to calculate the value for each row/column. So QlikView is using the following expression:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;count({&amp;lt;EffectiveYear={2011},EffectiveWeek={-}&amp;gt;} TOTAL [Employee Number])&lt;/P&gt;&lt;P&gt;, which returns you invalid data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trty replacing the expression for this:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;count({&amp;lt;EffectiveYear={2011}, HireWeek=p(EffectiveWeek)&amp;gt;} [Employee Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure of what you want, so it may be incorrect....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 15:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ColumnNo-Error-in-Set-Analysis/m-p/283446#M496736</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-12-07T15:44:35Z</dc:date>
    </item>
  </channel>
</rss>

