<?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 Help with expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-expressions/m-p/1383417#M421400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I want to create a Chart similar to below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales People&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; Total Sales&lt;/P&gt;&lt;P&gt;New York&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;New Jersey&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;California&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension would be state,&lt;/P&gt;&lt;P&gt;Sales would be count(salesPersonID) as of yesterday&lt;/P&gt;&lt;P&gt;Total sales would be the distinct amount of each person who made a sale(who still work as of today-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;-10 sales people work in new york,&amp;nbsp; 8 of them have made sales(dont care if they made multiple).&lt;/P&gt;&lt;P&gt;-NY could have had 2 additional employees who got fired last week who both have made a sale (making it 10, rather than &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; they are not included since they arent working as of yesterday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I cant seem to come up with the correct expressions and need help creating them.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2017 20:09:22 GMT</pubDate>
    <dc:creator>qlikofba</dc:creator>
    <dc:date>2017-08-10T20:09:22Z</dc:date>
    <item>
      <title>Help with expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expressions/m-p/1383417#M421400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I want to create a Chart similar to below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales People&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; Total Sales&lt;/P&gt;&lt;P&gt;New York&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;New Jersey&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;California&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension would be state,&lt;/P&gt;&lt;P&gt;Sales would be count(salesPersonID) as of yesterday&lt;/P&gt;&lt;P&gt;Total sales would be the distinct amount of each person who made a sale(who still work as of today-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;-10 sales people work in new york,&amp;nbsp; 8 of them have made sales(dont care if they made multiple).&lt;/P&gt;&lt;P&gt;-NY could have had 2 additional employees who got fired last week who both have made a sale (making it 10, rather than &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; they are not included since they arent working as of yesterday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I cant seem to come up with the correct expressions and need help creating them.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 20:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expressions/m-p/1383417#M421400</guid>
      <dc:creator>qlikofba</dc:creator>
      <dc:date>2017-08-10T20:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expressions/m-p/1383418#M421401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can create one flag in script with condition&lt;/P&gt;&lt;P&gt;if( working =1,1,0) as flagworking&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where working = its a field which will define if person is fired or not. this should come from database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in expression you can use : count({&amp;lt;flagworking={1}&amp;gt;}distint sales people)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 07:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expressions/m-p/1383418#M421401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T07:15:25Z</dc:date>
    </item>
  </channel>
</rss>

