<?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: Different values depending on different date periods in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932826#M1219033</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Add a valid flag in the script and then use it in set analysis:&lt;/P&gt;
&lt;P&gt;DATA:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; * Inline [&lt;BR /&gt;FromDate, Value&lt;BR /&gt;2025-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 224&lt;BR /&gt;2024-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 403&lt;BR /&gt;2023-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 582&lt;BR /&gt;2022-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 761&lt;BR /&gt;2021-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 940&lt;BR /&gt;2020-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1120&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;ValigFlag:&lt;BR /&gt;Left Join (DATA)&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 AS ValidFlag&lt;BR /&gt;Where NumOfDate = 1&lt;BR /&gt;;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(FromDate) AS NumOfDate&lt;BR /&gt;Resident DATA&lt;BR /&gt;Where FromDate &amp;lt; Today()&lt;BR /&gt;Order By FromDate DESC;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;ValidFlag = {1}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_0-1652942941272.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79805i367EC119E01C4081/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_0-1652942941272.png" alt="vchuprina_0-1652942941272.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 06:46:19 GMT</pubDate>
    <dc:creator>vchuprina</dc:creator>
    <dc:date>2022-05-19T06:46:19Z</dc:date>
    <item>
      <title>Different values depending on different date periods</title>
      <link>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932771#M1219029</link>
      <description>&lt;P&gt;Hi best community!&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="sv" data-phrase-index="0" data-number-of-phrases="2"&gt;&lt;SPAN class="Q4iAWc"&gt;I have a table that contains a value from a date to a date.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="sv" data-phrase-index="1" data-number-of-phrases="2"&gt;&lt;SPAN class="Q4iAWc"&gt;I just want to show that value for the current period.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE width="271"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="160.45px" height="25px"&gt;FromDate&lt;/TD&gt;
&lt;TD width="109.55px" height="25px"&gt;Value&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="160.45px" height="25px"&gt;2025-08-03&lt;/TD&gt;
&lt;TD width="109.55px" height="25px"&gt;224&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="160.45px" height="25px"&gt;2024-08-03&lt;/TD&gt;
&lt;TD width="109.55px" height="25px"&gt;403,2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="160.45px" height="28px"&gt;2023-08-03&lt;/TD&gt;
&lt;TD width="109.55px" height="28px"&gt;582,4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="160.45px" height="25px"&gt;2022-08-03&lt;/TD&gt;
&lt;TD width="109.55px" height="25px"&gt;761,6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="160.45px" height="25px"&gt;2021-08-03&lt;/TD&gt;
&lt;TD width="109.55px" height="25px"&gt;940,8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="160.45px" height="25px"&gt;2020-08-03&lt;/TD&gt;
&lt;TD width="109.55px" height="25px"&gt;1120&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in this case i just wanna show&lt;STRONG&gt; 940,8&lt;/STRONG&gt; (FromDate 2021-08-03), and when the current date are &amp;gt;= 2022-08-03 i just want to show the value 761,6 and so on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any ideas? &lt;BR /&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="sv" data-phrase-index="0" data-number-of-phrases="1"&gt;&lt;SPAN class="Q4iAWc"&gt;Would it be best if I could get it in the script right away?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Br&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 04:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932771#M1219029</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2022-05-19T04:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Different values depending on different date periods</title>
      <link>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932826#M1219033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Add a valid flag in the script and then use it in set analysis:&lt;/P&gt;
&lt;P&gt;DATA:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; * Inline [&lt;BR /&gt;FromDate, Value&lt;BR /&gt;2025-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 224&lt;BR /&gt;2024-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 403&lt;BR /&gt;2023-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 582&lt;BR /&gt;2022-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 761&lt;BR /&gt;2021-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 940&lt;BR /&gt;2020-08-03,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1120&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;ValigFlag:&lt;BR /&gt;Left Join (DATA)&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 AS ValidFlag&lt;BR /&gt;Where NumOfDate = 1&lt;BR /&gt;;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(FromDate) AS NumOfDate&lt;BR /&gt;Resident DATA&lt;BR /&gt;Where FromDate &amp;lt; Today()&lt;BR /&gt;Order By FromDate DESC;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;ValidFlag = {1}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_0-1652942941272.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79805i367EC119E01C4081/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_0-1652942941272.png" alt="vchuprina_0-1652942941272.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 06:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932826#M1219033</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-05-19T06:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Different values depending on different date periods</title>
      <link>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932839#M1219036</link>
      <description>&lt;P&gt;Thanx, it's work when i have one value (i added Asset below), how can i se if there is more data in same table.&lt;BR /&gt;I have added Asset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Asset,FromDate, Value&lt;BR /&gt;111,2025-08-03, 224&lt;BR /&gt;111,2024-08-03, 403&lt;BR /&gt;111,2023-08-03, 582&lt;BR /&gt;111,2022-08-03, 761&lt;BR /&gt;111,2021-08-03, 940&lt;BR /&gt;111,2020-08-03, 1120&lt;BR /&gt;222,2019-08-03, 345&lt;BR /&gt;222,2020-08-03, 167&lt;BR /&gt;222,2024-08-03, 174&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;ValigFlag:&lt;BR /&gt;Left Join (DATA)&lt;BR /&gt;LOAD&lt;BR /&gt;FromDate,&lt;BR /&gt;1 AS ValidFlag&lt;BR /&gt;Where NumOfDate = 1&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;FromDate,&lt;BR /&gt;AutoNumber(FromDate) AS NumOfDate&lt;BR /&gt;Resident DATA&lt;BR /&gt;Where FromDate &amp;lt; Today()&lt;BR /&gt;Order By FromDate DESC;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 07:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932839#M1219036</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2022-05-19T07:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Different values depending on different date periods</title>
      <link>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932869#M1219037</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this, it returns separate Valid date for each asset&lt;/P&gt;
&lt;P&gt;DATA:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; * Inline [&lt;BR /&gt;Asset,FromDate, Value&lt;BR /&gt;111,2025-08-03, 224&lt;BR /&gt;111,2024-08-03, 403&lt;BR /&gt;111,2023-08-03, 582&lt;BR /&gt;111,2022-08-03, 761&lt;BR /&gt;111,2021-08-03, 940&lt;BR /&gt;111,2020-08-03, 1120&lt;BR /&gt;222,2019-08-03, 345&lt;BR /&gt;222,2020-08-03, 167&lt;BR /&gt;222,2024-08-03, 174&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;ValigFlag:&lt;BR /&gt;Left Join (DATA)&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Asset,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 AS ValidFlag&lt;BR /&gt;Where NumOfDate = 1&lt;BR /&gt;;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Asset,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(FromDate, Asset) AS NumOfDate&lt;BR /&gt;Resident DATA&lt;BR /&gt;Where FromDate &amp;lt; Today()&lt;BR /&gt;Order By Asset, FromDate DESC;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_0-1652946616934.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79811i38FD6B213CBC7F0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_0-1652946616934.png" alt="vchuprina_0-1652946616934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 07:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932869#M1219037</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-05-19T07:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Different values depending on different date periods</title>
      <link>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932873#M1219038</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47436"&gt;@vchuprina&lt;/a&gt; , you are a hero &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 08:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932873#M1219038</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2022-05-19T08:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Different values depending on different date periods</title>
      <link>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932874#M1219039</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6307"&gt;@johnan&lt;/a&gt;&amp;nbsp;, welcome&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 08:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-values-depending-on-different-date-periods/m-p/1932874#M1219039</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-05-19T08:02:38Z</dc:date>
    </item>
  </channel>
</rss>

