<?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: Viewing data as a sequence in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086865#M641552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't really understood what you want to do with the 'Ball in play' case (there are also other cases, like 'Walk' or 'Hit by pitch' in [Pitch Count] field.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can start with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *, RANGESUM(SUBFIELD([Pitch Count],'--',1),SUBFIELD([Pitch Count],'--',2)) as Pitch;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD [Pitchers Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Pitch Type], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Game Pitch Result], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Pitch Count], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Sample Data.csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a straight table chart with Pitch as dimension, and &lt;/P&gt;&lt;P&gt;=Mode([Pitch Type]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Pitch&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Mode([Pitch Type])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;Change Up &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Screw Ball&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Change Up&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Curve Ball&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;5&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Drop Ball&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Curve Ball&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 10:06:15 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-02-10T10:06:15Z</dc:date>
    <item>
      <title>Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086864#M641551</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 been struggling with the problem for a couple of weeks now&lt;/P&gt;&lt;P&gt;I am a novice at Qlikview and just unable to get this right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to work out the top sequence of Pitch Type for the 1st 3 Pitches&lt;/P&gt;&lt;P&gt;I have attached a sample data file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I use Pitch Count to determine order of Pitches&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1--0 or 0--1 = 1st Pitch&lt;/P&gt;&lt;P&gt;1--1,2--0,0--2 = 2nd Pitch&lt;/P&gt;&lt;P&gt;Strikeout,3--0,2--1,1--2 = 3rd Pitch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the Pitch count column is empty when the Batter makes contact with the ball. As a result, Pitch Result has a value 'Ball in Play'&lt;/P&gt;&lt;P&gt;So when this happens, Pitch Count is empty and could equal 1st, 2nd or 3rd pitch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to determine the most common Pitch Type sequence for the 1st 3 pitches (i.e Fast Ball, Change Up, Screw Ball)&lt;/P&gt;&lt;P&gt;Please could someone help as this is a really important stat for Baseball and Softball&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 04:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086864#M641551</guid>
      <dc:creator />
      <dc:date>2016-02-10T04:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086865#M641552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't really understood what you want to do with the 'Ball in play' case (there are also other cases, like 'Walk' or 'Hit by pitch' in [Pitch Count] field.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can start with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *, RANGESUM(SUBFIELD([Pitch Count],'--',1),SUBFIELD([Pitch Count],'--',2)) as Pitch;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD [Pitchers Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Pitch Type], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Game Pitch Result], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Pitch Count], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Sample Data.csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a straight table chart with Pitch as dimension, and &lt;/P&gt;&lt;P&gt;=Mode([Pitch Type]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Pitch&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Mode([Pitch Type])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;Change Up &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Screw Ball&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Change Up&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Curve Ball&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;5&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Drop Ball&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Curve Ball&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 10:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086865#M641552</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-10T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086866#M641553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, the expression works&lt;/P&gt;&lt;P&gt;However, when the Pitch Result column has the value ''Ball in Play'', the expression does not take into account the Pitch Type as this Pitch Count column is empty and hence show 1 less pitch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086866#M641553</guid>
      <dc:creator />
      <dc:date>2016-02-10T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086867#M641554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still unsure about the required logic since I don't really know baseball.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if([Game Pitch Result] = 'Ball in Play', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rangesum(Peek(Pitch),1), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rangesum(SUBFIELD([Pitch Count],'--',1),SUBFIELD([Pitch Count],'--',2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) as Pitch,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RowNo() as RowNo&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD [Pitchers Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Pitch Type], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Game Pitch Result], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Pitch Count], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 14:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086867#M641554</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-10T14:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086868#M641555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. It works&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086868#M641555</guid>
      <dc:creator />
      <dc:date>2016-02-11T08:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086869#M641556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the correct answer with Correct Answer and optionally any Helpful replies.&lt;/P&gt;&lt;P&gt;If not, please let us know what part of your question still needs help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086869#M641556</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-02-11T08:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086870#M641557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Onno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see the Correct Answer icon on my PC. I have used multiple browsers and still cannot locate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086870#M641557</guid>
      <dc:creator />
      <dc:date>2016-02-11T08:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086871#M641558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another way to sum the subfields could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evaluate(Replace([Pitch Count],'--','+'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 12:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086871#M641558</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-02-11T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing data as a sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086872#M641559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to access the thread not from the inbox, but by following the link e.g. by clicking on the title.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 12:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Viewing-data-as-a-sequence/m-p/1086872#M641559</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-11T12:12:06Z</dc:date>
    </item>
  </channel>
</rss>

