<?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: Dynamic Date Variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-Date-Variable/m-p/1815947#M66767</link>
    <description>&lt;P&gt;Not a variable, but you could use 2 filter panes with alternate states.&amp;nbsp; Create alternate state SDATE for the starting date filter pane and alternate state EDATE for the ending date filter pane.&amp;nbsp; Then use a formula like this&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;date = {"=$(=Max({EDATE}[date]))"}&amp;gt;Amount) - sum({$&amp;lt;date = {"=$(=Min({SDATE}[date]))"}&amp;gt;Amount)&lt;/P&gt;&lt;P&gt;[date] would be from your calendar.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2021 19:29:00 GMT</pubDate>
    <dc:creator>jwjackso</dc:creator>
    <dc:date>2021-06-17T19:29:00Z</dc:date>
    <item>
      <title>Dynamic Date Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Date-Variable/m-p/1815933#M66766</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;Trying to create a dynamic date variable for the user to track changes over time. I cannot show the data as it is embargoed and cannot share.&lt;/P&gt;&lt;P&gt;The goal would be for the user to set a start date and and end date. In the kpi, it would be written as such:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;date = {vEndDate}&amp;gt;Amount) -&amp;nbsp;sum({$&amp;lt;date = {vStartDate}&amp;gt;Amount). But I see no ability to create this type of variable. Is this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Date-Variable/m-p/1815933#M66766</guid>
      <dc:creator>eganba07</dc:creator>
      <dc:date>2021-11-30T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Date-Variable/m-p/1815947#M66767</link>
      <description>&lt;P&gt;Not a variable, but you could use 2 filter panes with alternate states.&amp;nbsp; Create alternate state SDATE for the starting date filter pane and alternate state EDATE for the ending date filter pane.&amp;nbsp; Then use a formula like this&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;date = {"=$(=Max({EDATE}[date]))"}&amp;gt;Amount) - sum({$&amp;lt;date = {"=$(=Min({SDATE}[date]))"}&amp;gt;Amount)&lt;/P&gt;&lt;P&gt;[date] would be from your calendar.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 19:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Date-Variable/m-p/1815947#M66767</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2021-06-17T19:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Date-Variable/m-p/1817964#M67008</link>
      <description>&lt;P&gt;So I figured it out.&lt;/P&gt;&lt;P&gt;The process is actually not too difficult.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: Create two blank variables. For mine I created vStartDate and vEndDate.&lt;/P&gt;&lt;P&gt;2) Create two qsVariable extensions.&lt;/P&gt;&lt;P&gt;3) Under 'Variable' enter in one of your blank variables ie: vStartDate and for 'Show as' select 'Drop down.'&lt;/P&gt;&lt;P&gt;4)Under the 'Values' selection select 'Dynamic' for 'Fixed or Dynamic Values'&lt;/P&gt;&lt;P&gt;5) In the expression for 'Dynamic Values' use:&amp;nbsp;&lt;/P&gt;&lt;P&gt;='$(=Concat(distinct date_received_str,'|'))' with 'date_received_str' as your date field whatever it may be.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then use the variable in your kpis or charts. For instance, for my KPI showing initial amount I used:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;date_received_str={"$(vStartDate)"}&amp;gt;}amount) and it worked perfectly.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 16:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Date-Variable/m-p/1817964#M67008</guid>
      <dc:creator>eganba07</dc:creator>
      <dc:date>2021-06-25T16:37:56Z</dc:date>
    </item>
  </channel>
</rss>

