<?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: Help needed on expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728916#M261220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vStatus:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concat( distinct [Status] , ',')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; will give you a comma delimitted list of all the distinct values in the field [Status]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substringcount(&amp;nbsp; $(vStatus) ,&amp;nbsp; ',')&amp;nbsp; + 1&amp;nbsp;&amp;nbsp; -&amp;gt; will count the number of commas in the first string (and add 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 14:34:45 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-09-30T14:34:45Z</dc:date>
    <item>
      <title>Help needed on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728915#M261219</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;Need 2 expressions as below.&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;I have to store values in my variable.&lt;/P&gt;&lt;P&gt;vStatus = ('Status', New Status', 'Old Status', 'Future Status')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. then I have to get total count of the field where above values are in.&lt;/P&gt;&lt;P&gt;=TextCount(IF(Field = vStatus))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give suggestion on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 13:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728915#M261219</guid>
      <dc:creator />
      <dc:date>2014-09-30T13:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728916#M261220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vStatus:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concat( distinct [Status] , ',')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; will give you a comma delimitted list of all the distinct values in the field [Status]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substringcount(&amp;nbsp; $(vStatus) ,&amp;nbsp; ',')&amp;nbsp; + 1&amp;nbsp;&amp;nbsp; -&amp;gt; will count the number of commas in the first string (and add 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728916#M261220</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T14:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728917#M261221</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;&lt;/P&gt;&lt;P&gt;My case may not be all the time word has "Status".&lt;/P&gt;&lt;P&gt;vStatus = ('Deleted', 'Ignored','Status', New Status', 'Old Status', 'Future Status')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure wheather it is possible or not, I want to keep all those words in variable and want to compare. Because those words may be increase/decrease so I just change variable values infuture instead of changing expression in the dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Needs to keep all the words/values here.&lt;/P&gt;&lt;P&gt;2. compare with variable. If any word existed then count as 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 15:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728917#M261221</guid>
      <dc:creator />
      <dc:date>2014-09-30T15:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728918#M261222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is OK, when I wrote [Status] i meant&amp;nbsp; 'Status' as a field name , not a field value.&amp;nbsp; If your field was called 'Call Status' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you want the list to never change and just have all possible values just add a {1} to the concat() expression:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vStatus:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concat(&amp;nbsp; {1}&amp;nbsp; distinct [Status] , ',')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; this evaluates the formula in the global context regardless of user selections, it will always have every possible Status no matter what the user selects.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is that what you want ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 15:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728918#M261222</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T15:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728919#M261223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for # 2 , you would just use this to see if the string contained in the variable 'vOtherVariable' is in the list of delimitted values in 'vStatus':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substringcount( $(vStatus) ,&amp;nbsp;&amp;nbsp; $(vOtherVariable) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only concern is if the vOtherVariable contains a word that could exist in multiple places in vStatus... like the value 'South' existing in both of the following:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'South','South America'&amp;nbsp; ... but you only want it to hit on 'South' and not 'South America'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To account for that an additional twist is needed but let me know if that is needed for your use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 15:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728919#M261223</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help needed on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728920#M261224</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;&lt;/P&gt;&lt;P&gt;I understand your solution. But my case is different, Kindly refer to the attached QVW.&lt;/P&gt;&lt;P&gt;If in future under field (F3), If I get more values (e.g. Status 4, Status 5 etc...), how can I show?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 16:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728920#M261224</guid>
      <dc:creator />
      <dc:date>2014-09-30T16:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help needed on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728921#M261225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow. This is completely different requirement. Thank you for posting your QVW / screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I altered your technique to make all test and status dynamic so the whole chart is data driven with no manual intervention needed when new status arrive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My only question is that you had 'values on data point' before and it was only partially working. What is the requirement there ( if this is good) ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68021_Capture.PNG.png" style="width: 620px; height: 347px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 16:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728921#M261225</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help needed on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728922#M261226</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;&lt;/P&gt;&lt;P&gt;The % I needs to show for only some of the Status only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. Let me implement into actual requirement and let you know.&lt;/P&gt;&lt;P&gt;Once again thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 17:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-expression/m-p/728922#M261226</guid>
      <dc:creator />
      <dc:date>2014-09-30T17:15:11Z</dc:date>
    </item>
  </channel>
</rss>

