<?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: Set analysis in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780904#M276663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but the data looks correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agent1/USA = 10 + 15&lt;/P&gt;&lt;P&gt;Agent2/Italy = 20 + 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 14:58:11 GMT</pubDate>
    <dc:creator>awhitfield</dc:creator>
    <dc:date>2015-03-24T14:58:11Z</dc:date>
    <item>
      <title>Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780903#M276662</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;&lt;/P&gt;&lt;P&gt;in the attached example I have two tables:&lt;/P&gt;&lt;P&gt;- The first one contains the transfert day for each agent referred to the past&lt;/P&gt;&lt;P&gt;- The second one contains the states linked nowadays to every agent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to have a cross table which shows (for every state linked to every agent) the sum of the days spent in the state in the past&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example the combination Agente1/USA should show 30 days and the Agente2/Italy should shows 25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to do it with a set analysis formula (you can see it in the second line of the expression of the pivot table), but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should someone help me, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780903#M276662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T14:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780904#M276663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but the data looks correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agent1/USA = 10 + 15&lt;/P&gt;&lt;P&gt;Agent2/Italy = 20 + 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780904#M276663</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-03-24T14:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780905#M276664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, evidently I haven't been clear enough...for each agent at the present linked at every state I'd like to show the sum of the transfer days of the past in that state (regardless of the agent).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;- for the USA now linked to Agente1 it must shows 30 day, the sum of the days made in the past both by Agente1 (10) and Agente2 (20)&lt;/P&gt;&lt;P&gt;- for the Italy now linked to Agente2 it must shows 25 days, the sum of the days made in the past both by Agente1 (0, in this case) and Agente2 (25)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it's clearest now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780905#M276664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T15:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780906#M276665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between DescStato and DescStatoAssegnato,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use DescStato, I can see the data you are expecting, Do you mean to exclude China figures on DescStato?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780906#M276665</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2015-03-24T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780907#M276666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DescStato is the description of the state where in the past the transferts have been made, DescStatoAssegnato is the description of the state assigned nowadays to a single agent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780907#M276666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T15:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780908#M276667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this is going to work as I guess your code here is a snippet, but if you switch your model, so it associates on DescStato;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; DescStato,NomeAreaManager, GiorniTrasferta&lt;BR /&gt; 'USA', 'Agente1', 10&lt;BR /&gt; 'China', 'Agente1', 15&lt;BR /&gt; 'USA', 'Agente2', 20&lt;BR /&gt; 'Italy','Agente2',25&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; DescStato,NomeAreaManagerAssegnato&lt;BR /&gt; 'USA', 'Agente1'&lt;BR /&gt; 'Italy','Agente2'&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;An only(NomeAreaManagerAssegnato) function works. Obviously depends on your ability to change the code. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780908#M276667</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2015-03-24T15:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780909#M276668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or without changing your model, try this in a pivot table expression;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('DescStatoAssegnato',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DescStato&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))=0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NomeAreaManager&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DescStatoAssegnato&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DescStato&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1,2))&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780909#M276668</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2015-03-24T15:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780910#M276669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution in this case it's applicable and solves the problem...so thak you very much &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;The general solution with the set analysis I was trying to apply isn't feasible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull(DescStatoAssegnato),'',Sum({$&amp;lt;DescStato = {DescStatoAssegnato}&amp;gt;} GiorniTrasferta))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 16:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780910#M276669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780911#M276670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="2015-03-23 provo.PNG" class="image-1 jive-image" src="/legacyfs/online/81742_2015-03-23 provo.PNG" style="height: 322px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are able to rearrange your data model by connecting the two tables on country instead of agent&lt;/P&gt;&lt;P&gt;you can get away with a very simple set expression (to get rid of China that doesn't have a current responsible).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 17:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780911#M276670</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-03-24T17:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780912#M276671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, but what about if I'd must keep the connection between the agents? Is it possible to extract the same data by linking the countries by means of the set analysis (something like what I was trying to do: If(IsNull(DescStatoAssegnato),'',Sum({$&amp;lt;DescStato = {DescStatoAssegnato}&amp;gt;} GiorniTrasferta))?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to understand it for further applications...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 08:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-pivot-table/m-p/780912#M276671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-25T08:55:02Z</dc:date>
    </item>
  </channel>
</rss>

