<?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 Use of Row() to get WeekN for distinct date - script - not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1910936#M1218126</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;How to use RowNo() in script to get the WeekN automatically in Qlik App&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a excel file like below with other fields which is manual entry. My req is to make WeekN to be automatic i,e without the data entry .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1648535228483.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75542i421F27DDF083D567/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1648535228483.png" alt="ashmitp869_0-1648535228483.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am using the below script -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WeeklyCovidNo1:&lt;BR /&gt;LOAD&lt;BR /&gt;MakeDate(Year([Today's date]),Month([Today's date]), Day([Today's date])) as _Date,&lt;BR /&gt;"COVID +ve patients in ICU",&lt;BR /&gt;"COVID +ve patients in ICU ,&lt;BR /&gt;"COVID +ve patients in wards ",&lt;BR /&gt;"COVID +ve patients in wards" &lt;BR /&gt;FROM [lib:/testing.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Form1);&lt;/P&gt;
&lt;P&gt;WeeklyCovidNo:&lt;/P&gt;
&lt;P&gt;noconcatenate&lt;BR /&gt;Load&lt;BR /&gt;Distinct _Date&lt;BR /&gt;,&lt;BR /&gt;RowNo() as WeekN&lt;BR /&gt;Resident WeeklyCovidNo1 ;&lt;/P&gt;
&lt;P&gt;Drop table WeeklyCovidNo1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I am getting like below- each entry with no.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_1-1648535485811.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75543iCCD6BE49BD006186/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_1-1648535485811.png" alt="ashmitp869_1-1648535485811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please kindly assist me with the script - So that WeekN is calculated automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 06:32:53 GMT</pubDate>
    <dc:creator>ashmitp869</dc:creator>
    <dc:date>2022-03-29T06:32:53Z</dc:date>
    <item>
      <title>Use of Row() to get WeekN for distinct date - script - not working</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1910936#M1218126</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;How to use RowNo() in script to get the WeekN automatically in Qlik App&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a excel file like below with other fields which is manual entry. My req is to make WeekN to be automatic i,e without the data entry .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1648535228483.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75542i421F27DDF083D567/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1648535228483.png" alt="ashmitp869_0-1648535228483.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am using the below script -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WeeklyCovidNo1:&lt;BR /&gt;LOAD&lt;BR /&gt;MakeDate(Year([Today's date]),Month([Today's date]), Day([Today's date])) as _Date,&lt;BR /&gt;"COVID +ve patients in ICU",&lt;BR /&gt;"COVID +ve patients in ICU ,&lt;BR /&gt;"COVID +ve patients in wards ",&lt;BR /&gt;"COVID +ve patients in wards" &lt;BR /&gt;FROM [lib:/testing.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Form1);&lt;/P&gt;
&lt;P&gt;WeeklyCovidNo:&lt;/P&gt;
&lt;P&gt;noconcatenate&lt;BR /&gt;Load&lt;BR /&gt;Distinct _Date&lt;BR /&gt;,&lt;BR /&gt;RowNo() as WeekN&lt;BR /&gt;Resident WeeklyCovidNo1 ;&lt;/P&gt;
&lt;P&gt;Drop table WeeklyCovidNo1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I am getting like below- each entry with no.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_1-1648535485811.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75543iCCD6BE49BD006186/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_1-1648535485811.png" alt="ashmitp869_1-1648535485811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please kindly assist me with the script - So that WeekN is calculated automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 06:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1910936#M1218126</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-03-29T06:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Row() to get WeekN for distinct date - script - not working</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1910984#M1218129</link>
      <description>&lt;P&gt;This should work?&amp;nbsp; (Week(Today())-Week(Date))-1 As WeekN&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 07:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1910984#M1218129</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2022-03-29T07:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Row() to get WeekN for distinct date - script - not working</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1911583#M1218157</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;this is woking but it won't work for new year.&lt;/P&gt;
&lt;P&gt;It restarted to be week 1. Then 1-52=-51.&lt;/P&gt;
&lt;P&gt;Can you help me how to get distinct date and then count the rowno().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 04:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1911583#M1218157</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-03-30T04:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Row() to get WeekN for distinct date - script - not working</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1911654#M1218160</link>
      <description>&lt;P&gt;RowNo() probably isnt the right approach here.&amp;nbsp; You should be easily able to adapt the Week approach?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 07:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1911654#M1218160</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2022-03-30T07:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Row() to get WeekN for distinct date - script - not working</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1911677#M1218162</link>
      <description>&lt;P&gt;then how to solve new year -&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It restarted to be week 1. Then 1-52=-51.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please assist.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 07:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Row-to-get-WeekN-for-distinct-date-script-not-working/m-p/1911677#M1218162</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-03-30T07:34:41Z</dc:date>
    </item>
  </channel>
</rss>

