<?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: Days in selected months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Days-in-selected-months/m-p/387688#M485047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Gysbert. I've created a table of 'days in months' for all the months and years I need which is independent of my dataset and joined it in the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Days.monthName = {"$(vSelectedMonths)"}, Days.yearNumber={'$(=Only(Year))'}&amp;gt;} Days.numDays)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top man!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 08:52:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-21T08:52:47Z</dc:date>
    <item>
      <title>Days in selected months</title>
      <link>https://community.qlik.com/t5/QlikView/Days-in-selected-months/m-p/387686#M485045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello helpers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a month selector from which many can be selected and a year selector from which only one can be picked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For any given selection of year and month(s), I'd like to have the number of days for that selection. So I might select February, July and October 2012 and therefore want the number of days to be 29 + 31 + 31 = 91 days. This isn't a standard date diff as I don't want the period between selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Geoff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 15:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-in-selected-months/m-p/387686#M485045</guid>
      <dc:creator />
      <dc:date>2013-05-20T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Days in selected months</title>
      <link>https://community.qlik.com/t5/QlikView/Days-in-selected-months/m-p/387687#M485046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should probably just fix this in the script by adding a table with the numbers of days per month. If you have a date field too you could simply do a count of the date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all you have is a Year and Month field you can try:&lt;/P&gt;&lt;P&gt;=ceil($(=concat(Monthend(MakeDate(Year,aggr(Month,Month),1))-Monthstart(MakeDate(Year,aggr(Month,Month),1)) ,'+')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 16:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-in-selected-months/m-p/387687#M485046</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-20T16:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Days in selected months</title>
      <link>https://community.qlik.com/t5/QlikView/Days-in-selected-months/m-p/387688#M485047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Gysbert. I've created a table of 'days in months' for all the months and years I need which is independent of my dataset and joined it in the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Days.monthName = {"$(vSelectedMonths)"}, Days.yearNumber={'$(=Only(Year))'}&amp;gt;} Days.numDays)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top man!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 08:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-in-selected-months/m-p/387688#M485047</guid>
      <dc:creator />
      <dc:date>2013-05-21T08:52:47Z</dc:date>
    </item>
  </channel>
</rss>

