<?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: Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404902#M804029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should work... I don't see why it wouldn't&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Nov 2017 14:39:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-16T14:39:19Z</dc:date>
    <item>
      <title>Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404887#M804014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;can please soemoen correct my belwo expression ?&lt;/P&gt;&lt;P&gt;Iam trying to get the 2 years back data with the below expression ...&lt;/P&gt;&lt;P&gt;Please rectyfy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-2))&amp;lt;=$(=YearEnd(&lt;SPAN style="font-size: 13.3333px;"&gt;LoadDate&lt;/SPAN&gt;),-2))"}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404887#M804014</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404888#M804015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume Jira_LoadDate is a field. This will not be evaluated properly in the set expression. You probably need some sort of aggregation (Min or Max):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-2))&amp;lt;=$(=YearEnd(&lt;STRONG&gt;Max(Jira_LoadDate)&lt;/STRONG&gt;),-2))"}&amp;gt;}ID)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404888#M804015</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-11-16T11:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404889#M804016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create two variables:&lt;/P&gt;&lt;P&gt;1. vMaxYear-2 : = date(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;LoadDate),'YYYY') - 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. vMaxYear : =&lt;SPAN style="font-size: 13.3333px;"&gt;date(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Jira_LoadDate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;),'YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure the Purchase Date is also in 'YYYY' format. Also check the output of the variable once, since i do not know the formatas you actually have these dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxYear-2&lt;/SPAN&gt;) &amp;lt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxYear &lt;/SPAN&gt;)"}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Br,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;KC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404889#M804016</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2017-11-16T11:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404890#M804017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this as well by Addmonths by take expression to 2 years back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(=AddMonths(Max(LoadDate),-24))&amp;nbsp; &amp;lt;=$(=AddMonths( Max(Jira_LoadDate)),-24))"}&amp;gt;}ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404890#M804017</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-11-16T11:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404891#M804018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan&lt;/P&gt;&lt;P&gt;sorry..&lt;/P&gt;&lt;P&gt;the expression is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-2))&amp;lt;=$(=YearEnd(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LoadDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;),-2))"}&amp;gt;}ID)&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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;the field is Loadate ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;by mistake i type Jira_loaddate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404891#M804018</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-11-16T11:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404892#M804019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ANand sorry the expression is like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-2))&amp;lt;=$(=YearEnd(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LoadDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;),-2))"}&amp;gt;}ID)&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;the field is Loadate ...&lt;/P&gt;&lt;P&gt;by mistake i type Jira_loaddate &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404892#M804019</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-11-16T11:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404893#M804020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try jonathan suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you must max(LoadDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404893#M804020</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-11-16T11:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404894#M804021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What O/P you get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this are you have to try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-2))&amp;lt;=$(=YearEnd( &lt;STRONG&gt;Max&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LoadDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),-2)))"}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(=&lt;STRONG&gt;Yearstart&lt;/STRONG&gt;( Addmonths(Max(LoadDate),-24))) &amp;lt;=$(=&lt;STRONG&gt;YearEnd&lt;/STRONG&gt;( Addmonths( &lt;STRONG&gt;Max&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LoadDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),-24)) ))"}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404894#M804021</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-11-16T11:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404895#M804022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count({&amp;lt;[Dep]={'A'},PurchasedDate={"&amp;gt;=$(=YearStart(Max(LoadDate),-2))&amp;lt;=$(=YearEnd(Max(LoadDate))))"}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;Make sure that the format of the PurchasedDate and LoadDate is the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 12:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404895#M804022</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-11-16T12:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404896#M804023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;Hi Jonathan&lt;/P&gt;&lt;P&gt;sorry..&lt;/P&gt;&lt;P&gt;the expression is like this ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just change the field name and leave the rest of the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 12:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404896#M804023</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-11-16T12:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404897#M804024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try one of these&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;STRONG&gt;Count({&amp;lt;[Dep]={'A'}, PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate), -2))&amp;lt;=$(=&lt;SPAN style="color: #ff0000;"&gt;Date&lt;/SPAN&gt;(YearEnd(Max(&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LoadDate)&lt;/SPAN&gt;), -2)))"}&amp;gt;}ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;STRONG&gt;Count({&amp;lt;[Dep]={'A'}, PurchasedDate={"&amp;gt;=$(=Date(Yearstart(Max(LoadDate),-2), '&lt;SPAN style="color: #ff0000;"&gt;DateFieldFormatHere&lt;/SPAN&gt;'))&amp;lt;=$(=Date(YearEnd(Max(&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LoadDate)&lt;/SPAN&gt;),-2), '&lt;SPAN style="color: #ff0000;"&gt;DateFieldFormatHere&lt;/SPAN&gt;'))"}&amp;gt;} ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Make sure to use the correct format of your PurchasedDate within the set modifier.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Also, read here:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 12:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404897#M804024</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-16T12:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404898#M804025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny &lt;/P&gt;&lt;P&gt;Iam using the below the below expression ..&lt;/P&gt;&lt;P&gt;but somewhere i feel This is not correct ..PLease correct me &lt;/P&gt;&lt;P&gt;Pick(Dim,&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Department]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate)))&amp;lt;=$(=Max(LoadDate))"}&amp;gt;} Key),&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Department]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-2))&amp;lt;=$(=YearEnd(Today(),-2))"}&amp;gt;} Key)/12,&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Department]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-1))&amp;lt;=$(=YearEnd(Today(),-1))"}&amp;gt;} Key)/12,&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Department]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate)))&amp;lt;= $(=Max(LoadDate))" }&amp;gt;}Key)/12)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Date1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183530_Date1.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 13:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404898#M804025</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-11-16T13:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404899#M804026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In dimension iam using this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick(Dim,MonthName(Created),$(vloadyear)-2,$(vloadyear)-1,$(vloadyear))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vloadyear= year(LoadDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I willl be using the loadDate as a filter ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="Dataes.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183531_Dataes.PNG" style="height: auto;" /&gt;When i select any date form load date the data should display accordingly....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select 2016 from loadate it should go back and show avgof 2014 and avg 0f 2015,2016 &lt;/P&gt;&lt;P&gt;as shown in the screenshot &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 13:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404899#M804026</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-11-16T13:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404900#M804027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I understand what you want, but where is the problem? Which part of the expression not working or the whole expression not working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 14:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404900#M804027</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-16T14:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404901#M804028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny .&lt;/P&gt;&lt;P&gt;Thanks ..&lt;/P&gt;&lt;P&gt;This expression works fine ...the only doubt I have to confirm from you for the below expression is that ....if you look iam using &lt;/P&gt;&lt;P&gt;Yearend(Today() .....will this work fine ....even in the future for 2018 ...&lt;/P&gt;&lt;P&gt;Pick(Dim,&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Department]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate)))&amp;lt;=$(=Max(LoadDate))"}&amp;gt;} Key),&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Department]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-2))&amp;lt;=$(=YearEnd(Today(),-2))"}&amp;gt;} Key)/12,&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Department]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate),-1))&amp;lt;=$(=YearEnd(Today(),-1))"}&amp;gt;} Key)/12,&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Department]={'A'},PurchasedDate={"&amp;gt;=$(=Yearstart(Max(LoadDate)))&amp;lt;= $(=Max(LoadDate))" }&amp;gt;}Key)/12))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 14:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404901#M804028</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-11-16T14:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404902#M804029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should work... I don't see why it wouldn't&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 14:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404902#M804029</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-16T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1404903#M804030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Maybe try an If statement in the load that will give you all dates you want as a 1. The below should give you dates between two years and ago the end of the current Load Date month:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If(yearstart(AddYears(today(),-2))&amp;lt;=LoadDate and (MonthEnd(today())&amp;gt;=LoadDate,1,0) as YearFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Then use YearFlag in your set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({$&amp;lt;YearFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={1}, Dep={'A'}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 16:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1404903#M804030</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-11-16T16:27:30Z</dc:date>
    </item>
  </channel>
</rss>

