<?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 Comparing two date ranges in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-two-date-ranges/m-p/1319690#M28473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi evrebody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to implement a table which compare two ranges of dates previously selected with a date range picker. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have a tab with those informations : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" height="36" src="https://community.qlik.com/legacyfs/online/167403_Screenshot_1.png" style="height: 36px; width: 744px;" width="744" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Sales P-1 and Sales P are defined with a simple combo box filter (YTD, 0-12/12-24, etc.) with the held of a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;num(Sum({&amp;lt;$($(vLVarP1)),$(vSetSales)&amp;gt;}[$(vFieldCurrency)]),'$(vNumFormatKPI)')&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is my variable used for Sales P. &lt;/P&gt;&lt;P&gt;The vSetSales is my set analysis with the sum of my sales, then the currency etc. &lt;/P&gt;&lt;P&gt;For the period, the vLVarP1 is important. It's this one that is linked to another set of variables, dynamically changed with the combo box selection. For instance, if the 0-12/12-24 is selected the value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Fiscal_Year,PeriodID_Now={"&amp;gt;$(=$(vMaxMOPeriodIDNow)-24)&amp;lt;=$(=$(vMaxMOPeriodIDNow)-12)"},FiscalQuarter,Date,Year,Month,Period,Fiscal_Month,FiscalNMonth,FiscalPeriod,Date_Now,Date_Now_Name,Date_Name,Fiscal_Year_Text,Cal_Period_Now&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is set to the variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I would to change this logic, and be able to chose with two date range pickers the two periods that I compare. &lt;/P&gt;&lt;P&gt;Do you think It's possible and can someone please explain me how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 08:11:12 GMT</pubDate>
    <dc:creator>benoitgochel</dc:creator>
    <dc:date>2017-06-20T08:11:12Z</dc:date>
    <item>
      <title>Comparing two date ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-date-ranges/m-p/1319690#M28473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi evrebody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to implement a table which compare two ranges of dates previously selected with a date range picker. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have a tab with those informations : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" height="36" src="https://community.qlik.com/legacyfs/online/167403_Screenshot_1.png" style="height: 36px; width: 744px;" width="744" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Sales P-1 and Sales P are defined with a simple combo box filter (YTD, 0-12/12-24, etc.) with the held of a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;num(Sum({&amp;lt;$($(vLVarP1)),$(vSetSales)&amp;gt;}[$(vFieldCurrency)]),'$(vNumFormatKPI)')&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is my variable used for Sales P. &lt;/P&gt;&lt;P&gt;The vSetSales is my set analysis with the sum of my sales, then the currency etc. &lt;/P&gt;&lt;P&gt;For the period, the vLVarP1 is important. It's this one that is linked to another set of variables, dynamically changed with the combo box selection. For instance, if the 0-12/12-24 is selected the value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Fiscal_Year,PeriodID_Now={"&amp;gt;$(=$(vMaxMOPeriodIDNow)-24)&amp;lt;=$(=$(vMaxMOPeriodIDNow)-12)"},FiscalQuarter,Date,Year,Month,Period,Fiscal_Month,FiscalNMonth,FiscalPeriod,Date_Now,Date_Now_Name,Date_Name,Fiscal_Year_Text,Cal_Period_Now&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is set to the variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I would to change this logic, and be able to chose with two date range pickers the two periods that I compare. &lt;/P&gt;&lt;P&gt;Do you think It's possible and can someone please explain me how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 08:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-date-ranges/m-p/1319690#M28473</guid>
      <dc:creator>benoitgochel</dc:creator>
      <dc:date>2017-06-20T08:11:12Z</dc:date>
    </item>
  </channel>
</rss>

