<?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: Date functions in search filter in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103656#M463853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Temp and Main table are not associated therefore it will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you tying to achieve??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing&lt;/P&gt;&lt;P&gt;What is purpose of below expression??&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Consider your YearMonth_Temp is 201505&lt;/P&gt;&lt;P&gt;then Date#() convert it into date and&lt;/P&gt;&lt;P&gt;in addmonths() your subtracting month which&lt;/P&gt;&lt;P&gt;then output of this expression &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1) &lt;/STRONG&gt;for 201505 is 201504&lt;/P&gt;&lt;P&gt;and output of this &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1)) &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;for 201505 is 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;which you can achieve without AddMonths()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;I hope you got my point. and you need to association between Main and Temp table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2016 07:49:59 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2016-06-01T07:49:59Z</dc:date>
    <item>
      <title>Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103651#M463848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;Colleagues, i'll try to describe problem which i have in calculating expr with search filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have main simple table with &lt;STRONG&gt;YearMonth&lt;/STRONG&gt; field and &lt;STRONG&gt;DeliveryPoint&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. Then i make one test independent field &lt;STRONG&gt;YearMonth_Test&lt;/STRONG&gt; resident main table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in pivot report i try to calculate count &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;DeliveryPoint&lt;/STRONG&gt; by &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;YearMonth_Test&lt;/STRONG&gt; dimension with such condition:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Get count &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;DeliveryPoint&lt;/STRONG&gt;&amp;nbsp; for &lt;STRONG&gt;YearMonth&lt;/STRONG&gt;=&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;YearMonth_Test&lt;/STRONG&gt;-1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For this case i set formula which get previous &lt;STRONG&gt;YearMonth&lt;/STRONG&gt; from &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;YearMonth_Test&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1))&amp;amp;num(Month(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1)),'00' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But using this formula insight search expr filter doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My necessary result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="196"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;YearMonth_Test&lt;/TD&gt;&lt;TD class="xl64" width="98"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;201504&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;201505&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;201506&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;201507&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any idea to solve it, will be very glad.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103651#M463848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T07:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103652#M463849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you want to show it ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show it in chart then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use YearMonth as dimension&lt;/P&gt;&lt;P&gt;and Expression would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT DeliveryPoint)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103652#M463849</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-06-01T07:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103653#M463850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show count by &lt;STRONG&gt;YearMonth_Test&lt;/STRONG&gt; dimension.&lt;/P&gt;&lt;P&gt;It is the test model, in which i want to test calculation of similar expression using addmonth function inside filter expr.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103653#M463850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T07:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103654#M463851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have QV now so Can you post script???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103654#M463851</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-06-01T07:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103655#M463852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD-MM-YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD-MM-YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;LOAD YearMonth, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DeliveryPoint&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Test.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Distinct&lt;/P&gt;&lt;P&gt;YearMonth as YearMonth_Temp&lt;/P&gt;&lt;P&gt;Resident Main&lt;/P&gt;&lt;P&gt;Where YearMonth&amp;gt;=201505;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;I need to make changes in expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My formula, which doesn't work:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({&amp;lt;YearMonth={"=Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1))&amp;amp;num(Month(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1)),'00' )"}&amp;gt;}DISTINCT DeliveryPoint)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103655#M463852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T07:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103656#M463853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Temp and Main table are not associated therefore it will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you tying to achieve??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing&lt;/P&gt;&lt;P&gt;What is purpose of below expression??&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Consider your YearMonth_Temp is 201505&lt;/P&gt;&lt;P&gt;then Date#() convert it into date and&lt;/P&gt;&lt;P&gt;in addmonths() your subtracting month which&lt;/P&gt;&lt;P&gt;then output of this expression &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1) &lt;/STRONG&gt;for 201505 is 201504&lt;/P&gt;&lt;P&gt;and output of this &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1)) &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;for 201505 is 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;which you can achieve without AddMonths()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;I hope you got my point. and you need to association between Main and Temp table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103656#M463853</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-06-01T07:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103657#M463854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use a straight table&lt;/P&gt;&lt;P&gt;with yearmonth as the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add 2 expressions&lt;/P&gt;&lt;P&gt;current month count({&amp;lt;MonthIndicator={1}&amp;gt;}DeliveryPoint)&lt;/P&gt;&lt;P&gt;Previous month count({&amp;lt;MonthIndicator={2}&amp;gt;}DeliveryPoint)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following script to load data and you may apply your filter for 201505(i did not put it in the script below);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delPo:&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;YearMonth,DeliveryPoint&lt;/P&gt;&lt;P&gt;201501,53&lt;/P&gt;&lt;P&gt;201501,55&lt;/P&gt;&lt;P&gt;201501,57&lt;/P&gt;&lt;P&gt;201501,59&lt;/P&gt;&lt;P&gt;201501,61&lt;/P&gt;&lt;P&gt;201501,63&lt;/P&gt;&lt;P&gt;201501,65&lt;/P&gt;&lt;P&gt;201501,67&lt;/P&gt;&lt;P&gt;201501,69&lt;/P&gt;&lt;P&gt;201501,71&lt;/P&gt;&lt;P&gt;201501,73&lt;/P&gt;&lt;P&gt;201501,75&lt;/P&gt;&lt;P&gt;201501,77&lt;/P&gt;&lt;P&gt;201501,79&lt;/P&gt;&lt;P&gt;201501,81&lt;/P&gt;&lt;P&gt;201501,83&lt;/P&gt;&lt;P&gt;201501,85&lt;/P&gt;&lt;P&gt;201501,87&lt;/P&gt;&lt;P&gt;201501,89&lt;/P&gt;&lt;P&gt;201501,91&lt;/P&gt;&lt;P&gt;201501,93&lt;/P&gt;&lt;P&gt;201501,95&lt;/P&gt;&lt;P&gt;201501,97&lt;/P&gt;&lt;P&gt;201501,99&lt;/P&gt;&lt;P&gt;201501,101&lt;/P&gt;&lt;P&gt;201501,103&lt;/P&gt;&lt;P&gt;201501,105&lt;/P&gt;&lt;P&gt;201501,107&lt;/P&gt;&lt;P&gt;201502,45&lt;/P&gt;&lt;P&gt;201502,47&lt;/P&gt;&lt;P&gt;201502,49&lt;/P&gt;&lt;P&gt;201502,51&lt;/P&gt;&lt;P&gt;201502,53&lt;/P&gt;&lt;P&gt;201502,55&lt;/P&gt;&lt;P&gt;201502,57&lt;/P&gt;&lt;P&gt;201502,59&lt;/P&gt;&lt;P&gt;201502,61&lt;/P&gt;&lt;P&gt;201502,63&lt;/P&gt;&lt;P&gt;201502,65&lt;/P&gt;&lt;P&gt;201502,67&lt;/P&gt;&lt;P&gt;201502,69&lt;/P&gt;&lt;P&gt;201502,71&lt;/P&gt;&lt;P&gt;201502,73&lt;/P&gt;&lt;P&gt;201502,75&lt;/P&gt;&lt;P&gt;201502,77&lt;/P&gt;&lt;P&gt;201502,97&lt;/P&gt;&lt;P&gt;201502,99&lt;/P&gt;&lt;P&gt;201502,101&lt;/P&gt;&lt;P&gt;201502,103&lt;/P&gt;&lt;P&gt;201502,105&lt;/P&gt;&lt;P&gt;201502,107&lt;/P&gt;&lt;P&gt;201503,45&lt;/P&gt;&lt;P&gt;201503,47&lt;/P&gt;&lt;P&gt;201503,49&lt;/P&gt;&lt;P&gt;201503,51&lt;/P&gt;&lt;P&gt;201503,53&lt;/P&gt;&lt;P&gt;201503,55&lt;/P&gt;&lt;P&gt;201503,57&lt;/P&gt;&lt;P&gt;201503,59&lt;/P&gt;&lt;P&gt;201503,61&lt;/P&gt;&lt;P&gt;201503,71&lt;/P&gt;&lt;P&gt;201503,73&lt;/P&gt;&lt;P&gt;201503,75&lt;/P&gt;&lt;P&gt;201503,77&lt;/P&gt;&lt;P&gt;201503,79&lt;/P&gt;&lt;P&gt;201503,81&lt;/P&gt;&lt;P&gt;201503,83&lt;/P&gt;&lt;P&gt;201503,85&lt;/P&gt;&lt;P&gt;201503,87&lt;/P&gt;&lt;P&gt;201503,89&lt;/P&gt;&lt;P&gt;201503,91&lt;/P&gt;&lt;P&gt;201503,93&lt;/P&gt;&lt;P&gt;201503,95&lt;/P&gt;&lt;P&gt;201503,97&lt;/P&gt;&lt;P&gt;201503,99&lt;/P&gt;&lt;P&gt;201503,101&lt;/P&gt;&lt;P&gt;201503,103&lt;/P&gt;&lt;P&gt;201503,105&lt;/P&gt;&lt;P&gt;201503,107&lt;/P&gt;&lt;P&gt;201504,45&lt;/P&gt;&lt;P&gt;201504,47&lt;/P&gt;&lt;P&gt;201504,49&lt;/P&gt;&lt;P&gt;201504,51&lt;/P&gt;&lt;P&gt;201504,53&lt;/P&gt;&lt;P&gt;201504,55&lt;/P&gt;&lt;P&gt;201504,59&lt;/P&gt;&lt;P&gt;201504,61&lt;/P&gt;&lt;P&gt;201504,63&lt;/P&gt;&lt;P&gt;201504,65&lt;/P&gt;&lt;P&gt;201504,67&lt;/P&gt;&lt;P&gt;201504,69&lt;/P&gt;&lt;P&gt;201504,71&lt;/P&gt;&lt;P&gt;201504,73&lt;/P&gt;&lt;P&gt;201504,75&lt;/P&gt;&lt;P&gt;201504,77&lt;/P&gt;&lt;P&gt;201504,79&lt;/P&gt;&lt;P&gt;201504,81&lt;/P&gt;&lt;P&gt;201504,83&lt;/P&gt;&lt;P&gt;201504,85&lt;/P&gt;&lt;P&gt;201504,87&lt;/P&gt;&lt;P&gt;201504,89&lt;/P&gt;&lt;P&gt;201504,91&lt;/P&gt;&lt;P&gt;201504,93&lt;/P&gt;&lt;P&gt;201504,95&lt;/P&gt;&lt;P&gt;201504,97&lt;/P&gt;&lt;P&gt;201504,99&lt;/P&gt;&lt;P&gt;201504,101&lt;/P&gt;&lt;P&gt;201504,103&lt;/P&gt;&lt;P&gt;201504,105&lt;/P&gt;&lt;P&gt;201504,107&lt;/P&gt;&lt;P&gt;201505,34312&lt;/P&gt;&lt;P&gt;201505,47&lt;/P&gt;&lt;P&gt;201505,49&lt;/P&gt;&lt;P&gt;201505,51&lt;/P&gt;&lt;P&gt;201505,53&lt;/P&gt;&lt;P&gt;201505,55&lt;/P&gt;&lt;P&gt;201505,544&lt;/P&gt;&lt;P&gt;201505,59&lt;/P&gt;&lt;P&gt;201505,61&lt;/P&gt;&lt;P&gt;201505,63&lt;/P&gt;&lt;P&gt;201505,65&lt;/P&gt;&lt;P&gt;201505,67&lt;/P&gt;&lt;P&gt;201505,69&lt;/P&gt;&lt;P&gt;201505,71&lt;/P&gt;&lt;P&gt;201505,73&lt;/P&gt;&lt;P&gt;201505,75&lt;/P&gt;&lt;P&gt;201505,77&lt;/P&gt;&lt;P&gt;201505,79&lt;/P&gt;&lt;P&gt;201505,81&lt;/P&gt;&lt;P&gt;201505,83&lt;/P&gt;&lt;P&gt;201505,85&lt;/P&gt;&lt;P&gt;201505,87&lt;/P&gt;&lt;P&gt;201505,89&lt;/P&gt;&lt;P&gt;201505,91&lt;/P&gt;&lt;P&gt;201505,93&lt;/P&gt;&lt;P&gt;201505,95&lt;/P&gt;&lt;P&gt;201505,97&lt;/P&gt;&lt;P&gt;201505,99&lt;/P&gt;&lt;P&gt;201505,101&lt;/P&gt;&lt;P&gt;201505,103&lt;/P&gt;&lt;P&gt;201505,105&lt;/P&gt;&lt;P&gt;201505,107&lt;/P&gt;&lt;P&gt;201506,45&lt;/P&gt;&lt;P&gt;201506,47&lt;/P&gt;&lt;P&gt;201506,49&lt;/P&gt;&lt;P&gt;201506,51&lt;/P&gt;&lt;P&gt;201506,53&lt;/P&gt;&lt;P&gt;201506,55&lt;/P&gt;&lt;P&gt;201506,1&lt;/P&gt;&lt;P&gt;201506,59&lt;/P&gt;&lt;P&gt;201506,61&lt;/P&gt;&lt;P&gt;201506,63&lt;/P&gt;&lt;P&gt;201506,65&lt;/P&gt;&lt;P&gt;201506,67&lt;/P&gt;&lt;P&gt;201506,69&lt;/P&gt;&lt;P&gt;201506,71&lt;/P&gt;&lt;P&gt;201506,6&lt;/P&gt;&lt;P&gt;201506,75&lt;/P&gt;&lt;P&gt;201506,77&lt;/P&gt;&lt;P&gt;201506,3&lt;/P&gt;&lt;P&gt;201506,81&lt;/P&gt;&lt;P&gt;201506,83&lt;/P&gt;&lt;P&gt;201506,5&lt;/P&gt;&lt;P&gt;201506,87&lt;/P&gt;&lt;P&gt;201506,89&lt;/P&gt;&lt;P&gt;201506,91&lt;/P&gt;&lt;P&gt;201506,2&lt;/P&gt;&lt;P&gt;201506,95&lt;/P&gt;&lt;P&gt;201507,63&lt;/P&gt;&lt;P&gt;201507,65&lt;/P&gt;&lt;P&gt;201507,67&lt;/P&gt;&lt;P&gt;201507,69&lt;/P&gt;&lt;P&gt;201507,71&lt;/P&gt;&lt;P&gt;201507,6&lt;/P&gt;&lt;P&gt;201507,75&lt;/P&gt;&lt;P&gt;201507,77&lt;/P&gt;&lt;P&gt;201507,3&lt;/P&gt;&lt;P&gt;201507,81&lt;/P&gt;&lt;P&gt;201507,83&lt;/P&gt;&lt;P&gt;201507,5&lt;/P&gt;&lt;P&gt;201507,87&lt;/P&gt;&lt;P&gt;201507,89&lt;/P&gt;&lt;P&gt;201507,91&lt;/P&gt;&lt;P&gt;201507,2&lt;/P&gt;&lt;P&gt;201507,95&lt;/P&gt;&lt;P&gt;201508,69&lt;/P&gt;&lt;P&gt;201508,71&lt;/P&gt;&lt;P&gt;201508,6&lt;/P&gt;&lt;P&gt;201508,75&lt;/P&gt;&lt;P&gt;201508,77&lt;/P&gt;&lt;P&gt;201508,3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transactions:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date#(YearMonth,'YYYYMM') as YearMonth ,&lt;/P&gt;&lt;P&gt;DeliveryPoint,&lt;/P&gt;&lt;P&gt;1 as MonthIndicator&lt;/P&gt;&lt;P&gt; Resident delPo;&lt;/P&gt;&lt;P&gt;concatenate LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Addmonths(Date#(YearMonth,'YYYYMM'),1),'YYYYMM') as YearMonth ,&lt;/P&gt;&lt;P&gt;DeliveryPoint,&lt;/P&gt;&lt;P&gt;2 as MonthIndicator&lt;/P&gt;&lt;P&gt; Resident delPo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; drop Table delPo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 08:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103657#M463854</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-06-01T08:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103658#M463855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My main question:&lt;/P&gt;&lt;P&gt;Consider &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;YearMonth_Temp is &lt;STRONG&gt;201505 &lt;/STRONG&gt;expression &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1))&amp;amp;num(Month(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1)),'00' ) &lt;/STRONG&gt;get 201504.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, that expression must be calculated by following logic:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;count({&amp;lt;YearMonth={"=Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1))&amp;amp;num(Month(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1)),'00' )"}&amp;gt;}DISTINCT DeliveryPoint)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;=&amp;gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;count({&amp;lt;YearMonth={201504}&amp;gt;}DISTINCT DeliveryPoint)&amp;nbsp; = 31&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;I hope, you understand what i need.&lt;/P&gt;&lt;P&gt;Thanks for response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 08:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103658#M463855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T08:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103659#M463856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then just use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(AddMonths(date#(YearMonth,'YYYYMM'),-1),'YYYYMM')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 09:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103659#M463856</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-06-01T09:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103660#M463857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({&amp;lt;YearMonth={"=date(AddMonths(date#(YearMonth_Temp,'YYYYMM'),-1),'YYYYMM')"}&amp;gt;}DISTINCT DeliveryPoint)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 09:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103660#M463857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103661#M463858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not display previous yearmonth counts in the chart with yearmonth as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try my script .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 09:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103661#M463858</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-06-01T09:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103662#M463859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126475_Untitled.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103662#M463859</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2016-06-01T10:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103663#M463860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;You show me result by YearMonth field. It will be very simple &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show result by YearMonth_Temp.&lt;/P&gt;&lt;P&gt;For example, why this formula is worked:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({&amp;lt;YearMonth={"201505"}&amp;gt;}DISTINCT DeliveryPoint)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this (which get also YearMonth 201505 for YearMonth_Temp 201506) doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({&amp;lt;YearMonth={"=Year(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1))&amp;amp;num(Month(AddMonths( date#(YearMonth_Temp,'YYYYMM'),-1)),'00' )"}&amp;gt;}DISTINCT DeliveryPoint)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103663#M463860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T10:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103664#M463861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103664#M463861</guid>
      <dc:creator />
      <dc:date>2016-06-01T10:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103665#M463862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126500_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103665#M463862</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-06-01T10:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date functions in search filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103666#M463863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Can you tell me, why it's calculated only with one selected YearMonth_Temp?&lt;/P&gt;&lt;P&gt;It show me correct result, but with your formula i need select each value from YearMonth_Temp and collect data in one please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functions-in-search-filter-in-expression/m-p/1103666#M463863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T10:42:30Z</dc:date>
    </item>
  </channel>
</rss>

