<?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: List Box Properties query: Two Years data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070902#M944610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try with my suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 13:40:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-12T13:40:29Z</dc:date>
    <item>
      <title>List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070896#M944604</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;&lt;/P&gt;&lt;P&gt;I originally had list box properties to pull 2015 data only. I want it now to show 2015 or 2016 depending on what Year filter is selected. I have used the below script with the bold being the 2015 information to&amp;nbsp; be included but the result does not seem correct to me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? Or any way I can reduce the below ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num (Count(Distinct If([Company.Car Order]='Ford' AND [Status]='Completed' AND InYear([Completed Date], Today(), 0)&lt;STRONG&gt; or InYear([Completed Date], Today(), -1)&lt;/STRONG&gt;, [Id], )), '###,###')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070896#M944604</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T11:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070897#M944605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Num (Count(Distinct If([Company Car Order]='Ford' AND [Status]='Completed' AND &lt;/P&gt;&lt;P&gt;InYear([Completed Date], Today(), 0) or InYear([Completed Date], Today(), -1) Id)) '###,###')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070897#M944605</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-01-12T11:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070898#M944606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;[Company.Car Order] = {'Ford'}, Status = {'Completed'}, Year = {$(=Max(Year)}&amp;gt;} Id)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070898#M944606</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T12:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070899#M944607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No harm trying like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Take two variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let V1=max(YearField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let V2=max(YearField)-1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=num(Count(Disctinct {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Company.Car Order]={'Ford'} , [Status]={'Completed'}, &lt;STRONG&gt;YearField={'&amp;gt;=$(=V2)&amp;lt;=$(=V1)'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Id]), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; '###,###'&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070899#M944607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T12:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070900#M944608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you're well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will&lt;STRONG&gt; Year = {$(=Max(Year)}&amp;gt;}&lt;/STRONG&gt; show all years? I only want it to show '15 &amp;amp; '16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070900#M944608</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T13:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070901#M944609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it will only show the max year. If nothing is selected and 2016 is the max year than it will show the data for 2016. If you make a selection on 2015, max year changes to 2015 and you will see the results for 2015.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070901#M944609</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070902#M944610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try with my suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070902#M944610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070903#M944611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah great, that worked a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I apply the same principle to use the InQuarter function I get "Error", whats wrong with the below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;[Activity.Order] = {'Completed'},{&amp;lt;[Activity.Order Date]= {'InQuarter'}, Year = {$(=Max(Year)}&amp;gt;}, [Activity Id])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070903#M944611</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T14:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070904#M944612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balrai, I tried it momentarily and I couldnt get it working for me so I reverted to another suggestion. Thanks though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070904#M944612</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T14:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070905#M944613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You seems to have extra &lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;/SPAN&gt; &lt;/STRONG&gt;in there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[Activity.Order] = {'Completed'},&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;/SPAN&gt;[Activity.Order Date]= {'InQuarter'}, Year = {$(=Max(Year)}&amp;gt;}, [Activity Id])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try removing it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[Activity.Order] = {'Completed'}, [Activity.Order Date]= {'InQuarter'}, Year = {$(=Max(Year)}&amp;gt;}, [Activity Id])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070905#M944613</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T14:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070906#M944614</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;&lt;/P&gt;&lt;P&gt;Removed the extra ( but still no luck. Could it be do it with the last Max(Year) part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111384_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070906#M944614</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070907#M944616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the screenshot for the whole expression. Also do you have a field named Year (check for the exact case match Year vs. YEAR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070907#M944616</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070908#M944618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111390_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 15:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070908#M944618</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T15:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070909#M944620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the comma in the end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&amp;gt;}[Activity Id])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And closed square bracket ']' missing in max activity date..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 15:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070909#M944620</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-01-12T15:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070910#M944622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still no luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe better to rethink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to split # of activities by quarter and depending on year the user has selected........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070910#M944622</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T16:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Properties query: Two Years data</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070911#M944624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would also check if the field name is Year or Activity.Year or some other variation because that is where the expressions seems to be going wrong from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Properties-query-Two-Years-data/m-p/1070911#M944624</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-12T16:39:04Z</dc:date>
    </item>
  </channel>
</rss>

