<?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: How to use get_current_feild function for selection of date range in calender in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455347#M794987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have declared variable as vstart=getcurrentselection(sold_date) &lt;/P&gt;&lt;P&gt;is this correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Dec 2017 07:31:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-27T07:31:39Z</dc:date>
    <item>
      <title>How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455342#M794982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want if I select date range from 1st jan 2014 till 2nd feb 2016 then the data 2016 should become current year and date 2014 should become previous year in chart so for that how to declare variable vstart (starting date in calender) and variable vend(ending date in calender)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also what will be the corresponding expressions for both previous year and current year sales in charts &lt;IMG alt="finalsales.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188209_finalsales.png" style="height: 163px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;i have used these expressions&amp;nbsp; for current year and previous year&lt;/P&gt;&lt;P&gt;previous year&lt;/P&gt;&lt;P&gt;=num(sum(if(Sold_Date &amp;gt;=vstart and Sold_Date&amp;lt;= vend, [inv value]/Sales_INR_Unit)),'#,##0.0')&lt;/P&gt;&lt;P&gt;current year&lt;/P&gt;&lt;P&gt;=num(sum(if(Sold_Date &amp;gt;=vstart and Sold_Date&amp;lt;= vend ,[inv value]/Sales_INR_Unit)),'#,##0.0')&lt;/P&gt;&lt;P&gt;but both previous year and current year are giving same values&lt;/P&gt;&lt;P&gt;so please suggest the appropriate expressions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455342#M794982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455343#M794983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum(if(Sold_Date &amp;gt;=&lt;STRONG&gt;AddYears(vstart,1)&lt;/STRONG&gt; and Sold_Date&amp;lt;= vend, [inv value]/Sales_INR_Unit)),'#,##0.0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 07:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455343#M794983</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-27T07:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455344#M794984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this expression used for previous year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 07:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455344#M794984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T07:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455345#M794985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 07:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455345#M794985</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-27T07:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455346#M794986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about current year? that wil remain same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 07:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455346#M794986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T07:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455347#M794987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have declared variable as vstart=getcurrentselection(sold_date) &lt;/P&gt;&lt;P&gt;is this correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 07:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455347#M794987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T07:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455348#M794988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you shown in line is correct to me? Are you facing any challenge. If you want to test them use Text object to understand how and what it returned?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 09:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455348#M794988</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-27T09:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455349#M794989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i am facing one problem if i am using date range from 1st jan 2017 to 15th jan 2017 the data in previous year is displayed as o and current year has got some sales.&lt;/P&gt;&lt;P&gt;but i want on selecting date 1st jan 2017 to 15th jan 2017 under previous year the value should not be displayed as 0 rather it should have value one year prior to current year &lt;IMG alt="finalsales.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188234_finalsales.png" style="height: 185px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 09:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455349#M794989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T09:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455350#M794990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for Prev year and show the same image?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(sum(if(Sold_Date &amp;gt;=AddYears(vstart, -1) and Sold_Date&amp;lt;= AddYears(vend, -1), [inv value]/Sales_INR_Unit)),'#,##0.0')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 09:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455350#M794990</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-27T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use get_current_feild function for selection of date range in calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455351#M794991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you got hat you need, So i would request you to do your job to close this thread by flag "Correct Answer" for next lander users can easy understand the same situation.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 11:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-get-current-feild-function-for-selection-of-date/m-p/1455351#M794991</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-27T11:46:23Z</dc:date>
    </item>
  </channel>
</rss>

