<?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: How can I plot an individual vs a group series? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644824#M447463</link>
    <description>&lt;P&gt;After try some ideas, I did it! Probably it is not the best way to do it, but it worked!&lt;/P&gt;&lt;P&gt;I defined, in the loading script, this variable:&lt;/P&gt;&lt;P&gt;SubField(IF(WildMatch(NAME,'*John*'),'Group 1','-')&amp;amp;'///'&amp;amp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF(WildMatch(NAME,'*John*','*Mary*','*Ben*','*Paul*'),'Group 2','-'),'///') as Group&lt;/P&gt;&lt;P&gt;and then, I did a table of Group values and selected Group 1 and Group 2 (to exclude any "-").&lt;/P&gt;&lt;P&gt;Lastly, I did a line graph with Month and Group as dimensions and this formula as Expression:&lt;/P&gt;&lt;P&gt;If(Group = 'Group 1', SUM(SCORE)/1, SUM(SCORE)/4).&lt;/P&gt;&lt;P&gt;Note that this allow me to include/exclude whoever I want in/from Group 1 and Group 2. It's only needed to adjust accordingly the denominators in the Expression formula.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 13:21:47 GMT</pubDate>
    <dc:creator>mlarruda</dc:creator>
    <dc:date>2019-11-08T13:21:47Z</dc:date>
    <item>
      <title>How can I plot an individual vs a group series?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644403#M447428</link>
      <description>&lt;P&gt;Hi, friends. Suppose that my data has three columns/variables: NAME, MONTH and SCORE. So, each row means that that person had that score in that month.&lt;/P&gt;&lt;P&gt;So, to plot a graphic of score per person per month I use MONTH and NAME as dimensions and SCORE as expression and it works fine. But now I want to compare one specific person (eg. John) with the overall average, but I don't know how to do it.&lt;/P&gt;&lt;P&gt;Anyone can help me to build this graphic (one line being John and other being the overall average)?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644403#M447428</guid>
      <dc:creator>mlarruda</dc:creator>
      <dc:date>2024-11-16T19:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I plot an individual vs a group series?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644453#M447432</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;well you can do it like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;create a line chart -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension : Month&lt;/P&gt;&lt;P&gt;Expression 1 : avg(Score) - this will display the result of the selected Name , you can set the label to =Only(Name)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression 2 : avg({&amp;lt;Name=e(Name)&amp;gt;}Score) - this will calculate the avg of all other values in Name field&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 18:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644453#M447432</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-11-07T18:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I plot an individual vs a group series?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644455#M447433</link>
      <description>&lt;P&gt;Thank you, but I don't see how Avg(Score) will be restricted to the Name I want to select.&lt;/P&gt;&lt;P&gt;Also, about the 2nd expression, I wanted the average for ALL Names (not excluding the one I wanto to select).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 18:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644455#M447433</guid>
      <dc:creator>mlarruda</dc:creator>
      <dc:date>2019-11-07T18:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I plot an individual vs a group series?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644824#M447463</link>
      <description>&lt;P&gt;After try some ideas, I did it! Probably it is not the best way to do it, but it worked!&lt;/P&gt;&lt;P&gt;I defined, in the loading script, this variable:&lt;/P&gt;&lt;P&gt;SubField(IF(WildMatch(NAME,'*John*'),'Group 1','-')&amp;amp;'///'&amp;amp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF(WildMatch(NAME,'*John*','*Mary*','*Ben*','*Paul*'),'Group 2','-'),'///') as Group&lt;/P&gt;&lt;P&gt;and then, I did a table of Group values and selected Group 1 and Group 2 (to exclude any "-").&lt;/P&gt;&lt;P&gt;Lastly, I did a line graph with Month and Group as dimensions and this formula as Expression:&lt;/P&gt;&lt;P&gt;If(Group = 'Group 1', SUM(SCORE)/1, SUM(SCORE)/4).&lt;/P&gt;&lt;P&gt;Note that this allow me to include/exclude whoever I want in/from Group 1 and Group 2. It's only needed to adjust accordingly the denominators in the Expression formula.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 13:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-plot-an-individual-vs-a-group-series/m-p/1644824#M447463</guid>
      <dc:creator>mlarruda</dc:creator>
      <dc:date>2019-11-08T13:21:47Z</dc:date>
    </item>
  </channel>
</rss>

