<?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: aggregate the sum of individual months for the yearly position in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720423#M166232</link>
    <description>&lt;P&gt;Great !&amp;nbsp; For future reference, here is an example where I provide dummy data to help the Qlik community help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Set-Analysis-Show-0-in-Table-While-Respecting-Filters-w-o-using/m-p/1703607" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Set-Analysis-Show-0-in-Table-While-Respecting-Filters-w-o-using/m-p/1703607&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 15:49:12 GMT</pubDate>
    <dc:creator>JustinDallas</dc:creator>
    <dc:date>2020-06-19T15:49:12Z</dc:date>
    <item>
      <title>aggregate the sum of individual months for the yearly position</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720318#M166197</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;relatively new to Qlik Sense but I've had experience with other tools. What I'm looking for is something similar to the SumX Dax expression.&lt;/P&gt;&lt;P&gt;When I use the following calculation my formula for the individual periods are correct (the part at the end is to account for year-end adjustments - 35 days in March) but ultimately the equation is looking to calculate the structural hedge that the business area will be paying which is driven by - Average Balance for that month * Bank Base Rate (0.75% when we actioned this forecast)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&lt;FONT&gt;(((((Sum({$&amp;lt;Product={"Dummy Flex Hedging Op Bal","Flex Hedging Fixed Leg"}&amp;gt;}[Average Balance]))&lt;BR /&gt;*&lt;BR /&gt;(Avg(BBR)/100&lt;BR /&gt;*-1)&lt;BR /&gt;*Sum([Sheet1.DayCount]))/Sum([Sheet1.DaysInYear]))/Sum([Sheet1.DayCount])*Sum([Sheet1.Days])))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT&gt;Period &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Amount&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT&gt;10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -£11,575,411.24&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT&gt;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -£10,647,634.82&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT&gt;12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -£12,633,144.49&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT&gt;Grouped to yearly then gives : £34,881,060.37, when it should in&amp;nbsp; fact be: £34,856,190.55&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT&gt;However when I then group the dimension up to the yearly position the total be different to the sum of the individual months.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT&gt;The drilldown master item that I'm using is a combination of Year/Period.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT&gt;I don't fully understand the Aggr function but I thought it would look something like:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT&gt;&lt;U&gt;Sum(Aggr(&lt;/U&gt;(((((Sum({$&amp;lt;Product={"Dummy Flex Hedging Op Bal","Flex Hedging Fixed Leg"}&amp;gt;}[Average Balance]))&lt;BR /&gt;*&lt;BR /&gt;(Avg(BBR)/100&lt;BR /&gt;*-1)&lt;BR /&gt;*Sum([Sheet1.DayCount]))/Sum([Sheet1.DaysInYear]))/Sum([Sheet1.DayCount])*Sum([Sheet1.Days])))&lt;U&gt;,Period)).&lt;/U&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;That unfortunately doesn't work and returns a value of 0 for both Period/Year dimensions. If I include Nodistinct into the expression as well the values go crazy. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Any help would be greatly appreciated!!!!!!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;On a separate note, are Qlik looking into any capabilities of being able to reference master items in other master items?&amp;nbsp; I don't fully understand how the variables work at this stage.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720318#M166197</guid>
      <dc:creator>seanmanuel</dc:creator>
      <dc:date>2024-11-16T18:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate the sum of individual months for the yearly position</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720357#M166209</link>
      <description>&lt;P&gt;Do you have any dummy data that we can play with?&amp;nbsp; And it also helps to see a dummy table of what you are expecting.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 13:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720357#M166209</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2020-06-19T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate the sum of individual months for the yearly position</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720388#M166218</link>
      <description>&lt;P&gt;The below is using a SumX expression in power BI for the&amp;nbsp; SH Pay Variable BBR (M) line, in which it calculates it for each individual period and then sums those values up to get the year end value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 680px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35863iA88BB4AE12C4E2A5/image-dimensions/680x360?v=v2" width="680" height="360" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Qlik is currently doing the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 550px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35865iAD5925630D52C825/image-dimensions/550x319?v=v2" width="550" height="319" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't provide sample data unfortunately, it's confidential data and there is quite a lot going on with the tables and associations. I'm pulling BBR from a separate table (scenario table) and using that to multiply with the average balance in the "master" table.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 14:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720388#M166218</guid>
      <dc:creator>seanmanuel</dc:creator>
      <dc:date>2020-06-19T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate the sum of individual months for the yearly position</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720421#M166230</link>
      <description>&lt;P&gt;Solved the issue, I was&amp;nbsp; just being a bit slow today....&lt;/P&gt;&lt;P&gt;Sum(Aggr(xxxxxxxxxxxx, Enddate, Dim1,Dim2) was all I needed to change and it worked fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to help though!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 15:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720421#M166230</guid>
      <dc:creator>seanmanuel</dc:creator>
      <dc:date>2020-06-19T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate the sum of individual months for the yearly position</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720423#M166232</link>
      <description>&lt;P&gt;Great !&amp;nbsp; For future reference, here is an example where I provide dummy data to help the Qlik community help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Set-Analysis-Show-0-in-Table-While-Respecting-Filters-w-o-using/m-p/1703607" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Set-Analysis-Show-0-in-Table-While-Respecting-Filters-w-o-using/m-p/1703607&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 15:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/aggregate-the-sum-of-individual-months-for-the-yearly-position/m-p/1720423#M166232</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2020-06-19T15:49:12Z</dc:date>
    </item>
  </channel>
</rss>

