<?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: set analysis and dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820552#M1027732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have done some edit in the script,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load end,Year(end) as Year, Month(end) as Month;&lt;/P&gt;&lt;P&gt;Load Distinct end Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and that solve the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 12:49:15 GMT</pubDate>
    <dc:creator>anuradhaa</dc:creator>
    <dc:date>2015-03-03T12:49:15Z</dc:date>
    <item>
      <title>set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820548#M1027728</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 data set and it contains&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start date and enddate.&lt;/P&gt;&lt;P&gt;see below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; width: 48pt;" width="64"&gt;start&lt;/TD&gt;&lt;TD class="xl64" style="width: 48pt;" width="64"&gt;end&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl64" style="width: 48pt;" width="64"&gt;difference&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="height: 12.75pt;"&gt;1/12/2015&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1/25/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;13.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="height: 12.75pt;"&gt;1/20/2015&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2/16/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;27.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="height: 12.75pt;"&gt;1/6/2015&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;4/1/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;85.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="height: 12.75pt;"&gt;12/3/2014&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/16/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;44.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="height: 12.75pt;"&gt;12/3/2014&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2/16/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have year select box and month select box and used end date in those select boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user select January,I need to display average difference based on below logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select records that has start date and end date on January and get the difference&lt;/P&gt;&lt;P&gt;2. If the record has started before January and end on January get the start date as jan 1 and calculate the difference&lt;/P&gt;&lt;P&gt;3. If the record started on &lt;SPAN style="font-size: 13.3333330154419px;"&gt;January &lt;/SPAN&gt; and end after &lt;SPAN style="font-size: 13.3333330154419px;"&gt;January &lt;/SPAN&gt;, consider end date as jan 31 and calculate the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;difference&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;4. If record started before &lt;SPAN style="font-size: 13.3333330154419px;"&gt;January &lt;/SPAN&gt; and end after &lt;SPAN style="font-size: 13.3333330154419px;"&gt;January &lt;/SPAN&gt;, consider start date as jan 1 and end date as jan 30 and calculate the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;difference&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will depend on the selected month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so above table become like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; width: 48pt;" width="64"&gt;start&lt;/TD&gt;&lt;TD class="xl66" style="width: 48pt;" width="64"&gt;end&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="width: 48pt;" width="64"&gt;difference&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl65" height="17" style="height: 12.75pt;"&gt;1/12/2015&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;1/25/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;13.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl65" height="17" style="height: 12.75pt;"&gt;1/20/2015&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1/31/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;11.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl65" height="17" style="height: 12.75pt;"&gt;1/6/2015&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;1/31/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;25.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl65" height="17" style="height: 12.75pt;"&gt;1/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1/16/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;15.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl65" height="17" style="height: 12.75pt;"&gt;1/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1/31/2015&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;30.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible and any one has and idea how to do this in scrip or UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 09:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820548#M1027728</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-03-03T09:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820549#M1027729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below Script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; RowNo() as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(start,'M/D/YYYY')) as start,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(end,'M/D/YYYY')) as end,&lt;/P&gt;&lt;P&gt;&amp;nbsp; difference&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; start, end, difference&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1/12/2015, 1/25/2015, 13.00&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1/20/2015, 2/16/2015, 27.00&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1/6/2015, 4/1/2015, 85.00&lt;/P&gt;&lt;P&gt;&amp;nbsp; 12/3/2014, 1/16/2015, 44.00&lt;/P&gt;&lt;P&gt;&amp;nbsp; 12/3/2014, 2/16/2015, 75&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load Year(end) as Year, Month(end) as Month;&lt;/P&gt;&lt;P&gt;Load Distinct end Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a Straight Table&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Calculated Dimension&lt;/P&gt;&lt;P&gt;=Aggr(IF(end &amp;gt;= MakeDate(Year,Month), ID),ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Start&lt;/P&gt;&lt;P&gt;=IF(start &amp;lt; MakeDate(Year,Month), MakeDate(Year,Month), start)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For End&lt;/P&gt;&lt;P&gt;=IF(end &amp;gt; MonthEnd(MakeDate(Year,Month)), MonthEnd(MakeDate(Year,Month)), end)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Difference&lt;/P&gt;&lt;P&gt;Floor(Column(2)) - Floor(Column(1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 11:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820549#M1027729</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-03T11:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820550#M1027730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply and help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grate work. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can this fix to display data when there is no selection made and multiple month selections?&lt;/P&gt;&lt;P&gt;also only the year selection &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 12:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820550#M1027730</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-03-03T12:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820551#M1027731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Use Max(Month) instead of Month and Max(Year) instead of Year&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 12:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820551#M1027731</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-03T12:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820552#M1027732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have done some edit in the script,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load end,Year(end) as Year, Month(end) as Month;&lt;/P&gt;&lt;P&gt;Load Distinct end Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and that solve the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 12:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820552#M1027732</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-03-03T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820553#M1027733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one more thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we display month in the dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 12:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820553#M1027733</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-03-03T12:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820554#M1027734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls find attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;their want to display differance in bar chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 13:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820554#M1027734</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-03-03T13:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820555#M1027735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some more information on your requirements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 13:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820555#M1027735</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-03T13:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820556#M1027736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know it is difficult to do my requirement in qlikview.&lt;/P&gt;&lt;P&gt;but i'm sure we can do below thing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls find attached qvw above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In main tab you can see some records don't have out date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i need is to assign values for those recoards based on select month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select January it needs to have jan30&lt;/P&gt;&lt;P&gt;if February it should have feb 9&lt;/P&gt;&lt;P&gt;if no selection it needs to have max(date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 13:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-dates/m-p/820556#M1027736</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-03-03T13:25:45Z</dc:date>
    </item>
  </channel>
</rss>

