<?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: Count by values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22994#M3855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although not as efficient as Peek()/Previous() pointed out by &lt;A href="https://community.qlik.com/people/rubenmarin"&gt;rubenmarin&lt;/A&gt;‌, but AutoNumber is another possible solution for the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD XX,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(RowNo(), XX) as Counting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reisdent ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order by XX;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2018 18:01:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-30T18:01:19Z</dc:date>
    <item>
      <title>Count by values</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22992#M3853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Hi community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I need to calculate a counting in a simple table chart using the values of one the columns, which values are not unique.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I want a result that look like the following example&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background: white; border: none;" width="111"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: white; font-size: 10.0pt; font-family: 'inherit','serif';"&gt;&lt;STRONG&gt;XX&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; background: yellow; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: 'inherit','serif';"&gt;&lt;STRONG&gt;Counting&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I tried to use rowno(TOTAL) but that is not the solution for my needs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I will really appreciate any hint to solve that&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Ivan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 13:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22992#M3853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-30T13:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count by values</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22993#M3854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan, a chart will group values based on the dimensións used, if there is only one dimension, there will be only one value per row, so I think you will need at least a second dimensión wich tells why to paint 3 different 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script you can add this counter using a sorted load and Peek() or Previous():&lt;/P&gt;&lt;P&gt;LOAD XX,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Peek('XX')=XX, RangeSum(Peek('Counting'), 1), 1) as Counting&lt;/P&gt;&lt;P&gt;Resident TableName&lt;/P&gt;&lt;P&gt;Order By XX, OtherSortingFields;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 17:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22993#M3854</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-01-30T17:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count by values</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22994#M3855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although not as efficient as Peek()/Previous() pointed out by &lt;A href="https://community.qlik.com/people/rubenmarin"&gt;rubenmarin&lt;/A&gt;‌, but AutoNumber is another possible solution for the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD XX,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(RowNo(), XX) as Counting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reisdent ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order by XX;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 18:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22994#M3855</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-30T18:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count by values</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22995#M3856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another expression using Ruben's Peek(). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;XX&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN(Table1)&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD *, IF(XX = Previous(XX), Peek(Counting)+1, 1) AS Counting&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Order By XX;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 18:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-by-values/m-p/22995#M3856</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-01-30T18:23:55Z</dc:date>
    </item>
  </channel>
</rss>

