<?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 Script Help. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1004766#M959729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Help me am facing syntax errore:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1)Count of Customer Who Made Sales&amp;nbsp; ie when flag =1 and count 0f flag=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2)Total Revenue of last year in Percentage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;3)Count of Dealers In Year (2010) where sales flag =1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Nov 2015 15:33:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-01T15:33:22Z</dc:date>
    <item>
      <title>Script Help.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1004766#M959729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Help me am facing syntax errore:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1)Count of Customer Who Made Sales&amp;nbsp; ie when flag =1 and count 0f flag=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2)Total Revenue of last year in Percentage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;3)Count of Dealers In Year (2010) where sales flag =1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Nov 2015 15:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1004766#M959729</guid>
      <dc:creator />
      <dc:date>2015-11-01T15:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1004767#M959730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find below:&lt;/P&gt;&lt;P&gt;Question1:&lt;/P&gt;&lt;P&gt;='1)Count of Customer Who Made Sales when Flag =1 : ' &amp;amp; Count({&amp;lt;Sales_Flage={1}&amp;gt;}Customer_Code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='1)Count of Customer Who Made Sales when Flag =0 : ' &amp;amp; Count({&amp;lt;Sales_Flage={0}&amp;gt;}Customer_Code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Question2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;='2)Total Revenue of last year in Percentage : ' &amp;amp; Num(sum({&amp;lt;Year={2010}&amp;gt;}Gross_Sale-Discount)/sum({&amp;lt;Year={2010}&amp;gt;}Gross_Sale),'###0.00%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Question3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;='3)Count of Dealers In Year (2010) where sales flag =1' &amp;amp; Count({&amp;lt;Sales_Flage={1},Category={"Drealer"},Year={2010}&amp;gt;} DISTINCT Customer_Code)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Nov 2015 16:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1004767#M959730</guid>
      <dc:creator />
      <dc:date>2015-11-01T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1004768#M959732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;Sales_Flage={1},Year={$(=max(Year))}&amp;gt;} distinct Customer_Code)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;Sales_Flage={0},Year={$(=max(Year))}&amp;gt;} distinct Customer_Code)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or without the year filter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;Sales_Flage={1}&amp;gt;} distinct Customer_Code)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;Sales_Flage={0}&amp;gt;} distinct Customer_Code)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;maybe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;num(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Year={'$(=Max(Year))'}&amp;gt;}&amp;nbsp; (Gross_Sale-Discount)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / sum({$&amp;lt;Year={'$(=Max(Year)-1)'}&amp;gt;}&amp;nbsp; (Gross_Sale-Discount)) -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;, '#,##0.0%')&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;for the count of dealer here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[Category]={'Dealer'}&amp;gt;})&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103665_1.png" style="height: auto; width: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;you need a field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=count({$&amp;lt;[Category]={Dealer},Year={2010}&amp;gt;} distinct Customer_Code)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;Category={Dealer},Year={$(=max(Year))}&amp;gt;} distinct Customer_Code)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Nov 2015 16:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1004768#M959732</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-01T16:12:21Z</dc:date>
    </item>
  </channel>
</rss>

