<?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 Dimensions not matching Totals with Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dimensions-not-matching-Totals-with-Set-Analysis/m-p/2041592#M85777</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am have problems with my row amounts&amp;nbsp; when using set analysis and dimensions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trich_0-1677171177473.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101238i6614D7E8CE974723/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trich_0-1677171177473.png" alt="Trich_0-1677171177473.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So the formula for % Total AV Test 2 .&amp;nbsp; It has percent in the name since working toward dividing. This is the correct total&lt;/P&gt;
&lt;P&gt;if(vMeasureTimeframe='Last 12 Months'&lt;BR /&gt;,sum({&amp;lt;[Cycle Date]={"$(=Max([Cycle Date]))"},IssueDate={"&amp;gt;=$(=vMinIssueDate)"}&amp;gt;} Total Contract_FundValue)&lt;BR /&gt;,sum({&amp;lt;[Cycle Date]={"$(=Max([Cycle Date]))"}&amp;gt;} Total Contract_FundValue)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Now when I try to break out this total across the dimension Rider_Type_BuyUp&amp;nbsp; it not getting amounts that add up to total.&lt;/P&gt;
&lt;P&gt;My formula for %Total AV Test 1 is as follows&lt;/P&gt;
&lt;P&gt;sum(aggr(if(vMeasureTimeframe='Last 12 Months'&lt;BR /&gt;,sum( {&amp;lt;ProductType={'FIA'},[Cycle Date]={"$(=Max([Cycle Date]))"},IssueDate={"&amp;gt;=$(=vMinIssueDate)"}&amp;gt;} Contract_FundValue)&lt;BR /&gt;,sum({&amp;lt;ProductType={'FIA'},[Cycle Date]={"$(=Max([Cycle Date]))"}&amp;gt;} Contract_FundValue)&lt;BR /&gt;),Rider_Type_BuyUp))&lt;/P&gt;
&lt;P&gt;I also tried to wrap the sum aggr around each if condition and got the same result. So, I want the column % Total AV Test 1 to equal the %&amp;nbsp;Total AV Test 2.&lt;/P&gt;
&lt;P&gt;Here how the formula for % Total AV Test 2 reconciles&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trich_1-1677172149283.png" style="width: 737px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101240i69A3F1FC40375C97/image-dimensions/737x35?v=v2" width="737" height="35" role="button" title="Trich_1-1677172149283.png" alt="Trich_1-1677172149283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 17:10:15 GMT</pubDate>
    <dc:creator>Trich</dc:creator>
    <dc:date>2023-02-23T17:10:15Z</dc:date>
    <item>
      <title>Dimensions not matching Totals with Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Dimensions-not-matching-Totals-with-Set-Analysis/m-p/2041592#M85777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am have problems with my row amounts&amp;nbsp; when using set analysis and dimensions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trich_0-1677171177473.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101238i6614D7E8CE974723/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trich_0-1677171177473.png" alt="Trich_0-1677171177473.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So the formula for % Total AV Test 2 .&amp;nbsp; It has percent in the name since working toward dividing. This is the correct total&lt;/P&gt;
&lt;P&gt;if(vMeasureTimeframe='Last 12 Months'&lt;BR /&gt;,sum({&amp;lt;[Cycle Date]={"$(=Max([Cycle Date]))"},IssueDate={"&amp;gt;=$(=vMinIssueDate)"}&amp;gt;} Total Contract_FundValue)&lt;BR /&gt;,sum({&amp;lt;[Cycle Date]={"$(=Max([Cycle Date]))"}&amp;gt;} Total Contract_FundValue)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Now when I try to break out this total across the dimension Rider_Type_BuyUp&amp;nbsp; it not getting amounts that add up to total.&lt;/P&gt;
&lt;P&gt;My formula for %Total AV Test 1 is as follows&lt;/P&gt;
&lt;P&gt;sum(aggr(if(vMeasureTimeframe='Last 12 Months'&lt;BR /&gt;,sum( {&amp;lt;ProductType={'FIA'},[Cycle Date]={"$(=Max([Cycle Date]))"},IssueDate={"&amp;gt;=$(=vMinIssueDate)"}&amp;gt;} Contract_FundValue)&lt;BR /&gt;,sum({&amp;lt;ProductType={'FIA'},[Cycle Date]={"$(=Max([Cycle Date]))"}&amp;gt;} Contract_FundValue)&lt;BR /&gt;),Rider_Type_BuyUp))&lt;/P&gt;
&lt;P&gt;I also tried to wrap the sum aggr around each if condition and got the same result. So, I want the column % Total AV Test 1 to equal the %&amp;nbsp;Total AV Test 2.&lt;/P&gt;
&lt;P&gt;Here how the formula for % Total AV Test 2 reconciles&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trich_1-1677172149283.png" style="width: 737px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101240i69A3F1FC40375C97/image-dimensions/737x35?v=v2" width="737" height="35" role="button" title="Trich_1-1677172149283.png" alt="Trich_1-1677172149283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 17:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimensions-not-matching-Totals-with-Set-Analysis/m-p/2041592#M85777</guid>
      <dc:creator>Trich</dc:creator>
      <dc:date>2023-02-23T17:10:15Z</dc:date>
    </item>
  </channel>
</rss>

