<?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 date ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721788#M455569</link>
    <description>&lt;P&gt;Hi Vamsee,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've created an alternate state 'CompareDate' and created a second WE_DATE listbox with the new alternate state, and an expression sum({CompareDate}Sales),&amp;nbsp; however I need the remaining listbox filters with the default state to also apply to the same column. Hope that makes sense&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2020 14:33:07 GMT</pubDate>
    <dc:creator>scott_brown</dc:creator>
    <dc:date>2020-06-24T14:33:07Z</dc:date>
    <item>
      <title>Compare two date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721379#M455567</link>
      <description>&lt;P&gt;I am trying to find a way to compare two different date ranges. For example, i need to have two columns in the same table for sum(sales), one containing DateRange1 and the other containing DateRange2, with the user being able to select which date ranges they want to compare. My date field is WeekEnding date, so i have one sales value for each week ending date.&lt;/P&gt;&lt;P&gt;I've created an alternate state 'CompareDate' and created a second WE_DATE listbox with the new alternate state, and an expression sum({CompareDate}Sales),&amp;nbsp; however I need the remaining listbox filters to also apply to the same column.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721379#M455567</guid>
      <dc:creator>scott_brown</dc:creator>
      <dc:date>2024-11-16T00:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721418#M455568</link>
      <description>&lt;P&gt;If I got your question right, I would suggest you use&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm" target="_self"&gt;Alternate States&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Let's say you create two list boxes for [WeekEnding Date], one in Time1, other in Time2.&lt;/P&gt;&lt;P&gt;Create a chart with two expressions&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Sum({Time1}Sales)&lt;/P&gt;&lt;P&gt;2. Sum({Time2}Sales)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also refer&amp;nbsp;&lt;A href="http://www.qlikfix.com/2014/08/12/alternate-states/" target="_self"&gt;Qlikfix Alternate-states&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 19:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721418#M455568</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-23T19:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721788#M455569</link>
      <description>&lt;P&gt;Hi Vamsee,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've created an alternate state 'CompareDate' and created a second WE_DATE listbox with the new alternate state, and an expression sum({CompareDate}Sales),&amp;nbsp; however I need the remaining listbox filters with the default state to also apply to the same column. Hope that makes sense&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 14:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721788#M455569</guid>
      <dc:creator>scott_brown</dc:creator>
      <dc:date>2020-06-24T14:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721854#M455570</link>
      <description>&lt;P&gt;UPDATE: I ended up adding WE_DATE2 to the load script, taking values from the resident table where WE_DATE resides and creating a column with the expression:&amp;nbsp;sum({$&amp;lt;WE_DATE=P(WE_Date2)&amp;gt;}Sales).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 17:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-date-ranges/m-p/1721854#M455570</guid>
      <dc:creator>scott_brown</dc:creator>
      <dc:date>2020-06-24T17:54:27Z</dc:date>
    </item>
  </channel>
</rss>

