<?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 Need help in getting expressions for pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412867#M490636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="23462" class="jive-image-thumbnail jive-image" height="104" onclick="" alt="10-14-2012 8-56-11 PM.png" src="/legacyfs/online/23462_10-14-2012 8-56-11 PM.png" width="656" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dear Qlikview Masters,&lt;/P&gt;&lt;P&gt;I am brand new to this tool and stuck in below items - &lt;/P&gt;&lt;P&gt;Overview-&lt;BR /&gt;Trying to create pivot table in qlikview to display departments attributes and fact values for resource type (FTE, Consultants,temps ext) for department groups.(Attached image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having challenges in calculating below - &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;1) Site&lt;/P&gt;&lt;P&gt;Site is a field associated to employee in database. Now , i need to display the site at department level ( means as a dimension ) which is the site for maximun number of FTE's ( For eg. If in a department , there are 20 Full time employees and out of that maximum are in kensas , then i need to display that site at department level) Tried couple of ways but no luck !!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2) Ratio&lt;/P&gt;&lt;P&gt;Total in above pivot table is actually a calculated dimension expression which shows the total number of resources for each department. Note that Total for department will not be changed at all. means not included in qlikview associated functionality.&amp;nbsp; Group column gives the group total means sum of FTE + Consultants + Temps. Now ratio is - Group / Total. Challenge is in calculating this value , because toatl in denominator is getting changed based on group. Objective is find the ratio of each group in the department. Stuck in getting the right expression&lt;/P&gt;&lt;P&gt;3) Common&lt;/P&gt;&lt;P&gt;My last challenge is to get the expression to find the common FTEs for each group. Means if Emp 1 , Emp 2 are common in Group1 , Group 2 , i should have expression called as Common, which will display 2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will really appreciate any help or guidance for above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 04:04:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-15T04:04:11Z</dc:date>
    <item>
      <title>Need help in getting expressions for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412867#M490636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="23462" class="jive-image-thumbnail jive-image" height="104" onclick="" alt="10-14-2012 8-56-11 PM.png" src="/legacyfs/online/23462_10-14-2012 8-56-11 PM.png" width="656" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dear Qlikview Masters,&lt;/P&gt;&lt;P&gt;I am brand new to this tool and stuck in below items - &lt;/P&gt;&lt;P&gt;Overview-&lt;BR /&gt;Trying to create pivot table in qlikview to display departments attributes and fact values for resource type (FTE, Consultants,temps ext) for department groups.(Attached image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having challenges in calculating below - &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;1) Site&lt;/P&gt;&lt;P&gt;Site is a field associated to employee in database. Now , i need to display the site at department level ( means as a dimension ) which is the site for maximun number of FTE's ( For eg. If in a department , there are 20 Full time employees and out of that maximum are in kensas , then i need to display that site at department level) Tried couple of ways but no luck !!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2) Ratio&lt;/P&gt;&lt;P&gt;Total in above pivot table is actually a calculated dimension expression which shows the total number of resources for each department. Note that Total for department will not be changed at all. means not included in qlikview associated functionality.&amp;nbsp; Group column gives the group total means sum of FTE + Consultants + Temps. Now ratio is - Group / Total. Challenge is in calculating this value , because toatl in denominator is getting changed based on group. Objective is find the ratio of each group in the department. Stuck in getting the right expression&lt;/P&gt;&lt;P&gt;3) Common&lt;/P&gt;&lt;P&gt;My last challenge is to get the expression to find the common FTEs for each group. Means if Emp 1 , Emp 2 are common in Group1 , Group 2 , i should have expression called as Common, which will display 2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will really appreciate any help or guidance for above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 04:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412867#M490636</guid>
      <dc:creator />
      <dc:date>2012-10-15T04:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in getting expressions for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412868#M490637</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;&lt;/P&gt;&lt;P&gt;1. Use if(rank(Site)=1,Site) as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I think, not change in denominator value , if so, use sum(sales)/sum(total sales) or sum(sales)/sum({1}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Group1 and Group2 have link? if so, use if(Group1=Group2,count(distinct Group1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 19:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412868#M490637</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-15T19:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in getting expressions for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412869#M490638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the resonse but i wish the answer could be that easy.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I got the solution for two problems &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;1) Site - I have to use SQL appraoch &amp;amp; create query in load script to get the site for max resources in department&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;2) To get the ratio, i used following expression ( as i need calculation at row/ dimension)&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;sum(total &amp;lt;Name&amp;gt; aggr( Count({1} distinct [Emp Num]), Name ))&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;3) I am still finding difficult to get teh common count of employees between the selected group , ( selection of group is generic)&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have created variable as - &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;vSET = 'p({&amp;lt;Group Name={' &amp;amp; concat(distinct Group Name,'}&amp;gt;})*p({&amp;lt;Group Name={') &amp;amp; '}&amp;gt;})' &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;and using it in my expression&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;DIV&gt;= count({&amp;lt;[Emp Num]=$(vSET) &amp;gt;}&amp;nbsp; distinct [Emp Num])&lt;BR /&gt;&lt;BR /&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;but it is not giving me correct resuilt. Any idea whats wrong&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 21:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412869#M490638</guid>
      <dc:creator />
      <dc:date>2012-10-15T21:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in getting expressions for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412870#M490639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestion or guidance on above expression please?&amp;nbsp; Thank you !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 23:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-getting-expressions-for-pivot-table/m-p/412870#M490639</guid>
      <dc:creator />
      <dc:date>2012-10-15T23:30:57Z</dc:date>
    </item>
  </channel>
</rss>

