<?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 Y'Day,LastWeek, MTD,QTD,QTD-1,QTD-2,QTD-3,YTD,LYTD In Filter Pane in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628720#M46778</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any one please help me,&lt;/P&gt;&lt;P&gt;I have only date field, but i want to show all&amp;nbsp;&amp;nbsp;Y'Day,LastWeek, MTD,QTD,QTD-1,QTD-2,QTD-3,YTD,LYTD in filter pane.&lt;/P&gt;&lt;P&gt;Expected :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dates&lt;/STRONG&gt;&lt;BR /&gt;Yesterday&lt;BR /&gt;LastWeek&lt;BR /&gt;MTD&lt;BR /&gt;QTD&lt;BR /&gt;CurrentQTD-1&lt;BR /&gt;CurrentQTD-2&lt;BR /&gt;CurrentQTD-3&lt;BR /&gt;YTD&lt;BR /&gt;LastYear&lt;BR /&gt;Last2Years&lt;/P&gt;&lt;P&gt;I have used below calculation in script level but it was giving only&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clipboard_image_0.png" style="width: 245px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20196iD595FFE05986B9EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Yesterday&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LastWeek&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MTD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;in filter pane&lt;/P&gt;&lt;P&gt;If((Num(CASE_CREATEDDATE)= Num(Today()-1)),'Yesterday',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(Weekstart(Today()-7)) and Num(CASE_CREATEDDATE)&amp;lt;= Num(Weekend(Today()-7))),'LastWeek',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(MonthStart(Today())) and Num(CASE_CREATEDDATE)&amp;lt;= Num(MonthEnd(Today()))),'MTD',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(QuarterStart(Today())) and Num(CASE_CREATEDDATE)&amp;lt;= Num(QuarterEnd(Today()))),'QTD',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(QuarterStart(AddMonths(Today(),-3))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(QuarterEnd(AddMonths(Today(),-3)))),'Current QTD-1',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(QuarterStart(AddMonths(Today(),-6))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(QuarterEnd(AddMonths(Today(),-6)))),'Current QTD-2',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(QuarterStart(AddMonths(Today(),-9))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(QuarterEnd(AddMonths(Today(),-9)))),'Current QTD-3',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(YearStart(today())) and Num(CASE_CREATEDDATE)&amp;lt;= Num(MonthEnd(Today()))),'YTD',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(YearStart(AddMonths(today(),-12))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(MonthEnd(AddMonths(Today(),-12)))),'Last Year',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(YearStart(AddMonths(today(),-24))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(MonthEnd(AddMonths(Today(),-24)))),'Last 2 Years'&lt;BR /&gt;)))))))))&lt;BR /&gt;) as CASE_CREATEDDATE_New&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest me if any alternative method to achieve this requirement..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:00:15 GMT</pubDate>
    <dc:creator>vinni</dc:creator>
    <dc:date>2024-11-16T20:00:15Z</dc:date>
    <item>
      <title>Y'Day,LastWeek, MTD,QTD,QTD-1,QTD-2,QTD-3,YTD,LYTD In Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628720#M46778</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any one please help me,&lt;/P&gt;&lt;P&gt;I have only date field, but i want to show all&amp;nbsp;&amp;nbsp;Y'Day,LastWeek, MTD,QTD,QTD-1,QTD-2,QTD-3,YTD,LYTD in filter pane.&lt;/P&gt;&lt;P&gt;Expected :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dates&lt;/STRONG&gt;&lt;BR /&gt;Yesterday&lt;BR /&gt;LastWeek&lt;BR /&gt;MTD&lt;BR /&gt;QTD&lt;BR /&gt;CurrentQTD-1&lt;BR /&gt;CurrentQTD-2&lt;BR /&gt;CurrentQTD-3&lt;BR /&gt;YTD&lt;BR /&gt;LastYear&lt;BR /&gt;Last2Years&lt;/P&gt;&lt;P&gt;I have used below calculation in script level but it was giving only&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clipboard_image_0.png" style="width: 245px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20196iD595FFE05986B9EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Yesterday&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LastWeek&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MTD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;in filter pane&lt;/P&gt;&lt;P&gt;If((Num(CASE_CREATEDDATE)= Num(Today()-1)),'Yesterday',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(Weekstart(Today()-7)) and Num(CASE_CREATEDDATE)&amp;lt;= Num(Weekend(Today()-7))),'LastWeek',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(MonthStart(Today())) and Num(CASE_CREATEDDATE)&amp;lt;= Num(MonthEnd(Today()))),'MTD',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(QuarterStart(Today())) and Num(CASE_CREATEDDATE)&amp;lt;= Num(QuarterEnd(Today()))),'QTD',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(QuarterStart(AddMonths(Today(),-3))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(QuarterEnd(AddMonths(Today(),-3)))),'Current QTD-1',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(QuarterStart(AddMonths(Today(),-6))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(QuarterEnd(AddMonths(Today(),-6)))),'Current QTD-2',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(QuarterStart(AddMonths(Today(),-9))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(QuarterEnd(AddMonths(Today(),-9)))),'Current QTD-3',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(YearStart(today())) and Num(CASE_CREATEDDATE)&amp;lt;= Num(MonthEnd(Today()))),'YTD',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(YearStart(AddMonths(today(),-12))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(MonthEnd(AddMonths(Today(),-12)))),'Last Year',&lt;BR /&gt;If((Num(CASE_CREATEDDATE)&amp;gt;= Num(YearStart(AddMonths(today(),-24))) and Num(CASE_CREATEDDATE)&amp;lt;= Num(MonthEnd(AddMonths(Today(),-24)))),'Last 2 Years'&lt;BR /&gt;)))))))))&lt;BR /&gt;) as CASE_CREATEDDATE_New&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest me if any alternative method to achieve this requirement..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628720#M46778</guid>
      <dc:creator>vinni</dc:creator>
      <dc:date>2024-11-16T20:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Y'Day,LastWeek, MTD,QTD,QTD-1,QTD-2,QTD-3,YTD,LYTD In Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628733#M46782</link>
      <description>&lt;P&gt;Not sure what is going wrong but that depends on the data.&lt;/P&gt;&lt;P&gt;But I dont believe you can do it this way with a single column. because date would fall into multiple categories not just one. e.g. Yesterdays date should also be in YTD . but if you do it like this approach it will included in just category.&lt;/P&gt;&lt;P&gt;In my opinion you will need to an approach like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- The selection will be an island table&lt;/P&gt;&lt;P&gt;2-&amp;nbsp; The measure you need create in such a way that a different set analysis is applied on each selection&lt;/P&gt;&lt;P&gt;you can either do full set analysis with date condition or create separate flags for each condition&lt;/P&gt;&lt;P&gt;e.g. i&lt;SPAN&gt;f((Num(CASE_CREATEDDATE)= Num(Today()-1),1,0) as&amp;nbsp;&lt;/SPAN&gt;YesterdayFlag&lt;/P&gt;&lt;P&gt;, if(Year(&lt;SPAN&gt;CASE_CREATEDDATE)=Year(today),1,0) as YTDFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 16:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628733#M46782</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-09-26T16:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Y'Day,LastWeek, MTD,QTD,QTD-1,QTD-2,QTD-3,YTD,LYTD In Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628839#M46796</link>
      <description>&lt;P&gt;Hi Dilipranjith,&lt;/P&gt;&lt;P&gt;Thanks for your reply ,&lt;/P&gt;&lt;P&gt;You approach is correct,but i need all in single fields,if i get all in single field then i will use that field in filter pane.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need all the&lt;STRONG&gt;&amp;nbsp;Y'Day,LastWeek, MTD,QTD,QTD-1,QTD-2,QTD-3,YTD,LYTD&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;in a single column...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if any other alternative to achieve this requirement...&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 03:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628839#M46796</guid>
      <dc:creator>vinni</dc:creator>
      <dc:date>2019-09-27T03:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Y'Day,LastWeek, MTD,QTD,QTD-1,QTD-2,QTD-3,YTD,LYTD In Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628986#M46815</link>
      <description>&lt;P&gt;Why do you need in single column? Single column will notr work imo. Look at the example I gave.&lt;/P&gt;&lt;P&gt;Repeatingit again take E.g. of one date row&amp;nbsp;&lt;SPAN&gt;26 Sept 2019. Your 1 column should ideally have at least these values&amp;nbsp; in the flag in a single "Yesterday", MTD, YTD , which is not possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far I understand you need it to filter the data right. Hence my approach.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 10:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Y-Day-LastWeek-MTD-QTD-QTD-1-QTD-2-QTD-3-YTD-LYTD-In-Filter-Pane/m-p/1628986#M46815</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-09-27T10:37:47Z</dc:date>
    </item>
  </channel>
</rss>

