<?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 Variable creation for past period in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-creation-for-past-period/m-p/1581770#M42511</link>
    <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I have a Bar graph where I have to show historical data for this I was planning to create 2 variables which show past period start date and end date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date range from which the user can pick a start and end date to see the result. Below is the screenshot of my requirement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 818px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12280iC718BDCC0C753A87/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for current trend line chart I am using below mentioned formula&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num(Sum({$&amp;lt;[Posting Date]={"&amp;gt;=$(=vCYStartDate)&amp;lt;=$(=vCYEndDate)"} &amp;gt;} Revenue),'####.##')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Same formulas I am planning to use for historic trend but This 2 varialbes wont work.&lt;/P&gt;&lt;P&gt;CYStartDate - hard coded -&amp;nbsp;01/04/2018&lt;/P&gt;&lt;P&gt;CY end date -&amp;nbsp;31/12/2020&lt;/P&gt;&lt;P&gt;Request you to please help me with the formulas for past period variables.&lt;/P&gt;&lt;P&gt;I am trying with below but isnt working&lt;/P&gt;&lt;P&gt;VPyend date =date(addyears(max([Posting Date]), -1), 'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;when I try calling this variable in text and object but its not working.&lt;/P&gt;&lt;P&gt;vPYstart date -&amp;nbsp;=date(MakeDate( subfield(vPYEndDate,'/',3),subfield(vCYStartDate,'/',2)),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;Request you to please suggest...&lt;/P&gt;</description>
    <pubDate>Sat, 18 May 2019 04:16:31 GMT</pubDate>
    <dc:creator>deepika_gohil</dc:creator>
    <dc:date>2019-05-18T04:16:31Z</dc:date>
    <item>
      <title>Variable creation for past period</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-creation-for-past-period/m-p/1581771#M42503</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a Bar graph where I have to show historical data for this I was planning to create 2 variables which show past period start date and end date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date range from which the user can pick a start and end date to see the result. Below is the screenshot of my requirement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 818px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12280iC718BDCC0C753A87/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for current trend line chart I am using below mentioned formula&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num(Sum({$&amp;lt;[Posting Date]={"&amp;gt;=$(=vCYStartDate)&amp;lt;=$(=vCYEndDate)"} &amp;gt;} Revenue),'####.##')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Same formulas I am planning to use for historic trend but This 2 varialbes wont work.&lt;/P&gt;&lt;P&gt;CYStartDate - hard coded -&amp;nbsp;01/04/2018&lt;/P&gt;&lt;P&gt;CY end date -&amp;nbsp;31/12/2020&lt;/P&gt;&lt;P&gt;Request you to please help me with the formulas for past period variables.&lt;/P&gt;&lt;P&gt;I am trying with below but isnt working&lt;/P&gt;&lt;P&gt;VPyend date =date(addyears(max([Posting Date]), -1), 'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;when I try calling this variable in text and object but its not working.&lt;/P&gt;&lt;P&gt;vPYstart date -&amp;nbsp;=date(MakeDate( subfield(vPYEndDate,'/',3),subfield(vCYStartDate,'/',2)),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;Request you to please suggest...&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-creation-for-past-period/m-p/1581771#M42503</guid>
      <dc:creator>deepika_gohil</dc:creator>
      <dc:date>2024-11-16T05:47:59Z</dc:date>
    </item>
    <item>
      <title>Variable creation for past period</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-creation-for-past-period/m-p/1581770#M42511</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I have a Bar graph where I have to show historical data for this I was planning to create 2 variables which show past period start date and end date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date range from which the user can pick a start and end date to see the result. Below is the screenshot of my requirement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 818px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12280iC718BDCC0C753A87/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for current trend line chart I am using below mentioned formula&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num(Sum({$&amp;lt;[Posting Date]={"&amp;gt;=$(=vCYStartDate)&amp;lt;=$(=vCYEndDate)"} &amp;gt;} Revenue),'####.##')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Same formulas I am planning to use for historic trend but This 2 varialbes wont work.&lt;/P&gt;&lt;P&gt;CYStartDate - hard coded -&amp;nbsp;01/04/2018&lt;/P&gt;&lt;P&gt;CY end date -&amp;nbsp;31/12/2020&lt;/P&gt;&lt;P&gt;Request you to please help me with the formulas for past period variables.&lt;/P&gt;&lt;P&gt;I am trying with below but isnt working&lt;/P&gt;&lt;P&gt;VPyend date =date(addyears(max([Posting Date]), -1), 'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;when I try calling this variable in text and object but its not working.&lt;/P&gt;&lt;P&gt;vPYstart date -&amp;nbsp;=date(MakeDate( subfield(vPYEndDate,'/',3),subfield(vCYStartDate,'/',2)),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;Request you to please suggest...&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2019 04:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-creation-for-past-period/m-p/1581770#M42511</guid>
      <dc:creator>deepika_gohil</dc:creator>
      <dc:date>2019-05-18T04:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable creation for past period</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-creation-for-past-period/m-p/1581885#M42526</link>
      <description>&lt;P&gt;If u want some person need help You can always tag them using&amp;nbsp;@ option. This will notify to user.&lt;/P&gt;&lt;P&gt;For now, I've done for you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, What r u trying to achieve here using this expression?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num(Sum({$&amp;lt;[Posting Date]={"&amp;gt;=$(=vCYStartDate)&amp;lt;=$(=vCYEndDate)"} &amp;gt;} Revenue),'####.##')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Those variables not working? If so, Can you simplify like this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num(Sum({$&amp;lt;[Posting Date]={"&amp;gt;=$(=Date(AddYears(vCYStartDate,-1)),'Same as Posting Date')&amp;lt;=$(=Date(AddYears(vCYEndDate,-1)),'Same as Posting Date')"} &amp;gt;} Revenue),'####.##')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2019 15:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-creation-for-past-period/m-p/1581885#M42526</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-05-19T15:14:15Z</dc:date>
    </item>
  </channel>
</rss>

