<?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: Compare two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-dates/m-p/1393423#M819871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually, your two questions require two completely different solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In order to compare this month to the previous month, you can implement a set of calendar flags and incorporate the condition about the current month-to-date versus previous month-to-date in the calculation of the flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In order to enable user selection of the month to compare to, you need to implement Alternate States and compare sets of data in two different alternate states. In this case, you'd probably need to include the condition about the current month in your calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( &amp;lt;current month condition&amp;gt;, &amp;lt;MTD calculation&amp;gt;, &amp;lt;full month calculation&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="https://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming to Boston, MA this October!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Aug 2017 15:43:20 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2017-08-13T15:43:20Z</dc:date>
    <item>
      <title>Compare two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates/m-p/1393422#M819870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to add another column that will compare the Sale$ amount for the maximum (selected) month with Previous Month&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;But the comparison will take into account the days of the selected month.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, if the user selects current month, 13.8 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;therefore the comparison will be from 1.8 till 13.8 and from 1.7 &lt;SPAN lang="en"&gt;till &lt;/SPAN&gt;13.7 &lt;SPAN lang="en"&gt;(13 days)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;also,&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;If the percentage is positive, meaning there is an increase in sales, the number will be colored in black and an arrow will appear next to it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;If there is a decrease &lt;SPAN lang="en"&gt;in the sale&lt;/SPAN&gt;, the data will be &lt;SPAN lang="en"&gt;colored in&lt;/SPAN&gt; red and a downward arrow appears.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as well,&lt;/P&gt;&lt;P&gt;Can I add an option, that the user will select the months for which he wants to perform the comparison.&lt;/P&gt;&lt;P&gt;For example, 6.2017 vs. 7.2017&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates/m-p/1393422#M819870</guid>
      <dc:creator>ttal7878</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates/m-p/1393423#M819871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually, your two questions require two completely different solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In order to compare this month to the previous month, you can implement a set of calendar flags and incorporate the condition about the current month-to-date versus previous month-to-date in the calculation of the flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In order to enable user selection of the month to compare to, you need to implement Alternate States and compare sets of data in two different alternate states. In this case, you'd probably need to include the condition about the current month in your calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( &amp;lt;current month condition&amp;gt;, &amp;lt;MTD calculation&amp;gt;, &amp;lt;full month calculation&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="https://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming to Boston, MA this October!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2017 15:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates/m-p/1393423#M819871</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-08-13T15:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates/m-p/1393424#M819872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tal Tal,&lt;/P&gt;&lt;P&gt;see Attachment.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio,&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173297_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2017 17:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates/m-p/1393424#M819872</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-08-13T17:55:03Z</dc:date>
    </item>
  </channel>
</rss>

