<?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: Restricting the data in line chart till the data availability in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763663#M271455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this by using set analysis.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'&amp;lt;=$(=Date(max(Date)-2))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Greeshma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2014 05:14:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-03T05:14:51Z</dc:date>
    <item>
      <title>Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763662#M271454</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 have a line chart which has one dimension which is date field and we have 4 expressions. In that two of the expressions which the data is from one table has data till current date and in the rest of the expressions in which the data is coming from another table have data only till CurrentDate-2. Hence 2 of this lines doesn't goes till end and other lines which has data will current date goes till date. So the users either want to restrict the lines till the availablity of data all the 4 lines insted of two lines till the end and other two lines till CurrentDate-2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhelp of this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 04:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763662#M271454</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-12-03T04:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763663#M271455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this by using set analysis.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'&amp;lt;=$(=Date(max(Date)-2))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Greeshma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 05:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763663#M271455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-03T05:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763664#M271456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greeshma,&lt;/P&gt;&lt;P&gt;Thanks for your response but in my case CurrentDate-2 will not be the case all the times. More over in our set analysis we already have From and To date range. So how can I use the expression that you have suggested. Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 07:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763664#M271456</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-12-03T07:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763665#M271457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create an alias field for date in both the tables and then define a variable as shown below&lt;/P&gt;&lt;P&gt;maxDate = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Use this variable in your set analysis expression. I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 07:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763665#M271457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-03T07:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763666#M271458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greeshma,&lt;BR /&gt;I am creating the alias date field in both the tables as per your request. Could you please guide how can I use the variable as per your suggestion in the below expression.&lt;/P&gt;&lt;P&gt;All the expressions is something like the below one. So I am not sure where should I add the variable that you have suggested as per your request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;&lt;BR /&gt;AS_OF_DT = {'&amp;gt;$(=date($(zMaxPeriod)-$(VDaysForTrend))) &amp;lt;=$(=date($(zMaxPeriod)))'}&lt;BR /&gt; &amp;gt;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales/1000000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 08:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763666#M271458</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-12-03T08:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763667#M271459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write your expression as follows&lt;/P&gt;&lt;P&gt;avg({&amp;lt;&lt;/P&gt;&lt;P&gt;AS_OF_DT = {'&amp;gt;$(=date($(maxDate)-$(VDaysForTrend))) &amp;lt;=$(=date($(maxDate)))'}&lt;/P&gt;&lt;P&gt; &amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales/1000000)&lt;/P&gt;&lt;P&gt;where maxDate =&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 11:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763667#M271459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-03T11:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763668#M271460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greeshma,&lt;/P&gt;&lt;P&gt;Do you want me to use the Where clause in the both the table Load Statement? Am I correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 12:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763668#M271460</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-12-03T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763669#M271461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a where clause. maxDate is a variable that needs to be created in the application. In the script you will only create aliases for the date field in both the tables. Then define the variable maxDate in the application. The fields Date1 and Date2 are the aliases created in the script. Once you have defined the variable give the set analysis expression for your line chart as&lt;/P&gt;&lt;P&gt;avg({&amp;lt;AS_OF_DT = {'&amp;gt;$(=date($(maxDate)-$(VDaysForTrend))) &amp;lt;=$(=date($(maxDate)))'} &amp;gt;}Sales/1000000)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 03:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763669#M271461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-04T03:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting the data in line chart till the data availability</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763670#M271462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greeshma,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Do you want to create the fields like below? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Date1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1 as MaxDate1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load Date2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date2 as MaxDate2&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 07:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-the-data-in-line-chart-till-the-data-availability/m-p/763670#M271462</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-12-04T07:22:20Z</dc:date>
    </item>
  </channel>
</rss>

