<?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 Pivot Table Set Analysis dividing sum by alternate record which must ignore dimension. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-Table-Set-Analysis-dividing-sum-by-alternate-record-which/m-p/1742601#M56864</link>
    <description>&lt;P&gt;I am creating a Pivot Table that lists multiple records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within a measure I need set analysis to divide a total based on 1 dimension by a total which is a unique record but must also utilize a second dimension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-The total is it's own separate record and cannot be a sum.&amp;nbsp;&lt;BR /&gt;-The pivot table has 1 dimension that must be included in the calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= &lt;FONT color="#339966"&gt;Sum({$&amp;lt;[FlagOne]={1},[Market] = {"$(vMarket)"},[FlagTwo]={1},&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;[ProductID_Table] = {"$(=MaxString(ProductID_VariableGroup_ID))"}&amp;gt;}[Sales])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;$&amp;lt;[FlagOne]={1},[Market] = {"$(vMarket)"},[ThisRecordIsATotalFlag]={1},&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;[ProductID_Table] = {"$(=MaxString(ProductID_VariableGroup_ID))"}&amp;gt;&lt;FONT color="#000000"&gt;}[Sales])&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The numerator is working however the denominator is ignoring a dimension. There is another dimension in the pivot table (Product Type) that I need to be different for each group. How can I tell the total set analysis to give me the total based on a dimension in the Pivot Table.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:07:35 GMT</pubDate>
    <dc:creator>rougeherring</dc:creator>
    <dc:date>2024-11-16T18:07:35Z</dc:date>
    <item>
      <title>Pivot Table Set Analysis dividing sum by alternate record which must ignore dimension.</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-Set-Analysis-dividing-sum-by-alternate-record-which/m-p/1742601#M56864</link>
      <description>&lt;P&gt;I am creating a Pivot Table that lists multiple records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within a measure I need set analysis to divide a total based on 1 dimension by a total which is a unique record but must also utilize a second dimension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-The total is it's own separate record and cannot be a sum.&amp;nbsp;&lt;BR /&gt;-The pivot table has 1 dimension that must be included in the calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= &lt;FONT color="#339966"&gt;Sum({$&amp;lt;[FlagOne]={1},[Market] = {"$(vMarket)"},[FlagTwo]={1},&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;[ProductID_Table] = {"$(=MaxString(ProductID_VariableGroup_ID))"}&amp;gt;}[Sales])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;$&amp;lt;[FlagOne]={1},[Market] = {"$(vMarket)"},[ThisRecordIsATotalFlag]={1},&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;[ProductID_Table] = {"$(=MaxString(ProductID_VariableGroup_ID))"}&amp;gt;&lt;FONT color="#000000"&gt;}[Sales])&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The numerator is working however the denominator is ignoring a dimension. There is another dimension in the pivot table (Product Type) that I need to be different for each group. How can I tell the total set analysis to give me the total based on a dimension in the Pivot Table.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-Set-Analysis-dividing-sum-by-alternate-record-which/m-p/1742601#M56864</guid>
      <dc:creator>rougeherring</dc:creator>
      <dc:date>2024-11-16T18:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Set Analysis dividing sum by alternate record which must ignore dimension.</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-Set-Analysis-dividing-sum-by-alternate-record-which/m-p/1742604#M56865</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/166"&gt;@rougeherring&lt;/a&gt;&amp;nbsp; add that dimension in total keyword. You can include your actual dimension name as I have assumed it&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;FONT color="#FF0000"&gt;TOTAL &amp;lt;Product&amp;gt;&lt;/FONT&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;$&amp;lt;[FlagOne]={1},[Market] = {"$(vMarket)"},[ThisRecordIsATotalFlag]={1},&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;[ProductID_Table] = {"$(=MaxString(ProductID_VariableGroup_ID))"}&amp;gt;&lt;FONT color="#000000"&gt;}[Sales])&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 22:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-Set-Analysis-dividing-sum-by-alternate-record-which/m-p/1742604#M56865</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-09T22:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Set Analysis dividing sum by alternate record which must ignore dimension.</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-Set-Analysis-dividing-sum-by-alternate-record-which/m-p/1742615#M56867</link>
      <description>&lt;P&gt;Unfortunately that didn't work. I added the &amp;lt;[Dimension2]&amp;gt;&amp;nbsp; as&amp;nbsp;&lt;STRONG&gt;&amp;lt;[Product]&amp;gt; &lt;/STRONG&gt;after TOTAL and now it's calculating all zeros.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pivot table has 2 dimensions, one of which I have moved above the measures to group them ([Product]). Unfortunately, it is not breaking giving me a different total for each product based on that dimension. It's giving me the sum of all 4 products together.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 01:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-Set-Analysis-dividing-sum-by-alternate-record-which/m-p/1742615#M56867</guid>
      <dc:creator>rougeherring</dc:creator>
      <dc:date>2020-09-10T01:24:02Z</dc:date>
    </item>
  </channel>
</rss>

