<?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: Create a filter for last 3 months , last 5 weeks on date for one specific chart qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1973625#M80322</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28019"&gt;@SunilChauhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Thanks for your response.&lt;/P&gt;
&lt;P&gt;I am unable to upload this qvf in my qliksense due to access restriction.&lt;/P&gt;
&lt;P&gt;Could you please share code inside the script here please ?&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 14:02:20 GMT</pubDate>
    <dc:creator>Aspiring_Developer</dc:creator>
    <dc:date>2022-08-26T14:02:20Z</dc:date>
    <item>
      <title>Create a filter for last 3 months , last 5 weeks on date for one specific chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1972524#M80238</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have below chart :-&lt;/P&gt;
&lt;P&gt;Dimension =date(floor(Date),'DD-MMM-YY') | Brand&lt;/P&gt;
&lt;P&gt;Measure=&amp;nbsp;Sum(Volume)/1000&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1661345133998.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87424i8FE7FCE8E280C8F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_0-1661345133998.png" alt="Aspiring_Developer_0-1661345133998.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now, my requirement is to create a week filter (last 4 weeks, last 8 weeks , last 12 weeks , last 24 weeks ) and so on and I have data for last 3 years (2020 till 2022). And this filter should only work for this specific chart.&lt;/P&gt;
&lt;P&gt;Similarly , I need to create one more filter for months(last 3 months, 6 months, 12 months, 24 months) and it should also also work for one specific chart given below :-&lt;/P&gt;
&lt;P&gt;Dimension -MonthYear | Brand&lt;/P&gt;
&lt;P&gt;Measure -&amp;nbsp;sum(Volume)/1000&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_1-1661345357321.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87425i6C32DF32138F3A64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_1-1661345357321.png" alt="Aspiring_Developer_1-1661345357321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Both Date and Month Year fields are derived from master calendar:-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_2-1661345451920.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87426iD988A607DF1AB610/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_2-1661345451920.png" alt="Aspiring_Developer_2-1661345451920.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have one single table and it is connect with master calendar in the data model.&lt;/P&gt;
&lt;P&gt;Please find attached my data sheet .&lt;/P&gt;
&lt;P&gt;Can anyone please help me on this ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 12:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1972524#M80238</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-08-24T12:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create a filter for last 3 months , last 5 weeks on date for one specific chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1972865#M80266</link>
      <description>&lt;P&gt;Can anyone please help me on this ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 07:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1972865#M80266</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-08-25T07:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create a filter for last 3 months , last 5 weeks on date for one specific chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1972927#M80274</link>
      <description>&lt;P&gt;heck the attached file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Flag FIeld is FIlter. its for 3 month, 3-6 Month and 6-9 Months,&amp;nbsp; when you select 3 Months it show 3 Month,&lt;/P&gt;
&lt;P&gt;When you select 3-6 then another 3 months&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when you select Both 3 month and 3-6 month it will show last 6 months.&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 09:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1972927#M80274</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2022-08-25T09:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a filter for last 3 months , last 5 weeks on date for one specific chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1973625#M80322</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28019"&gt;@SunilChauhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Thanks for your response.&lt;/P&gt;
&lt;P&gt;I am unable to upload this qvf in my qliksense due to access restriction.&lt;/P&gt;
&lt;P&gt;Could you please share code inside the script here please ?&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1973625#M80322</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-08-26T14:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a filter for last 3 months , last 5 weeks on date for one specific chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1973629#M80324</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I understand that what you want is not to modify the model but to solve an issue with a specific graph, if so, you could generate a master calendar that solves everything with set analysis, it is more there you could do other types of calculations such as YTD, R12 etc, confirm me if I understand correctly&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1973629#M80324</guid>
      <dc:creator>Masajnik</dc:creator>
      <dc:date>2022-08-26T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create a filter for last 3 months , last 5 weeks on date for one specific chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1973637#M80326</link>
      <description>&lt;P&gt;its Same code as you. only Flag i have added in Bold . See the below Code&lt;/P&gt;
&lt;P&gt;Test:&lt;BR /&gt;LOAD&lt;BR /&gt;Category,&lt;BR /&gt;Brand,&lt;BR /&gt;"Date",&lt;BR /&gt;"Dimension",&lt;BR /&gt;"Sub Dimension",&lt;BR /&gt;Volume&lt;BR /&gt;// "Month"&lt;BR /&gt;FROM [lib://Test/Flat File.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;Load&lt;BR /&gt;Min(Date) as MinDate,&lt;BR /&gt;Max(Date) as MaxDate&lt;BR /&gt;Resident Test;&lt;/P&gt;
&lt;P&gt;Let vminDate=num(Peek('MinDate',0,Temp));&lt;BR /&gt;Let vmaxDate=num(Peek('MaxDate',-1,Temp));&lt;BR /&gt;Drop Table Temp;&lt;/P&gt;
&lt;P&gt;Calendar:&lt;BR /&gt;Load $(vminDate)+iterno()-1 as num,&lt;BR /&gt;Date($(vminDate)+iterno()-1) as New_Date&lt;BR /&gt;Autogenerate 1 while $(vminDate)+iterno()-1&amp;lt;=$(vmaxDate);&lt;/P&gt;
&lt;P&gt;Load*,&lt;BR /&gt;&lt;STRONG&gt;if(MonthName&amp;gt;MOnthName(Addmonths($(vmaxDate),-3)) and MonthName&amp;lt;=MonthName($(vmaxDate)),'3Month',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if(MonthName&amp;gt;MOnthName(Addmonths($(vmaxDate),-6)) and MonthName&amp;lt;=MOnthName(Addmonths($(vmaxDate),-3)),'3-6 Month',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if(MonthName&amp;gt;MOnthName(Addmonths($(vmaxDate),-9)) and MonthName&amp;lt;=MOnthName(Addmonths($(vmaxDate),-6)),'6-9 Month'))) as Flag;&lt;/STRONG&gt;&lt;BR /&gt;Load Floor(New_Date) as Date,&lt;BR /&gt;Year(New_Date) as Year,&lt;BR /&gt;num(New_Date) as test,&lt;BR /&gt;Date(MonthStart(New_Date),'MMM-YYYY') as MonthYear,&lt;BR /&gt;Month(New_Date) as Month,&lt;BR /&gt;MonthName(New_Date) as MonthName,&lt;BR /&gt;Day(New_Date) as Day,&lt;BR /&gt;YearToDate(New_Date) as YTD,&lt;BR /&gt;Week(New_Date) as Week&lt;BR /&gt;Resident Calendar;&lt;BR /&gt;Drop Table Calendar;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-filter-for-last-3-months-last-5-weeks-on-date-for-one/m-p/1973637#M80326</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2022-08-26T14:23:18Z</dc:date>
    </item>
  </channel>
</rss>

