<?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 Count If Set Expression / Count total expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-If-Set-Expression-Count-total-expression/m-p/912421#M986635</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;I have the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum({&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [ABC]) &amp;lt;= 1 , count({&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [Ship-to Code]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which when used in a straight table with product as a dimension gives me the count of ship-to that have an ABC less than or equal to 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I then want to do is calculate this as a % of total, which also in a straight table is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [ABC])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, clearly I need this as count of the number of ship-to's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So... what I am trying to get to is the count of ship-to's with an ABC less than or equal to 1 as a percentage of the total count of ship-to's in a straight table with product as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this isn't very clear!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks folks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 15:48:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-05T15:48:27Z</dc:date>
    <item>
      <title>Count If Set Expression / Count total expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Set-Expression-Count-total-expression/m-p/912421#M986635</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;I have the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum({&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [ABC]) &amp;lt;= 1 , count({&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [Ship-to Code]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which when used in a straight table with product as a dimension gives me the count of ship-to that have an ABC less than or equal to 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I then want to do is calculate this as a % of total, which also in a straight table is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [ABC])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, clearly I need this as count of the number of ship-to's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So... what I am trying to get to is the count of ship-to's with an ABC less than or equal to 1 as a percentage of the total count of ship-to's in a straight table with product as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this isn't very clear!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks folks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Set-Expression-Count-total-expression/m-p/912421#M986635</guid>
      <dc:creator />
      <dc:date>2015-08-05T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Set Expression / Count total expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Set-Expression-Count-total-expression/m-p/912422#M986636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please share a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be like this,but not sure without seeing the data:&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; if(sum({&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [ABC]) &amp;lt;= 1 , &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;&amp;nbsp;&amp;nbsp; count({&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [Ship-to Code]))&amp;nbsp; /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; count( total {&amp;lt;Week_Commencing = {'$(vMaxDate)'}&amp;gt;} [Ship-to Code])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and format the output with num() function according&amp;nbsp; to the requirement.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Set-Expression-Count-total-expression/m-p/912422#M986636</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-05T15:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Set Expression / Count total expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Set-Expression-Count-total-expression/m-p/912423#M986637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post your application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 18:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Set-Expression-Count-total-expression/m-p/912423#M986637</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-05T18:39:47Z</dc:date>
    </item>
  </channel>
</rss>

