<?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 same day last year expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/same-day-last-year-expression/m-p/1606788#M737103</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need some help with a problem I am trying to solve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raw data.png" style="width: 436px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16120iF74B6F38307A72D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="raw data.png" alt="raw data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to&lt;/P&gt;&lt;P&gt;--count distinct &lt;STRONG&gt;People_ID&lt;/STRONG&gt; for the selected year, selected &lt;STRONG&gt;Pay_period&lt;/STRONG&gt; and on the Max &lt;STRONG&gt;Number_day&lt;/STRONG&gt; which from user selection. (works fine)&amp;nbsp; =count({$&amp;lt; Number_Day={'$(=$(vMaxDay))'} &amp;gt;}(People_ID))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Count P&lt;STRONG&gt;eople_id&lt;/STRONG&gt; for the previous year of the selected year but for the same &lt;STRONG&gt;Number_Day&lt;/STRONG&gt; as currently selected year and disregarding &lt;STRONG&gt;Pay_Period&lt;/STRONG&gt; selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;For the above data in excel file. Below is the current selection.&lt;/P&gt;&lt;P&gt;=count({$&amp;lt; Number_Day={'$(=$(vMaxDay))'} &amp;gt;}(People_ID)) &amp;nbsp;Result 3&lt;/P&gt;&lt;P&gt;$vMaxDay=6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previous year from my calculation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt; Year={&lt;STRONG&gt;&lt;EM&gt;$(=Year-1)&lt;/EM&gt;&lt;/STRONG&gt;},pay_period=, Number_Day={'6'} &amp;gt;}DISTINCT(People_ID))&lt;/P&gt;&lt;P&gt;And Result of count should be 1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="current Year.png" style="width: 616px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16119i0963A48250180423/image-size/large?v=v2&amp;amp;px=999" role="button" title="current Year.png" alt="current Year.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added 6 manually. It’s basically&amp;nbsp; max &lt;STRONG&gt;Number_Day&lt;/STRONG&gt; of the current selection. &lt;STRONG&gt;Number_Day&lt;/STRONG&gt; has to be dynamic.&lt;/P&gt;&lt;P&gt;Appreciate your help&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saif&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>saifuddin</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>same day last year expression</title>
      <link>https://community.qlik.com/t5/QlikView/same-day-last-year-expression/m-p/1606788#M737103</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need some help with a problem I am trying to solve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raw data.png" style="width: 436px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16120iF74B6F38307A72D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="raw data.png" alt="raw data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to&lt;/P&gt;&lt;P&gt;--count distinct &lt;STRONG&gt;People_ID&lt;/STRONG&gt; for the selected year, selected &lt;STRONG&gt;Pay_period&lt;/STRONG&gt; and on the Max &lt;STRONG&gt;Number_day&lt;/STRONG&gt; which from user selection. (works fine)&amp;nbsp; =count({$&amp;lt; Number_Day={'$(=$(vMaxDay))'} &amp;gt;}(People_ID))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Count P&lt;STRONG&gt;eople_id&lt;/STRONG&gt; for the previous year of the selected year but for the same &lt;STRONG&gt;Number_Day&lt;/STRONG&gt; as currently selected year and disregarding &lt;STRONG&gt;Pay_Period&lt;/STRONG&gt; selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;For the above data in excel file. Below is the current selection.&lt;/P&gt;&lt;P&gt;=count({$&amp;lt; Number_Day={'$(=$(vMaxDay))'} &amp;gt;}(People_ID)) &amp;nbsp;Result 3&lt;/P&gt;&lt;P&gt;$vMaxDay=6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previous year from my calculation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt; Year={&lt;STRONG&gt;&lt;EM&gt;$(=Year-1)&lt;/EM&gt;&lt;/STRONG&gt;},pay_period=, Number_Day={'6'} &amp;gt;}DISTINCT(People_ID))&lt;/P&gt;&lt;P&gt;And Result of count should be 1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="current Year.png" style="width: 616px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16119i0963A48250180423/image-size/large?v=v2&amp;amp;px=999" role="button" title="current Year.png" alt="current Year.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added 6 manually. It’s basically&amp;nbsp; max &lt;STRONG&gt;Number_Day&lt;/STRONG&gt; of the current selection. &lt;STRONG&gt;Number_Day&lt;/STRONG&gt; has to be dynamic.&lt;/P&gt;&lt;P&gt;Appreciate your help&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saif&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/same-day-last-year-expression/m-p/1606788#M737103</guid>
      <dc:creator>saifuddin</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: same day last year expression</title>
      <link>https://community.qlik.com/t5/QlikView/same-day-last-year-expression/m-p/1609470#M737104</link>
      <description>&lt;P&gt;=count({&amp;lt; Year={$(vPrevYear)}, Pay_Period=, Number_Day={$(vMaxDay)} &amp;gt;}DISTINCT(People_ID))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 15:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/same-day-last-year-expression/m-p/1609470#M737104</guid>
      <dc:creator>Claudiu_Anghelescu</dc:creator>
      <dc:date>2019-08-05T15:14:49Z</dc:date>
    </item>
  </channel>
</rss>

