<?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 alternative period for each month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/alternative-period-for-each-month/m-p/1223542#M23813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use an alternative month period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I have outgoings on daily basis but if I receive an event before the 10th of the month I would like to take it into account in the previous month except if this day (10th day's of the month) is a weekday, in that case I would like to use the previous Friday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feb 01. feb.02 feb.03 .... feb 09 should go to jan and feb 10, feb 11 .... marc 09 should go to feb and so on (except 10th is weekend...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a Mastercalendar and a new calc flag field in the backend and used set analysis in the frontend, but this doesn't handle weekdays and I think this problem can be solved in a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(If(Month(Date(McDate-9))&amp;lt;&amp;gt;Month(McDate),Month(McDate) 1,Month(McDate))=0,'December', If(Month(Date(McDate-9))&amp;lt;&amp;gt;Month(McDate),Month(McDate)-1,Month(McDate)))&lt;/P&gt;&lt;P&gt;as McAlternativeMonthFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 20:20:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-06T20:20:36Z</dc:date>
    <item>
      <title>alternative period for each month</title>
      <link>https://community.qlik.com/t5/App-Development/alternative-period-for-each-month/m-p/1223542#M23813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use an alternative month period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I have outgoings on daily basis but if I receive an event before the 10th of the month I would like to take it into account in the previous month except if this day (10th day's of the month) is a weekday, in that case I would like to use the previous Friday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feb 01. feb.02 feb.03 .... feb 09 should go to jan and feb 10, feb 11 .... marc 09 should go to feb and so on (except 10th is weekend...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a Mastercalendar and a new calc flag field in the backend and used set analysis in the frontend, but this doesn't handle weekdays and I think this problem can be solved in a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(If(Month(Date(McDate-9))&amp;lt;&amp;gt;Month(McDate),Month(McDate) 1,Month(McDate))=0,'December', If(Month(Date(McDate-9))&amp;lt;&amp;gt;Month(McDate),Month(McDate)-1,Month(McDate)))&lt;/P&gt;&lt;P&gt;as McAlternativeMonthFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/alternative-period-for-each-month/m-p/1223542#M23813</guid>
      <dc:creator />
      <dc:date>2017-02-06T20:20:36Z</dc:date>
    </item>
  </channel>
</rss>

