<?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 Over Time Comparissos in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512062#M6839</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I need to put a month to month year prior comparrison for the vColli dimension at my client's company. this is the master calendar they built before my time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;min_max:&lt;BR /&gt;Load&lt;BR /&gt;min(%Kalender) as minDate,&lt;BR /&gt;max(%Kalender) as maxDate&lt;BR /&gt;Resident Picking;&lt;BR /&gt;&lt;BR /&gt;Let vMinDate = Peek('minDate', 0, 'min_max')-1;&lt;BR /&gt;Let vMaxDate = Peek('maxDate', 0, 'min_max');&lt;BR /&gt;Let vGenerate = round(Peek('maxDate', 0, 'min_max') - $(vMinDate));&lt;/P&gt;&lt;P&gt;DROP Table min_max;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kalender:&lt;BR /&gt;Load *,&lt;BR /&gt;TempDate AS %Kalender,&lt;BR /&gt;Year(TempDate)&amp;amp;Ceil (Month(TempDate)/3) as JaarKwartaal,&lt;BR /&gt;date(TempDate) As Datum,&lt;BR /&gt;week(TempDate) As Week,&lt;BR /&gt;Year(TempDate) As Jaar,&lt;BR /&gt;Month(TempDate) As Maand,&lt;BR /&gt;num(month(TempDate), '00' ) As Periode,&lt;BR /&gt;Day(TempDate) As Dag,&lt;BR /&gt;date(monthstart(TempDate), 'MMM-YYYY') As MaandJaar,&lt;BR /&gt;num#(date(monthstart(TempDate), 'YYYYMM') ) As JaarPeriode,&lt;BR /&gt;(Year(TempDate) * 12) + num(month(TempDate), '00' ) as JaarPeriodeID,&lt;BR /&gt;'Q' &amp;amp; Ceil (Month(TempDate)/3) As Kwartaal,&lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) As WeekJaar,&lt;BR /&gt;WeekDay(TempDate) As WeekDag,&lt;BR /&gt;if(TempDate = $(vMaxDate)&lt;BR /&gt;, 1&lt;BR /&gt;) As MaxDateFlag,&lt;BR /&gt;if(MakeDate(2000, month(today()), day(today())) &amp;gt;= MakeDate(2000, month(TempDate), Day(TempDate))&lt;BR /&gt;, 'YTD'&lt;BR /&gt;) As YTD&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;$(vMinDate) + RecNo() As TempDate&lt;BR /&gt;autoGenerate $(vGenerate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;Does anyone have any ideas,&lt;/P&gt;&lt;P&gt;how i shuld go about this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 09:39:20 GMT</pubDate>
    <dc:creator>dries_clairhout</dc:creator>
    <dc:date>2018-11-26T09:39:20Z</dc:date>
    <item>
      <title>Over Time Comparissos</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512062#M6839</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I need to put a month to month year prior comparrison for the vColli dimension at my client's company. this is the master calendar they built before my time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;min_max:&lt;BR /&gt;Load&lt;BR /&gt;min(%Kalender) as minDate,&lt;BR /&gt;max(%Kalender) as maxDate&lt;BR /&gt;Resident Picking;&lt;BR /&gt;&lt;BR /&gt;Let vMinDate = Peek('minDate', 0, 'min_max')-1;&lt;BR /&gt;Let vMaxDate = Peek('maxDate', 0, 'min_max');&lt;BR /&gt;Let vGenerate = round(Peek('maxDate', 0, 'min_max') - $(vMinDate));&lt;/P&gt;&lt;P&gt;DROP Table min_max;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kalender:&lt;BR /&gt;Load *,&lt;BR /&gt;TempDate AS %Kalender,&lt;BR /&gt;Year(TempDate)&amp;amp;Ceil (Month(TempDate)/3) as JaarKwartaal,&lt;BR /&gt;date(TempDate) As Datum,&lt;BR /&gt;week(TempDate) As Week,&lt;BR /&gt;Year(TempDate) As Jaar,&lt;BR /&gt;Month(TempDate) As Maand,&lt;BR /&gt;num(month(TempDate), '00' ) As Periode,&lt;BR /&gt;Day(TempDate) As Dag,&lt;BR /&gt;date(monthstart(TempDate), 'MMM-YYYY') As MaandJaar,&lt;BR /&gt;num#(date(monthstart(TempDate), 'YYYYMM') ) As JaarPeriode,&lt;BR /&gt;(Year(TempDate) * 12) + num(month(TempDate), '00' ) as JaarPeriodeID,&lt;BR /&gt;'Q' &amp;amp; Ceil (Month(TempDate)/3) As Kwartaal,&lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) As WeekJaar,&lt;BR /&gt;WeekDay(TempDate) As WeekDag,&lt;BR /&gt;if(TempDate = $(vMaxDate)&lt;BR /&gt;, 1&lt;BR /&gt;) As MaxDateFlag,&lt;BR /&gt;if(MakeDate(2000, month(today()), day(today())) &amp;gt;= MakeDate(2000, month(TempDate), Day(TempDate))&lt;BR /&gt;, 'YTD'&lt;BR /&gt;) As YTD&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;$(vMinDate) + RecNo() As TempDate&lt;BR /&gt;autoGenerate $(vGenerate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;Does anyone have any ideas,&lt;/P&gt;&lt;P&gt;how i shuld go about this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512062#M6839</guid>
      <dc:creator>dries_clairhout</dc:creator>
      <dc:date>2018-11-26T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Over Time Comparissos</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512069#M6841</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;Do you want to compare Current Year Month to Date vs Last Year Month to Date?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512069#M6841</guid>
      <dc:creator>Uday_Pasupuleti</dc:creator>
      <dc:date>2018-11-26T09:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Over Time Comparissos</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512078#M6844</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;indeed, the client wants to see the following:&lt;/P&gt;&lt;P&gt;1) when selecting a month, he wants to see the number of the month year priot next to the current numbers to compare.&lt;/P&gt;&lt;P&gt;2) when selecting for example 2018 he wants to see the same data from the year before next to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use this in our qlik sense enviroment:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/957i5DD5A3D531E560E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512078#M6844</guid>
      <dc:creator>dries_clairhout</dc:creator>
      <dc:date>2018-11-26T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Over Time Comparissos</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512086#M6846</link>
      <description>In that case just use the set analysis in your measure expression.&lt;BR /&gt;1. With max(Year)&lt;BR /&gt;2. With max(Year)-1&lt;BR /&gt;&lt;BR /&gt;Or you can create flags in your calendar&lt;BR /&gt;Firs create a variable for today.&lt;BR /&gt;Let vToday = num(Today())&lt;BR /&gt;&lt;BR /&gt;Then in your master calendar create the following flags&lt;BR /&gt;InYearToDate(TempDate,$(vToday),0) * -1 as CurYTDFlag,&lt;BR /&gt;//YeartoDate((TempDate-1),-1)*-1 as LastYTDFlag,&lt;BR /&gt;inmonthtodate(TempDate,$(vToday),0) * -1 as CurMTDFlag,&lt;BR /&gt;InWeekToDate(TempDate,$(vToday),0) * -1 as CurWTDFlag,&lt;BR /&gt;inmonthtodate(TempDate,$(vToday),+1) * -1 as NextMTDFlag,&lt;BR /&gt;inmonthtodate(TempDate,$(vToday),-1) * -1 as LastMTDFlag,&lt;BR /&gt;If( InMonth (TempDate, $(vToday),0),1) as This_Month_Flag,&lt;BR /&gt;If( InMonth (TempDate, $(vToday),-1),1) as Last_Month_Flag,&lt;BR /&gt;If( InMonth (TempDate, $(vToday),-12),1,0) as LYMTDFlag,&lt;BR /&gt;if(date(TempDate) &amp;gt;= Date(AddMonths(Today(0),-12)), '1') as Rolling12Mo,&lt;BR /&gt;if(date(TempDate) &amp;gt;= Date(Today(0)-30), '1') as Rolling30Day,&lt;BR /&gt;etc..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Nov 2018 10:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512086#M6846</guid>
      <dc:creator>Uday_Pasupuleti</dc:creator>
      <dc:date>2018-11-26T10:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Over Time Comparissos</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512103#M6852</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the variable is made and I scripted this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2.png" style="width: 892px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/960iC8D1CA51AE757803/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2.png" alt="Screenshot_2.png" /&gt;&lt;/span&gt;But tis is giving an error behind "as weekDag" expected ")"&lt;/P&gt;&lt;P&gt;Don't know how this gives an error.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 10:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512103#M6852</guid>
      <dc:creator>dries_clairhout</dc:creator>
      <dc:date>2018-11-26T10:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Over Time Comparissos</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512115#M6855</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this.I have tested it and working fine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let vToday = num(Today()-1);&lt;BR /&gt;&lt;BR /&gt;SET vFiscalYearStartMonth = 4;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;QuartersMap:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt;rowno() as Month,&lt;BR /&gt;'Q' &amp;amp; Ceil (rowno()/3) as Quarter&lt;BR /&gt;AUTOGENERATE (12);&lt;BR /&gt;&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;Load&lt;BR /&gt;//TempDate AS "Post Date",&lt;BR /&gt;Date(TempDate,'DD/MM/YYYY') as Date,&lt;BR /&gt;//'WK'&amp;amp; week(TempDate) as Week,&lt;BR /&gt;//week(TempDate) as WeekNo,&lt;BR /&gt;&lt;BR /&gt;Year(YearName(TempDate, 0, $(vFiscalYearStartMonth)))+1 AS FYYear,&lt;BR /&gt;Dual(Month(TempDate),Mod(Month(TempDate) - $(vFiscalYearStartMonth), 12)+1) as FYMonth,&lt;BR /&gt;Dual('Q' &amp;amp; Ceil((Mod(Month(TempDate) - $(vFiscalYearStartMonth), 12)+1)/3), Ceil((Mod(Month(TempDate) - $(vFiscalYearStartMonth), 12)+1)/3)) as FYQuarter,&lt;BR /&gt;Ceil((TempDate-WeekStart(YearStart(TempDate,0,$(vFiscalYearStartMonth)))+1)/7) as FYWeekNo,&lt;BR /&gt;YearToDate(TempDate,0,$(vFiscalYearStartMonth))*-1 as FYCYYTD,&lt;BR /&gt;YearToDate((TempDate),-1,$(vFiscalYearStartMonth))*-1 as FYLYYTD,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Year(TempDate) As Year,&lt;BR /&gt;Month(TempDate) As Month,&lt;BR /&gt;Num(Month(TempDate)) As MonthNum,&lt;BR /&gt;If( DayNumberOfYear(TempDate) &amp;lt;= DayNumberOfYear(Today()), 1, 0 ) as IsInYTD,&lt;BR /&gt;//YeartoDate(TempDate)*-1 as CurYTDFlag,&lt;BR /&gt;&lt;BR /&gt;InYearToDate(TempDate,$(vToday),0) * -1 as CurYTDFlag,&lt;BR /&gt;//YeartoDate((TempDate-1),-1)*-1 as LastYTDFlag,&lt;BR /&gt;inmonthtodate(TempDate,$(vToday),0) * -1 as CurMTDFlag,&lt;BR /&gt;InWeekToDate(TempDate,$(vToday),0) * -1 as CurWTDFlag,&lt;BR /&gt;inmonthtodate(TempDate,$(vToday),+1) * -1 as NextMTDFlag,&lt;BR /&gt;inmonthtodate(TempDate,$(vToday),-1) * -1 as LastMTDFlag,&lt;BR /&gt;If( InMonth (TempDate, $(vToday),0),1) as This_Month_Flag,&lt;BR /&gt;If( InMonth (TempDate, $(vToday),-1),1) as Last_Month_Flag,&lt;BR /&gt;If( InMonth (TempDate, $(vToday),-12),1,0) as LYMTDFlag,&lt;BR /&gt;if(date(TempDate) &amp;gt;= Date(AddMonths(Today(0),-12)), '1') as Rolling12Mo,&lt;BR /&gt;if(date(TempDate) &amp;gt;= Date(Today(0)-30), '1') as Rolling30Day;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Load&lt;BR /&gt;AddMonths(today(),12) - recno() AS TempDate&lt;BR /&gt;Autogenerate (AddMonths(today(),12) - MakeDate(2016,01,01));</description>
      <pubDate>Mon, 26 Nov 2018 10:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512115#M6855</guid>
      <dc:creator>Uday_Pasupuleti</dc:creator>
      <dc:date>2018-11-26T10:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Over Time Comparissos</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512672#M7018</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first of all, thank you for the responses.&lt;/P&gt;&lt;P&gt;Secondly:&lt;/P&gt;&lt;P&gt;QuarterMAP?&lt;/P&gt;&lt;P&gt;I don't know what you mean by that.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vToday = num(Today()-1);&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;SET vFiscalYearStartMonth = 4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is this both in the same variable?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still getting syntax errors.&lt;/P&gt;&lt;P&gt;Sorry for the many questions.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 08:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512672#M7018</guid>
      <dc:creator>dries_clairhout</dc:creator>
      <dc:date>2018-11-27T08:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Over Time Comparissos</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512694#M7020</link>
      <description>Hi,&lt;BR /&gt;Quarter map is to create quarters like Q1,Q2,Q3 and Q4.&lt;BR /&gt;&lt;BR /&gt;vFiscalYearStartMonth is used to create Fiscalyear.&lt;BR /&gt;&lt;BR /&gt;If you don't want them, then you can comment them out.&lt;BR /&gt;&lt;BR /&gt;You need to use vToday variable for the flags.&lt;BR /&gt;&lt;BR /&gt;What are the syntax errors you are getting?&lt;BR /&gt;&lt;BR /&gt;Please&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Nov 2018 08:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Over-Time-Comparissos/m-p/1512694#M7020</guid>
      <dc:creator>Uday_Pasupuleti</dc:creator>
      <dc:date>2018-11-27T08:54:10Z</dc:date>
    </item>
  </channel>
</rss>

