<?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 How to make date variable work differently for two different charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-date-variable-work-differently-for-two-different/m-p/15056#M783048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; when i Select a date range(From- To) in selection of a calender for Current year ,the data should be displayed in chart corresponding to Current Year(Where I have maintained state for Current Year chart&amp;nbsp; , simillaly when I select Date&amp;nbsp; range( From- to)for previous year (where i have maintained state as B)so i want&amp;nbsp; it should only work for Previous Year not for current year chart. I have maintained state but its not functioning properly. &lt;/P&gt;&lt;P&gt;Variable Vstart and Vend should work differently for two different charts.&lt;/P&gt;&lt;P&gt;Please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following Are the expressions used for current Year &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(count({ stateA&amp;lt;Sold_Date = {"&amp;gt;=$(vstart)&amp;lt;=$(vend)"} &amp;gt;}DISTINCT SAPCode),'#,##0.0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the expression for Previous Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;"&gt;=num(count({ stateB&amp;lt;Sold_Date = {"&amp;gt;=$(vstart)&amp;lt;=$(vend)"} &amp;gt;}DISTINCT SAPCode),'#,##0.0')&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;"&gt;Regards&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;"&gt;Saksham&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to make date variable work differently for two different charts</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-date-variable-work-differently-for-two-different/m-p/15056#M783048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; when i Select a date range(From- To) in selection of a calender for Current year ,the data should be displayed in chart corresponding to Current Year(Where I have maintained state for Current Year chart&amp;nbsp; , simillaly when I select Date&amp;nbsp; range( From- to)for previous year (where i have maintained state as B)so i want&amp;nbsp; it should only work for Previous Year not for current year chart. I have maintained state but its not functioning properly. &lt;/P&gt;&lt;P&gt;Variable Vstart and Vend should work differently for two different charts.&lt;/P&gt;&lt;P&gt;Please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following Are the expressions used for current Year &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(count({ stateA&amp;lt;Sold_Date = {"&amp;gt;=$(vstart)&amp;lt;=$(vend)"} &amp;gt;}DISTINCT SAPCode),'#,##0.0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the expression for Previous Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;"&gt;=num(count({ stateB&amp;lt;Sold_Date = {"&amp;gt;=$(vstart)&amp;lt;=$(vend)"} &amp;gt;}DISTINCT SAPCode),'#,##0.0')&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;"&gt;Regards&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;"&gt;Saksham&lt;/DIV&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-make-date-variable-work-differently-for-two-different/m-p/15056#M783048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

