<?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: Error in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043267#M465343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your ideas, the good news is that now my chart shows the result but it doesn't give me only 6 months but more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following my selection on déc-2015 i want Qlikview to show me the month of nov-2015, oct-2015, sept-2015, aug-2015 and jul-2015&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118946_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;but instead, it is giving me all the months before dec-2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/118947_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Any idea how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hasvine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 10:21:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-22T10:21:06Z</dc:date>
    <item>
      <title>Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043259#M465335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Mois_enquete_calcul={'&amp;gt;=$(=Max(Mois_enquete_calcul) - 5)&amp;lt;=$(=Max(Mois_enquete_calcul))'},Q11={'OUI'}, MARQUE={'CITROEN'}&amp;gt;}Q11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview says that the Expression OK but unfortunately I do not get any result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hasvine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043259#M465335</guid>
      <dc:creator />
      <dc:date>2016-03-22T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043260#M465336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;=Count({&amp;lt;Mois_enquete_calcul&lt;STRONG&gt;={"&amp;gt;&lt;/STRONG&gt;=$(=Max(Mois_enquete_calcul) - 5)&amp;lt;=$(=Max(Mois_enquete_calcul)&lt;STRONG&gt;)"},&lt;/STRONG&gt;Q11={'OUI'}, MARQUE={'CITROEN'}&amp;gt;}Q11)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043260#M465336</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-03-22T09:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043261#M465337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax of the expressions is fine. Please post a small qlikview document that demonstrates the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043261#M465337</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-22T09:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043262#M465338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mois_enquete_calcul is in proper date format then below expression should work&lt;/SPAN&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;Count({&amp;lt;Mois_enquete_calcul={"&amp;gt;=$(=Max(Mois_enquete_calcul) - 5)&amp;lt;=$(=Max(Mois_enquete_calcul))"},Q11={'OUI'}, MARQUE={'CITROEN'}&amp;gt;}Q11)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043262#M465338</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-22T09:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043263#M465339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But if Mois_enquete_calcul is in the format of Month-Year.&lt;/P&gt;&lt;P&gt;I used the expression below to calculte it:&lt;/P&gt;&lt;P&gt;Month(subfield([DATE_FACTURATION], ' ' ,1)) &amp;amp; '-' &amp;amp;&amp;nbsp; Year(subfield([DATE_FACTURATION], ' ' ,1)) as Mois_enquete_calcul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how it looks like:&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/118944_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks to everyone for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Hasvine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043263#M465339</guid>
      <dc:creator />
      <dc:date>2016-03-22T10:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043264#M465340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you put this Expression in a straight table, what does is stand in the "label header" if you keep it blank and hover over it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043264#M465340</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-03-22T10:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043265#M465341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so it's a text field. The max function doesn't work well with text fields. Try creating it like this:&lt;/P&gt;&lt;P&gt;Date(MonthStart(subfield(DATE_FACTURATION,' ')),'MMM-YYYY') as Mois_enquite_calcul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043265#M465341</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-22T10:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043266#M465342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's in not proper date format, do this like below&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;date(date#(Month(subfield([DATE_FACTURATION], ' ' ,1)) &amp;amp; '-' &amp;amp;&amp;nbsp; Year(subfield([DATE_FACTURATION], ' ' ,1)),'MMM-YYYY'),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MMM-YYYY')&lt;/SPAN&gt; as Mois_enquete_calcul&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;Now your expression should work&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043266#M465342</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-22T10:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043267#M465343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your ideas, the good news is that now my chart shows the result but it doesn't give me only 6 months but more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following my selection on déc-2015 i want Qlikview to show me the month of nov-2015, oct-2015, sept-2015, aug-2015 and jul-2015&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118946_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;but instead, it is giving me all the months before dec-2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/118947_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Any idea how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hasvine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043267#M465343</guid>
      <dc:creator />
      <dc:date>2016-03-22T10:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043268#M465344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try this,&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;Count({&amp;lt;Mois_enquete_calcul={"&amp;gt;=$(=(Addmonth(&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Mois_enquete_calcul&lt;/SPAN&gt;, - 5)))&amp;lt;=$(=(Addmonth(&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Mois_enquete_calcul&lt;/SPAN&gt;,0)))"},..........&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-expression/m-p/1043268#M465344</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-03-22T19:12:04Z</dc:date>
    </item>
  </channel>
</rss>

