<?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: Exclude weekends for calculating data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790867#M1210622</link>
    <description>&lt;P&gt;Thanks Vegar....It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CAn you help me with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a calculated field (&lt;STRONG&gt;CCY_SETID)&amp;nbsp;&lt;/STRONG&gt;in my load statement. Now I need to have the total count of (&lt;STRONG&gt;CCY_SETID)&amp;nbsp; in load script.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TLMMO:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;SET_ID,&lt;BR /&gt;IF(Wildmatch(SET_ID,'*GDS*')=1,NULL(),SET_ID) AS CCY_SETID&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(file)&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 11:37:19 GMT</pubDate>
    <dc:creator>arpita</dc:creator>
    <dc:date>2021-03-12T11:37:19Z</dc:date>
    <item>
      <title>Exclude weekends for calculating data</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790599#M1210589</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SET_ID,&lt;/P&gt;&lt;P&gt;AGE,&lt;/P&gt;&lt;P&gt;BREAK,&lt;/P&gt;&lt;P&gt;makedate(subfield(FileBaseName(), '_', 7), subfield(FileBaseName(), '_', 6), subfield(FileBaseName(), '_', 5)) as Date&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(file)&lt;/P&gt;&lt;P&gt;I have used the below expression to find the difference in Count(SET_ID) between a day and its previous day. It works fine for Tuesday till Friday but for the Monday's data, its doesnt show the difference because of the falling weekends. Please help&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Date={'$(=max(Date))'}&amp;gt;}total SET_ID)-Count({&amp;lt;Date={'$(=date(max(Date)-1))'}&amp;gt;}total SET_ID)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 15:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790599#M1210589</guid>
      <dc:creator>arpita</dc:creator>
      <dc:date>2021-03-11T15:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends for calculating data</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790786#M1210609</link>
      <description>&lt;P&gt;Hi Arpita,&lt;/P&gt;&lt;P&gt;Bring new field weekday from script &amp;amp; try like below&lt;/P&gt;&lt;P&gt;=date(max({&amp;lt;WeekDay-={'Sun','Sat'},Date=&amp;gt;}Date)-1)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 04:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790786#M1210609</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-03-12T04:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends for calculating data</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790787#M1210610</link>
      <description>&lt;P&gt;Hi , I believe that&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp; solution still will return Sundays values on a Monday. Please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;I would re-use that approach, but use the second parameter of &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/BasicAggregationFunctions/max.htm" target="_self"&gt;max()&lt;/A&gt;&amp;nbsp; to fetch the correct previous date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;Date={'$(=date(max({&amp;lt; [WeekDay]-={"Sat","Sun"}&amp;gt;}Date,2)))'}&amp;gt;}total SET_ID)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 05:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790787#M1210610</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-03-12T05:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends for calculating data</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790803#M1210613</link>
      <description>&lt;P&gt;Hi Mayil and Vegar,&lt;/P&gt;&lt;P&gt;Both of these doesnt work&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 07:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790803#M1210613</guid>
      <dc:creator>arpita</dc:creator>
      <dc:date>2021-03-12T07:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends for calculating data</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790824#M1210616</link>
      <description>&lt;P&gt;&lt;STRONG&gt;The count of SET_ID for the latest non-weekend date in your selection.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Count({&amp;lt;&amp;nbsp;Date={'$(=date(max({&amp;lt;Date={"&amp;lt;=$(=max(Date))"},[WeekDay]={"&amp;lt;5"}&amp;gt;}Date,1)))'}&amp;gt;}total SET_ID)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The count of SET_ID for the second latest non-weekend date in your selection.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Count({&amp;lt;Date={'$(=date(max({&amp;lt;Date={"&amp;lt;=$(=max(Date))"},[WeekDay]={"&amp;lt;5"}&amp;gt;}Date,2)))'}&amp;gt;}total SET_ID)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1615538085932.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51015iD3E89AE58475CDDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_0-1615538085932.png" alt="Vegar_0-1615538085932.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 08:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790824#M1210616</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-03-12T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends for calculating data</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790867#M1210622</link>
      <description>&lt;P&gt;Thanks Vegar....It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CAn you help me with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a calculated field (&lt;STRONG&gt;CCY_SETID)&amp;nbsp;&lt;/STRONG&gt;in my load statement. Now I need to have the total count of (&lt;STRONG&gt;CCY_SETID)&amp;nbsp; in load script.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TLMMO:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;SET_ID,&lt;BR /&gt;IF(Wildmatch(SET_ID,'*GDS*')=1,NULL(),SET_ID) AS CCY_SETID&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(file)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 11:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-for-calculating-data/m-p/1790867#M1210622</guid>
      <dc:creator>arpita</dc:creator>
      <dc:date>2021-03-12T11:37:19Z</dc:date>
    </item>
  </channel>
</rss>

