<?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 calculations using Date filters in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-calculations-using-Date-filters/m-p/117264#M8155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide a sample XL data with expected results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2018 12:58:31 GMT</pubDate>
    <dc:creator>MK9885</dc:creator>
    <dc:date>2018-09-28T12:58:31Z</dc:date>
    <item>
      <title>Dynamic calculations using Date filters</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-calculations-using-Date-filters/m-p/117263#M8154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some guidance on how to get change metrics from below data set&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="214642" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214642_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Scenario: In the data set, We store Projects (ID) with its current week's phase (Discovery, Alpha,Beta,Live and Backlog) into Database. Project phases may change each week from one to another. I want to calculate this change and show it on Dashboard as below by comparing current vs previous week. I can select any 2 weeks from data using 2 filter pane (Island table)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expected Results&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Projects= 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Project Moved = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Project Failed = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition:&lt;/P&gt;&lt;P&gt;New -&amp;nbsp; New projects added this week (e.g. 7 &amp;amp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Moved -&amp;nbsp; Projects moved from one phase to another from previous week (e.g. 1 &amp;amp; 5)&lt;/P&gt;&lt;P&gt;Failed - Projects which are in Success status in previous week but failed into current week ( e.g. 3 &amp;amp; 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to calculate the New metric using below formula but facing issues while calculating Moved &amp;amp; Failed metrics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPrev_Week =If(GetFieldSelection([Prev Period]))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Filter Pane 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vCurr_Week =If(&lt;SPAN style="font-size: 13.3333px;"&gt;GetFieldSelection&lt;/SPAN&gt;([Current Period]))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Filter Pane 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New =&amp;nbsp; Count({&amp;lt;TIME ={"$(&lt;SPAN style="font-size: 13.3333px;"&gt;vPrev_Week &lt;/SPAN&gt;)"} &amp;gt; + &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;TIME ={"$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vCurr_Week &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)"}&lt;/SPAN&gt;&amp;gt; } Distinct ID)&amp;nbsp; - Count({&amp;lt;TIME={"$(&lt;SPAN style="font-size: 13.3333px;"&gt;vPrev_Week &lt;/SPAN&gt;)"}&amp;gt;}Distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moved = ?&lt;/P&gt;&lt;P&gt;Failed = ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers/help will be highly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 20:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-calculations-using-Date-filters/m-p/117263#M8154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-27T20:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculations using Date filters</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-calculations-using-Date-filters/m-p/117264#M8155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide a sample XL data with expected results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-calculations-using-Date-filters/m-p/117264#M8155</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2018-09-28T12:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic calculations using Date filters</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-calculations-using-Date-filters/m-p/117265#M8156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;A href="https://community.qlik.com/qlik-users/267643"&gt;shahbazkhan&lt;/A&gt;‌ &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source Data (Sample): &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214695_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;New Projects= 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Project Moved = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Project Failed = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 13:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-calculations-using-Date-filters/m-p/117265#M8156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-28T13:27:49Z</dc:date>
    </item>
  </channel>
</rss>

