<?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 Using Data from Island Table in chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Data-from-Island-Table-in-chart/m-p/103545#M6979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Here is my issue. Let say I have a table like this:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Date,Player1, Player2, Score1, Score2&lt;/P&gt;&lt;P&gt;04/01/2018,1,2,6,4&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;04/01/2018,3,4,5,6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;04/02/2018,2,3,5,6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;04/02/2018,4,1,5,6];&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;Now I want to crate score for each player so I can do Sum(Score1) + Sum(Score2). As the same player can be Player1 or Player2&amp;nbsp; I have created an island table to have a list of players as dimension so it will work for both columns:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Players:&lt;/P&gt;&lt;P&gt;load distinct&amp;nbsp;&amp;nbsp; Player1 as 'Players'&lt;/P&gt;&lt;P&gt;resident Master;&lt;/P&gt;&lt;P&gt;Concatenate (Players)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;load distinct&amp;nbsp; Player2 as 'Players'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;resident Tablle1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I am using a P() function to create a formula: &lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Player1] = P(Players)&amp;gt;}Score1)+sum({&amp;lt;[Player2] = P(Players)&amp;gt;}Score2). Now when I select a player it give me his total score BUT&lt;/P&gt;&lt;P&gt;When I add the 'Players' as a dimension to the bar chart the formula gives the total score (43) for each player unless I select a player.&lt;/P&gt;&lt;P&gt;My question is what I need to do so the chart will display the score per Player from the start with no selection are needed?&lt;/P&gt;&lt;P&gt;Hope the explanation makes sense.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2018 19:02:28 GMT</pubDate>
    <dc:creator>deniscamh</dc:creator>
    <dc:date>2018-11-02T19:02:28Z</dc:date>
    <item>
      <title>Using Data from Island Table in chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Data-from-Island-Table-in-chart/m-p/103545#M6979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Here is my issue. Let say I have a table like this:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Date,Player1, Player2, Score1, Score2&lt;/P&gt;&lt;P&gt;04/01/2018,1,2,6,4&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;04/01/2018,3,4,5,6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;04/02/2018,2,3,5,6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;04/02/2018,4,1,5,6];&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;Now I want to crate score for each player so I can do Sum(Score1) + Sum(Score2). As the same player can be Player1 or Player2&amp;nbsp; I have created an island table to have a list of players as dimension so it will work for both columns:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Players:&lt;/P&gt;&lt;P&gt;load distinct&amp;nbsp;&amp;nbsp; Player1 as 'Players'&lt;/P&gt;&lt;P&gt;resident Master;&lt;/P&gt;&lt;P&gt;Concatenate (Players)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;load distinct&amp;nbsp; Player2 as 'Players'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;resident Tablle1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I am using a P() function to create a formula: &lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Player1] = P(Players)&amp;gt;}Score1)+sum({&amp;lt;[Player2] = P(Players)&amp;gt;}Score2). Now when I select a player it give me his total score BUT&lt;/P&gt;&lt;P&gt;When I add the 'Players' as a dimension to the bar chart the formula gives the total score (43) for each player unless I select a player.&lt;/P&gt;&lt;P&gt;My question is what I need to do so the chart will display the score per Player from the start with no selection are needed?&lt;/P&gt;&lt;P&gt;Hope the explanation makes sense.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 19:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Data-from-Island-Table-in-chart/m-p/103545#M6979</guid>
      <dc:creator>deniscamh</dc:creator>
      <dc:date>2018-11-02T19:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Data from Island Table in chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Data-from-Island-Table-in-chart/m-p/103546#M6980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(If([Player1] = Players, Score1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(If([Player2] = Players, Score2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis doesn't work because it is evaluated per chart and not per dimension. When you have nothing selected p() is taking all possible values within Players and summing it against an island table dimension which is why 43 repeated. Using if you can evaluate your condition per row.&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/217456_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 19:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Data-from-Island-Table-in-chart/m-p/103546#M6980</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-02T19:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Data from Island Table in chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Data-from-Island-Table-in-chart/m-p/103547#M6981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Nice to hear from you!&lt;/P&gt;&lt;P&gt;Thank you very much for solution and detailed explanation!&lt;/P&gt;&lt;P&gt;Your help and knowledge is much appreciated.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 20:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Data-from-Island-Table-in-chart/m-p/103547#M6981</guid>
      <dc:creator>deniscamh</dc:creator>
      <dc:date>2018-11-02T20:10:48Z</dc:date>
    </item>
  </channel>
</rss>

