<?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 Strange behavior with pivot table and calculated dimension as second dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Strange-behavior-with-pivot-table-and-calculated-dimension-as/m-p/1575874#M41963</link>
    <description>&lt;P&gt;Hi, I'm using a pivot table with a calculated second dimension.&amp;nbsp; In order to get the sorting by the measure I created the second dimension as a calculated dimension as detailed in this community entry.&amp;nbsp;&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Order-pivot-table-by-expression/td-p/1456741" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Sense-App-Development/Order-pivot-table-by-expression/td-p/145674...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This seemed to work great but when verifying the information I started seeing some strange behavior.&amp;nbsp; Where I used the calculated dimension I see the calculated dimension listed twice but the measure is actually for a different value.&amp;nbsp; Here is the calculated dimension, it is the second dimension.&amp;nbsp; The first dimension [Billing Company] is not calculated.&lt;/P&gt;&lt;P&gt;=Dual(Category, Aggr(Sum(Amount), [Billing Company], Category))&lt;/P&gt;&lt;P&gt;And here is the sort expression. It is second in the sort order, first is [Billing Company] sorted by expression as Sum(Amount)&lt;/P&gt;&lt;P&gt;Aggr(Sum(Amount), [Billing Company], Category)&lt;/P&gt;&lt;P&gt;In the example below, the Category "Handling Fee" is listed twice.&amp;nbsp; Only filtering is done on the dates.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Category value listed twice with calculated dimension" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11315i35CFCF26D4F1E17D/image-size/large?v=v2&amp;amp;px=999" role="button" title="SameCategory2x.PNG" alt="Category value listed twice with calculated dimension" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Category value listed twice with calculated dimension&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the $7.00 amount is actually for a different category, "Kit Fee".&amp;nbsp; When I use the Category as a native field instead of the calculated dimension it looks like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Not using calculated dimension" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11317iF3319C9DA73643A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="NotUsingCalculatedDim.PNG" alt="Not using calculated dimension" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Not using calculated dimension&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And what's really strange is that if I filter by the company on the pivot table with the calculated dimension it displays correctly!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculated dimension with Billing Company filter applied" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11318iC545BE25C581A285/image-size/large?v=v2&amp;amp;px=999" role="button" title="CompanyFilterApplied.PNG" alt="Calculated dimension with Billing Company filter applied" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Calculated dimension with Billing Company filter applied&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any help / insight.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 12:18:59 GMT</pubDate>
    <dc:creator>wayne-a</dc:creator>
    <dc:date>2019-05-02T12:18:59Z</dc:date>
    <item>
      <title>Strange behavior with pivot table and calculated dimension as second dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Strange-behavior-with-pivot-table-and-calculated-dimension-as/m-p/1575874#M41963</link>
      <description>&lt;P&gt;Hi, I'm using a pivot table with a calculated second dimension.&amp;nbsp; In order to get the sorting by the measure I created the second dimension as a calculated dimension as detailed in this community entry.&amp;nbsp;&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Order-pivot-table-by-expression/td-p/1456741" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Sense-App-Development/Order-pivot-table-by-expression/td-p/145674...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This seemed to work great but when verifying the information I started seeing some strange behavior.&amp;nbsp; Where I used the calculated dimension I see the calculated dimension listed twice but the measure is actually for a different value.&amp;nbsp; Here is the calculated dimension, it is the second dimension.&amp;nbsp; The first dimension [Billing Company] is not calculated.&lt;/P&gt;&lt;P&gt;=Dual(Category, Aggr(Sum(Amount), [Billing Company], Category))&lt;/P&gt;&lt;P&gt;And here is the sort expression. It is second in the sort order, first is [Billing Company] sorted by expression as Sum(Amount)&lt;/P&gt;&lt;P&gt;Aggr(Sum(Amount), [Billing Company], Category)&lt;/P&gt;&lt;P&gt;In the example below, the Category "Handling Fee" is listed twice.&amp;nbsp; Only filtering is done on the dates.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Category value listed twice with calculated dimension" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11315i35CFCF26D4F1E17D/image-size/large?v=v2&amp;amp;px=999" role="button" title="SameCategory2x.PNG" alt="Category value listed twice with calculated dimension" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Category value listed twice with calculated dimension&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the $7.00 amount is actually for a different category, "Kit Fee".&amp;nbsp; When I use the Category as a native field instead of the calculated dimension it looks like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Not using calculated dimension" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11317iF3319C9DA73643A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="NotUsingCalculatedDim.PNG" alt="Not using calculated dimension" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Not using calculated dimension&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And what's really strange is that if I filter by the company on the pivot table with the calculated dimension it displays correctly!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculated dimension with Billing Company filter applied" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11318iC545BE25C581A285/image-size/large?v=v2&amp;amp;px=999" role="button" title="CompanyFilterApplied.PNG" alt="Calculated dimension with Billing Company filter applied" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Calculated dimension with Billing Company filter applied&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any help / insight.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 12:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Strange-behavior-with-pivot-table-and-calculated-dimension-as/m-p/1575874#M41963</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2019-05-02T12:18:59Z</dc:date>
    </item>
  </channel>
</rss>

