<?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: Month-1 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518770#M37070</link>
    <description>&lt;P&gt;&lt;SPAN&gt;=count({&amp;lt;[Calendar date]=, [%Year month SEQ]={$(=max([%Year month SEQ])&lt;STRONG&gt;-1&lt;/STRONG&gt;)}&amp;gt;}Document)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 15:35:29 GMT</pubDate>
    <dc:creator>OmarBenSalem</dc:creator>
    <dc:date>2018-12-10T15:35:29Z</dc:date>
    <item>
      <title>Month-1</title>
      <link>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518767#M37069</link>
      <description>&lt;P&gt;Hello I need to calcule the count of the Month -1&amp;nbsp; Week and Week-1 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the actual Month i use this one :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;[Calendar date]=, [%Year month SEQ]={$(=max([%Year month SEQ]))}&amp;gt;}Document)&lt;/P&gt;&lt;P&gt;the year month Seq is in the script :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AutoNumber(Num(Month([Calendar date]), '00')&amp;amp;'/'&amp;amp;Year([Calendar date])) as &lt;STRONG&gt;[%Year month SEQ]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks for help :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518767#M37069</guid>
      <dc:creator>zied_ahmed1</dc:creator>
      <dc:date>2018-12-10T15:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Month-1</title>
      <link>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518770#M37070</link>
      <description>&lt;P&gt;&lt;SPAN&gt;=count({&amp;lt;[Calendar date]=, [%Year month SEQ]={$(=max([%Year month SEQ])&lt;STRONG&gt;-1&lt;/STRONG&gt;)}&amp;gt;}Document)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518770#M37070</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2018-12-10T15:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Month-1</title>
      <link>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518772#M37071</link>
      <description>I tried it from the first time and it doesn't work ,&lt;BR /&gt;I don't know why because the =count({&amp;lt;[Calendar date]=, [%Year month SEQ]={$(=max([%Year month SEQ]))}&amp;gt;}Document) work</description>
      <pubDate>Mon, 10 Dec 2018 15:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518772#M37071</guid>
      <dc:creator>zied_ahmed1</dc:creator>
      <dc:date>2018-12-10T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Month-1</title>
      <link>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518773#M37072</link>
      <description>&lt;P&gt;Do you have other date and time related filters where you might make a selection? Like Month or Year etc? If you do, make sure to ignore them in your set analysis as well&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518773#M37072</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-10T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Month-1</title>
      <link>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518782#M37073</link>
      <description>In the table I have this :&lt;BR /&gt;&lt;BR /&gt;Year(CREATED) as Year,&lt;BR /&gt;Month(CREATED) as Month,&lt;BR /&gt;&lt;BR /&gt;CREATED,&lt;BR /&gt;Month(CREATED) &amp;amp; Year(CREATED) as Date,&lt;BR /&gt;num(Month(CREATED)) &amp;amp; num(Year(CREATED)) as numDate,&lt;BR /&gt;day(CREATED) as Day,&lt;BR /&gt;day(UPDATED) - day(CREATED) as Day_Taken,&lt;BR /&gt;&lt;BR /&gt;and I have this master calendar :&lt;BR /&gt;&lt;BR /&gt;Let vMinDate=num(MakeDate(2016,12,31));&lt;BR /&gt;//Let vMinDate= AddYears(today(),-2);&lt;BR /&gt;Let vMaxDate=Today()+30;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;[D_Calendar_TMP]:&lt;BR /&gt;Load date($(vMinDate)+ RowNo()) as [Calendar date]&lt;BR /&gt;AutoGenerate $(vMaxDate)-$(vMinDate);&lt;BR /&gt;NoConcatenate&lt;BR /&gt;[D_Calendar_TMP2]:&lt;BR /&gt;Load RowNo() as [%Date SEQ]&lt;BR /&gt;,AutoNumber(text(date([Calendar date], 'DD/MM/YYYY'))) as [%Date ID]&lt;BR /&gt;,date([Calendar date], 'DD/MM/YYYY') as [Calendar date]&lt;BR /&gt;,Day([Calendar date]) as [Day of date]&lt;BR /&gt;,'W' &amp;amp; right(WeekName([Calendar date],0,-4), 2) as [week date]&lt;BR /&gt;,'Q' &amp;amp; Num(ceil(month([Calendar date])/3), '00') as [quarter date]&lt;BR /&gt;, right(WeekName([Calendar date],0,-4), 2) as [Week of date]&lt;BR /&gt;,Month([Calendar date]) as [Month of date]&lt;BR /&gt;,QuarterName([Calendar date]) as [Quarter of date]&lt;BR /&gt;,Year([Calendar date]) as [Year of date]&lt;BR /&gt;, right(WeekName([Calendar date],0,-4), 2) &amp;amp;'/'&amp;amp;Year([Calendar date]) as [Year week date]&lt;BR /&gt;,date(MonthStart([Calendar date]),'MMM YYYY') as [Year month date]&lt;BR /&gt;,num( Year([Calendar date]) ) &amp;amp; '- Q' &amp;amp; Num(ceil(month([Calendar date])/3), '00') as [Year quarter date]&lt;BR /&gt;,WeekStart([Calendar date],0,-4) as [Week start date]&lt;BR /&gt;,WeekEnd([Calendar date],0,-4) as [Week end date]&lt;BR /&gt;,MonthStart([Calendar date]) as [Month start date]&lt;BR /&gt;,MonthEnd([Calendar date]) as [Month end date]&lt;BR /&gt;,QuarterStart([Calendar date]) as [Quarter start date]&lt;BR /&gt;,QuarterEnd([Calendar date]) as [Quarter end date]&lt;BR /&gt;,YearStart([Calendar date]) as [Year start date]&lt;BR /&gt;,YearEnd([Calendar date]) as [Year end date]&lt;BR /&gt;,AutoNumber(WeekEnd([Calendar date],0,-4)) as [%Year week SEQ]&lt;BR /&gt;,AutoNumber(Num(Month([Calendar date]), '00')&amp;amp;'/'&amp;amp;Year([Calendar date])) as [%Year month SEQ]&lt;BR /&gt;,AutoNumber(Num(QuarterName([Calendar date]), '00')&amp;amp;'/'&amp;amp;Year([Calendar date])) as [%Year quarter SEQ]&lt;BR /&gt;,if(monthstart(date([Calendar date],'MM/YYYY'))= monthstart(date(Today() ,'MM/YYYY')) ,monthstart(date(AddMonths(Today(),-2),'MM/YYYY')), monthstart(date(AddMonths([Calendar date] ,-1),'MM/YYYY'))) as [Month Fact]&lt;BR /&gt;Resident D_Calendar_TMP;&lt;BR /&gt;&lt;BR /&gt;join(D_Calendar_TMP2)&lt;BR /&gt;Load max([%Date ID]) as [%Date ID]&lt;BR /&gt;,1 as [Week end flag]&lt;BR /&gt;Resident D_Calendar_TMP2&lt;BR /&gt;Group by [Week end date];&lt;BR /&gt;&lt;BR /&gt;join(D_Calendar_TMP2)&lt;BR /&gt;Load max([%Date ID]) as [%Date ID]&lt;BR /&gt;,1 as [Month end flag]&lt;BR /&gt;Resident D_Calendar_TMP2&lt;BR /&gt;Group by [Month end date];&lt;BR /&gt;&lt;BR /&gt;join(D_Calendar_TMP2)&lt;BR /&gt;Load max([%Date ID]) as [%Date ID]&lt;BR /&gt;,1 as [Quarter end flag]&lt;BR /&gt;Resident D_Calendar_TMP2&lt;BR /&gt;Group by [Quarter end date];&lt;BR /&gt;&lt;BR /&gt;join(D_Calendar_TMP2)&lt;BR /&gt;Load max([%Date ID]) as [%Date ID]&lt;BR /&gt;,1 as [Year end flag]&lt;BR /&gt;Resident D_Calendar_TMP2&lt;BR /&gt;Group by [Year end date];&lt;BR /&gt;&lt;BR /&gt;join(D_Calendar_TMP2)&lt;BR /&gt;Load min([%Date ID]) as [%Date ID]&lt;BR /&gt;,1 as [Week start flag]&lt;BR /&gt;Resident D_Calendar_TMP2&lt;BR /&gt;Group by [Week start date];&lt;BR /&gt;&lt;BR /&gt;join(D_Calendar_TMP2)&lt;BR /&gt;Load min([%Date ID]) as [%Date ID]&lt;BR /&gt;,1 as [Month start flag]&lt;BR /&gt;Resident D_Calendar_TMP2&lt;BR /&gt;Group by [Month start date];&lt;BR /&gt;&lt;BR /&gt;join(D_Calendar_TMP2)&lt;BR /&gt;Load min([%Date ID]) as [%Date ID]&lt;BR /&gt;,1 as [Quarter start flag]&lt;BR /&gt;Resident D_Calendar_TMP2&lt;BR /&gt;Group by [Quarter start date];&lt;BR /&gt;&lt;BR /&gt;join(D_Calendar_TMP2)&lt;BR /&gt;Load min([%Date ID]) as [%Date ID]&lt;BR /&gt;,1 as [Year start flag]&lt;BR /&gt;Resident D_Calendar_TMP2&lt;BR /&gt;Group by [Year start date];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;D_Calendar:&lt;BR /&gt;Load [%Date SEQ]&lt;BR /&gt;,[%Date ID]&lt;BR /&gt;,[Calendar date]&lt;BR /&gt;,[Day of date]&lt;BR /&gt;,[Week of date]&lt;BR /&gt;,[Month of date]&lt;BR /&gt;,[Quarter of date]&lt;BR /&gt;,[Year of date]&lt;BR /&gt;,[Year week date]&lt;BR /&gt;,[Year month date]&lt;BR /&gt;,[week date]&lt;BR /&gt;,[quarter date]&lt;BR /&gt;,[Year quarter date]&lt;BR /&gt;,[Week start date]&lt;BR /&gt;,[Week end date]&lt;BR /&gt;,[Month start date]&lt;BR /&gt;,[Month end date]&lt;BR /&gt;,[Quarter start date]&lt;BR /&gt;,[Quarter end date]&lt;BR /&gt;,[Year start date]&lt;BR /&gt;,[Year end date]&lt;BR /&gt;,[%Year week SEQ]&lt;BR /&gt;,[%Year month SEQ]&lt;BR /&gt;,[%Year quarter SEQ]&lt;BR /&gt;,[Month Fact]&lt;BR /&gt;,Num ( (date([Calendar date],'DD/MM/YYYY') - date([Month start date],'DD/MM/YYYY')) + 1) AS [Month Diff]&lt;BR /&gt;,Num ( (date([Calendar date],'DD/MM/YYYY') - date([Quarter start date],'DD/MM/YYYY')) + 1) AS [Quarter Diff]&lt;BR /&gt;,Num ( (date([Calendar date],'DD/MM/YYYY') - date([Year start date],'DD/MM/YYYY')) + 1) AS [Year Diff]&lt;BR /&gt;,if(WeekEnd([Calendar date])=WeekEnd(Date(Today()-1,'DD/MM/YYYY')),Date(Today()-1,'DD/MM/YYYY'), WeekEnd([Calendar date])) as [Week end date 2]&lt;BR /&gt;,if(MonthEnd([Calendar date])=MonthEnd(Date(Today()-1,'DD/MM/YYYY')),date(Date(Today()-1,'DD/MM/YYYY'),'MMM YYYY'), date(MonthEnd([Calendar date]),'MMM YYYY') ) as [Month end date 2]&lt;BR /&gt;,if(QuarterEnd([Calendar date])=QuarterEnd(Date(Today()-1,'DD/MM/YYYY')),date(Date(Today()-1,'DD/MM/YYYY'),'MMM YYYY'), date(QuarterEnd([Calendar date]),'MMM YYYY') ) as [Quarter end date 2]&lt;BR /&gt;,if(YearEnd([Calendar date])=YearEnd(Date(Today()-1,'DD/MM/YYYY')),date(Date(Today()-1,'DD/MM/YYYY'),'MMM YYYY'), date(YearEnd([Calendar date]),'MMM YYYY') ) as [Year end date 2]&lt;BR /&gt;&lt;BR /&gt;//,if([Calendar date]=Date(Today()-1,'DD/MM/YYYY'),1,[Week end flag]) as [Week end flag]&lt;BR /&gt;&lt;BR /&gt;, if(date(floor( WeekEnd([Calendar date],0,-4)))=date(floor(WeekEnd(Today()-1,0,-4))),&lt;BR /&gt;if([Calendar date]=Date( '$(vCheckRevenuDate)','DD/MM/YYYY'),1),[Week end flag]) as [Week end flag]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;,if(date(floor( MonthEnd([Calendar date])))=date(floor(MonthEnd(Date(Today()-1,'DD/MM/YYYY')))),&lt;BR /&gt;if([Calendar date]=Date( '$(vCheckRevenuDate)','DD/MM/YYYY'),1),[Month end flag]) as [Month end flag]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;,if( date(floor(QuarterEnd([Calendar date])))=date(floor(QuarterEnd(Date(Today()-1,'DD/MM/YYYY')))),&lt;BR /&gt;if( [Calendar date]=Date('$(vCheckRevenuDate)','DD/MM/YYYY'),1) ,[Quarter end flag] ) as [Quarter end flag]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//,if([Calendar date]=Date(Today()-1,'DD/MM/YYYY'),1,[Year end flag]) as [Year end flag]&lt;BR /&gt;&lt;BR /&gt;, if(date(floor( YearEnd([Calendar date])))=date(floor(YearEnd(Date(Today()-1,'DD/MM/YYYY')))),&lt;BR /&gt;if([Calendar date]=Date( '$(vCheckRevenuDate)','DD/MM/YYYY'),1),[Year end flag]) as [Year end flag]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;, [Week start flag]&lt;BR /&gt;, [Month start flag]&lt;BR /&gt;, [Quarter start flag]&lt;BR /&gt;, [Year start flag]&lt;BR /&gt;// ,if(date(floor(MonthEnd([Calendar date])))=date(floor(MonthEnd(Date(Today()-1,'DD/MM/YYYY')))),&lt;BR /&gt;// if([Calendar date]=Date('$(vCheckRevenuDate)','DD/MM/YYYY'),1),[Month start flag] ) as [Month start flag]&lt;BR /&gt;,AutoNumber(Num(Month([Month Fact]), '00')&amp;amp;'/'&amp;amp;Year([Month Fact]), '%Year month fact SEQ') as [%Year month fact SEQ]&lt;BR /&gt;Resident D_Calendar_TMP2;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Drop table D_Calendar_TMP, D_Calendar_TMP2;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Month-1/m-p/1518782#M37073</guid>
      <dc:creator>zied_ahmed1</dc:creator>
      <dc:date>2018-12-10T15:47:37Z</dc:date>
    </item>
  </channel>
</rss>

