<?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: Wrong expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959032#M963764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Set expression is based on a field value not an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create a new field for Room in your load script and then use that in your set expression rather than using an expression for the room.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script&amp;nbsp; add&amp;nbsp; &lt;STRONG&gt;left(Magazijnplaats_Artikel,1) as Room&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this expression in your chart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; Count ({$&amp;lt;Room={'1'}&amp;gt;} %Key_Samniv)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2015 13:49:53 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2015-10-12T13:49:53Z</dc:date>
    <item>
      <title>Wrong expression</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959031#M963763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone an idea what could be wrong in this formula ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count ({$&amp;lt;Mid(Magazijnplaats_Artikel,1,1)={'1'}&amp;gt;} %Key_Samniv)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purpose is to count the number of orderlines (%Key_Samniv) for which articles are placed in room 1 (so for which Magazijnplaats_Artikel starts with number 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959031#M963763</guid>
      <dc:creator>petermoyaert</dc:creator>
      <dc:date>2015-10-12T13:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong expression</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959032#M963764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Set expression is based on a field value not an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create a new field for Room in your load script and then use that in your set expression rather than using an expression for the room.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script&amp;nbsp; add&amp;nbsp; &lt;STRONG&gt;left(Magazijnplaats_Artikel,1) as Room&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this expression in your chart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; Count ({$&amp;lt;Room={'1'}&amp;gt;} %Key_Samniv)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959032#M963764</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-10-12T13:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong expression</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959033#M963765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY this &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 (if(Mid(Magazijnplaats_Artikel,1,1)='1', %Key_Samniv))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959033#M963765</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-10-12T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong expression</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959034#M963766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only field names, no expressions, allowed in set modifiers left from the equal sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a new field with only the left most character &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count ({$&amp;lt;NewField = {'1'}&amp;gt;} %Key_Samniv)&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 try&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count ({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Magazijnplaats_Artikel = {"=&lt;/SPAN&gt;Mid(Magazijnplaats_Artikel,1,1)='1'"}&amp;gt;} %Key_Samniv)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959034#M963766</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-12T13:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong expression</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959035#M963767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we are making heavy weather, and you just need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count ({$&amp;lt;Magazijnplaats_Artikel={'1*'}&amp;gt;} %Key_Samniv)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie count where &lt;SPAN style="font-size: 13.3333px;"&gt;Magazijnplaats_Artikel starts with 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-expression/m-p/959035#M963767</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-12T13:58:31Z</dc:date>
    </item>
  </channel>
</rss>

