<?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: Replicate excel pivot table in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041522#M350471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the raw data to be able to replicate what you have in the image?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 20:37:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-09T20:37:48Z</dc:date>
    <item>
      <title>Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041521#M350470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Pivot table format in Excel (Please see the attached .jpg file) and I would like to replicate same format in Qlikview pivot table. If I can replicate it in Qlikview then I can auto generate the reports into excel without any VBA coding on excel side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Low, Medium and High which are shown in the screen shot are not available in qlikview as dimension and I need to create them based on the below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp; New &amp;lt;=60 Then "Low"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If&amp;nbsp; New &amp;gt; 60 and &amp;lt;=300 Then "Meduim"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If&amp;nbsp; New &amp;gt;300 Then "High"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done and how..&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, 09 Mar 2016 20:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041521#M350470</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-03-09T20:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041522#M350471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the raw data to be able to replicate what you have in the image?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 20:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041522#M350471</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-09T20:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041523#M350472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to put together a sample of raw data for your use and here is the list below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Pivot_Source_Data.xlsx&lt;/P&gt;&lt;P&gt;2) Pivot_Dashboard.qvw&lt;/P&gt;&lt;P&gt;3) Pivot_Output_Format.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 21:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041523#M350472</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-03-09T21:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041524#M350473</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/117579_Capture.PNG" style="height: 92px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 01:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041524#M350473</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-10T01:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041525#M350474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that you created a field called "column' and then creating the pivot. In my case the data is dynamic and it should be calculated in the expressions, because the user will be selecting around 10 filters before exporting this pivot to Excel. Also at the total level I need to do averages. Because the data is confidential I created the source data in a simple table for this exercise. Do you think it can be done using Expressions and Dimensions on the fly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the below formulas in the expressions and trying to get it into the format: ( I am able to get the values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count (AA) &amp;lt;--------------- Items&lt;/P&gt;&lt;P&gt;=avg(Aggr(count(Used),AA,BB,CV,CD,GH))&amp;nbsp; &amp;lt;----------- Used&lt;/P&gt;&lt;P&gt;=avg(Aggr(Sum(New)/72,AA,BB,CV,CD,GH))&amp;nbsp; &amp;lt;-------------- New&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not able to replicate&amp;nbsp; the formula in the dimension to bucket them as Low, Medium and High,,,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 01:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041525#M350474</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-03-10T01:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041526#M350475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can only show the table as per your requirement as,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="a.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117584_a.PNG" style="height: 63px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;As per my understanding it is not possible to fit your requirement in single pivot table. Means you want sum/count of Items, Used, New at High,Low, Medium level and Avg at subtotal level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 05:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041526#M350475</guid>
      <dc:creator>amayuresh</dc:creator>
      <dc:date>2016-03-10T05:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041527#M350476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are saying that New is not a number coming from the database, but a calculation that takes place on the front end of the application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible to share dummy data which matches the row format of your actual data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 10:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041527#M350476</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-10T10:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041528#M350477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put something together which is almost close to the original and hope this is what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Source_Data.xlsx&lt;/P&gt;&lt;P&gt;2) Pivot_Dashboard.qvw&lt;/P&gt;&lt;P&gt;3) Pivot_Output_Format_Ver_2.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic for Low/Medium/High:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&amp;nbsp; New &amp;lt;=60 Then "Low"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&amp;nbsp; New &amp;gt; 60 and &amp;lt;=100 Then "Meduim"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&amp;nbsp; New &amp;gt;100 Then "High"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the dashboard I was able to get the low/medium/high as a Expression but want to see if we can get it as Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 13:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041528#M350477</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-03-10T13:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041529#M350478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached&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/117619_Capture.PNG" style="height: 108px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculated Dimension for High/Medium/Low:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #ff0000;"&gt;Aggr(&lt;/SPAN&gt;If(avg(Aggr(Sum(MFrontTrips)/2,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)) &amp;lt;=60,'Low',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(avg(Aggr(Sum(MFrontTrips)/2,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)) &amp;gt; 60 And avg(Aggr(Sum(MFrontTrips)/2,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)) &amp;lt;=100,'Medium',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(avg(Aggr(Sum(MFrontTrips)/2,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)) &amp;gt; 100,'High')))&lt;SPAN style="color: #ff0000;"&gt;,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041529#M350478</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-10T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041530#M350479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we get the columns Low, Medium and High in order. Meaning the columns are showing as High, Medium, Low and it has to be Low, Medium, High.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also as shown in the output format file, I need the Total columns to the right of the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we are almost there....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041530#M350479</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-03-10T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041531#M350480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a sort expression for the Range Dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Match(Aggr(If(avg(Aggr(Sum(MFrontTrips)/2,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)) &amp;lt;=60,'Low',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(avg(Aggr(Sum(MFrontTrips)/2,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)) &amp;gt; 60 And avg(Aggr(Sum(MFrontTrips)/2,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)) &amp;lt;=100,'Medium',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(avg(Aggr(Sum(MFrontTrips)/2,Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num)) &amp;gt; 100,'High'))),Detail_Descr,Place_Code,Place_Detail,Place,Num_ID,Alloc_Num),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; 'Low', 'Medium', 'High')&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/117626_Capture.PNG" style="height: 100px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041531#M350480</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-10T14:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041532#M350481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working .... Let me do few more tests because my data is very huge and I will get back to you today if there are any issues and then close this thread.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 15:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041532#M350481</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-03-10T15:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041533#M350482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just note that with a huge data-set, performance is always going to be an issue with a calculated dimension with Aggr() and if() statements. I would recommend calculating them in the script if possible so that the front end experience improves for the users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 15:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041533#M350482</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-10T15:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate excel pivot table in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041534#M350483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions and I will look into it. &lt;/P&gt;&lt;P&gt;Able to test large volumes of data since yesterday and the code is working perfect. Thank you for your time and really appreciate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-excel-pivot-table-in-qlikview/m-p/1041534#M350483</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-03-11T15:37:52Z</dc:date>
    </item>
  </channel>
</rss>

