<?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: Win or draw where to script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116791#M896549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have an identifier which show that first 4 rows are from one game and the next 4 are from the another game you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PlayerID,Ergebnis, Heimspiel, &lt;SPAN style="color: #ff0000;"&gt;GameID&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID001,0:0,x, &lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID002,0:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID003,0:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID004,0:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID001,1:0,x, &lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID002,1:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;2&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID003,1:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;2&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID004,1:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;2&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;SPAN style="color: #ff0000;"&gt;Aggr(&lt;/SPAN&gt;If(SubField(Ergebnis, ':', 1) &amp;gt; SubField(Ergebnis, ':', 2), 1, 0)&lt;SPAN style="color: #ff0000;"&gt;, GameID)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Aggr(&lt;/STRONG&gt;If(SubField(Ergebnis, ':', 1) &amp;lt; SubField(Ergebnis, ':', 2), 1, 0)&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, GameID)&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Aggr(&lt;/STRONG&gt;If(SubField(Ergebnis, ':', 1) = SubField(Ergebnis, ':', 2), 1, 0)&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, GameID)&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133937_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2016 15:42:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-08T15:42:56Z</dc:date>
    <item>
      <title>Win or draw where to script</title>
      <link>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116788#M896546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one field called Ergebnis. in this field there are a lot of summarys.&lt;/P&gt;&lt;P&gt;My goal is it, to show a bar graph with the sum of wins, draws and so on.&lt;/P&gt;&lt;P&gt;But where can I use this code ? Directly in the script or in the bar graph ?&lt;/P&gt;&lt;P&gt;//if (Heimspiel = 'x' and left(Ergebnis,1)&amp;gt; left(Ergebnis,3), 'WIN',if (Heimspiel = 'x' and left(Ergebnis,1)= left(Ergebnis,3),'Draw,'Lose'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116788#M896546</guid>
      <dc:creator>segerchr</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Win or draw where to script</title>
      <link>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116789#M896547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133464_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;None&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(If(SubField(Ergebnis, ':', 1) &amp;gt; SubField(Ergebnis, ':', 2), 1, 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(If(SubField(Ergebnis, ':', 1) &amp;lt; SubField(Ergebnis, ':', 2), 1, 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(If(SubField(Ergebnis, ':', 1) = SubField(Ergebnis, ':', 2), 1, 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116789#M896547</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Win or draw where to script</title>
      <link>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116790#M896548</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;thanks for your answer.&lt;/P&gt;&lt;P&gt;In my datasource there are PlayerIDs and in the second line the results. Can i sum the result with an distinct or something else ?&lt;/P&gt;&lt;P&gt;My diagram should display one win and one draw &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 13:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116790#M896548</guid>
      <dc:creator>segerchr</dc:creator>
      <dc:date>2016-08-08T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Win or draw where to script</title>
      <link>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116791#M896549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have an identifier which show that first 4 rows are from one game and the next 4 are from the another game you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PlayerID,Ergebnis, Heimspiel, &lt;SPAN style="color: #ff0000;"&gt;GameID&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID001,0:0,x, &lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID002,0:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID003,0:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID004,0:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID001,1:0,x, &lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID002,1:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;2&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID003,1:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;2&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID004,1:0,x, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;2&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;SPAN style="color: #ff0000;"&gt;Aggr(&lt;/SPAN&gt;If(SubField(Ergebnis, ':', 1) &amp;gt; SubField(Ergebnis, ':', 2), 1, 0)&lt;SPAN style="color: #ff0000;"&gt;, GameID)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Aggr(&lt;/STRONG&gt;If(SubField(Ergebnis, ':', 1) &amp;lt; SubField(Ergebnis, ':', 2), 1, 0)&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, GameID)&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Aggr(&lt;/STRONG&gt;If(SubField(Ergebnis, ':', 1) = SubField(Ergebnis, ':', 2), 1, 0)&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;, GameID)&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133937_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Win-or-draw-where-to-script/m-p/1116791#M896549</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-08T15:42:56Z</dc:date>
    </item>
  </channel>
</rss>

