<?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: Pivot table, Dimension, set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840233#M295284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are expecting SUM of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PositionHistoryValue field, with fields which are not related to it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;It will work for&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if you use any of the below as &lt;STRONG&gt;Dimension&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;MonthName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;QuarterName &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;YearName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt; Fields(with count() or only() or other aggr functions) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RangeStartDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RangeEndDate &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So if you need to use any other field from the data model, then you need to have a link with your data model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this is helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Singh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2015 09:10:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-25T09:10:59Z</dc:date>
    <item>
      <title>Pivot table, Dimension, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840228#M295279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;In my pivot table set analysis ignore Dimensions. I don't now why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each portfolio has a set of positions. For each item, there is the concept of the gain. For a portfolio is the mean value of Heine products.&lt;/P&gt;&lt;P&gt;The formula depends on the selected date range and has been developed in QV.&lt;/P&gt;&lt;P&gt;task:&lt;/P&gt;&lt;P&gt;Make a pivot table showing the change in the average value of gain on the portfolio from time to time for all time of its existence.&lt;/P&gt;&lt;P&gt;data: (dimensions in pivot table is yellow)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="87412" alt="QV.bmp" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87412_QV.bmp" style="height: 443px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;problem:&lt;/P&gt;&lt;P&gt;Counts only all of value dimension&lt;/P&gt;&lt;P&gt;For Example Expression:&lt;/P&gt;&lt;P&gt;Sum(aggr(Sum({$&amp;lt;PositionHistoryDate = {'$(=Max(RangeEndDate))'}&amp;gt;}PositionHistoryValue),$PositionId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;SPAN style="font-size: 13.3333330154419px;"&gt;RangeEndDate associated with MonthName, QuarterName and YearName. Why it's not work? How I can do this? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 19:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840228#M295279</guid>
      <dc:creator />
      <dc:date>2015-05-24T19:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table, Dimension, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840229#M295280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will need to link your "MonthTable" table with your datamodel then calculations over loosen tables aren't recommended. See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar"&gt;The Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 06:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840229#M295280</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-25T06:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table, Dimension, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840230#M295281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, I have problem with set analysis into aggregation function. For some reason it does not take into account dimensions and calculate &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(RangeEndDate) for all MonthTable. Maybe you know how I can fix this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 07:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840230#M295281</guid>
      <dc:creator />
      <dc:date>2015-05-25T07:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table, Dimension, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840231#M295282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your Dimension table (Month Table) is not linked with rest of the data that is why your expressions not working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best solution &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;Marcus_Sommer&lt;/A&gt;‌ has given of master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you still need to use the current model, then in your expressions you need to use your dimensions like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(MonthName = 'Jan' , sum({&amp;lt;DateField = {use MonthStartdate for Jan and MonthEndDate for Jan}&amp;gt;}A),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(MonthName = 'Feb' ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where DateField is the field in your fact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works or is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 07:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840231#M295282</guid>
      <dc:creator />
      <dc:date>2015-05-25T07:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table, Dimension, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840232#M295283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;I hoped that by using MonthName, QuarterName and YearName in dimension pivot table was to limit the sample in set analysis (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;PositionHistoryDate = {'$(=Max(RangeEndDate))'}&amp;gt;}&lt;/SPAN&gt;), but it not happen. It not work because table MonthTable is not linked to main data?&lt;/P&gt;&lt;P&gt;I don't understand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps &lt;SPAN style="font-size: 13.3333330154419px;"&gt; MonthName, QuarterName and YearName, RangeStartDate and RangeEndDate are in the same table MonthTable.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 08:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840232#M295283</guid>
      <dc:creator />
      <dc:date>2015-05-25T08:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table, Dimension, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840233#M295284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are expecting SUM of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PositionHistoryValue field, with fields which are not related to it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;It will work for&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if you use any of the below as &lt;STRONG&gt;Dimension&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;MonthName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;QuarterName &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;YearName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt; Fields(with count() or only() or other aggr functions) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RangeStartDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RangeEndDate &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So if you need to use any other field from the data model, then you need to have a link with your data model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this is helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Singh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 09:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840233#M295284</guid>
      <dc:creator />
      <dc:date>2015-05-25T09:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table, Dimension, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840234#M295285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I change my data model, but value not changed.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="87440" alt="QV.bmp" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87440_QV.bmp" style="height: 706px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I think problem not in a data model.&lt;/P&gt;&lt;P&gt;I think problem in set analysis and function aggr()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 11:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840234#M295285</guid>
      <dc:creator />
      <dc:date>2015-05-25T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table, Dimension, set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840235#M295286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem isn't the aggr() or set analysis - it is the datamodel which shouldn't have any synthetic keys (unless you knows exactly what you are doing - it shouldn't be appear by accident). This meant you should have only one field which is connected between the table "MonthTable" and "Positions" or "Incomes", maybe by loading the field "MonthName" from "MonthTable" twice and convert and rename it like the field "YearMonth" from "Incomes". See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/16/synthetic-keys"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 12:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dimension-set-analysis/m-p/840235#M295286</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-25T12:11:53Z</dc:date>
    </item>
  </channel>
</rss>

