<?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 Qualifiers for Sum Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772309#M274012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;This seems like it should be so simple and yet I cannot figure out the correct qualifier for QlikView so I am turning to all the gurus in the Community... thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I need to show a metric of FTE Capacity. Simply, it should be sum(hours)/sum(month_cap). The user has the ability to select 1+ months. The Data Architect and I have approached this a couple of different ways with no working solution yet. We are trying to avoid adding a snowflake table with the month (reflected as the last day of a month) and hours.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Our FACT table has TRX_DATE which joins to the Calendar table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;1) &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 12pt;"&gt;PREFERRED: &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Added MONTH_CAP to calendar table. The issue is that the calendar table has an entry for every day and the FISCAL_MONTH_YEAR is in the table as the last day of the month (i.e. 12/31/14 = December 2014). The idea is picking one month should reflect the month_cap for that month (i.e. 160 for December 2014) and multiple months should have the sum of month_cap (I.e 320 for Dec and Jan which have 160 each).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; Sum(month_cap) here results in 160 hours a month * 31 (the number of days in the month).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;If Dec and Jan are selected, Sum(distinct month_cap) only results in 160 since Dec and Jan both have 160 hours in the month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;2) Added DAY_WORK_HOURS to calendar table so each day of work is reflected as 8 hours. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="mso-bidi-font-weight: normal; color: #000000; font-size: 12pt;"&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; here is that FISCAL_MONTH_YEAR is reflected as the last day of the month so sum(DAY_WORK_HRS) only results in 8 hours (or one day).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;3) Added an additional subset of data to the FACT table by adding a new column called ‘App’ with a value of MonthCap and the only field populated is MONTH_CAP. The populated MONTH_CAP data by resource was set to null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="mso-bidi-font-weight: normal; color: #000000; font-size: 12pt;"&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; here is &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;MONTH_CAP&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;) is now not tied to my other datasets so my dimension filters don’t work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Any suggestions would be appreciated - especially a simple qualifier for option 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Cassandra&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2015 17:53:57 GMT</pubDate>
    <dc:creator>cbaqir</dc:creator>
    <dc:date>2015-02-09T17:53:57Z</dc:date>
    <item>
      <title>Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772309#M274012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;This seems like it should be so simple and yet I cannot figure out the correct qualifier for QlikView so I am turning to all the gurus in the Community... thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I need to show a metric of FTE Capacity. Simply, it should be sum(hours)/sum(month_cap). The user has the ability to select 1+ months. The Data Architect and I have approached this a couple of different ways with no working solution yet. We are trying to avoid adding a snowflake table with the month (reflected as the last day of a month) and hours.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Our FACT table has TRX_DATE which joins to the Calendar table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;1) &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 12pt;"&gt;PREFERRED: &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Added MONTH_CAP to calendar table. The issue is that the calendar table has an entry for every day and the FISCAL_MONTH_YEAR is in the table as the last day of the month (i.e. 12/31/14 = December 2014). The idea is picking one month should reflect the month_cap for that month (i.e. 160 for December 2014) and multiple months should have the sum of month_cap (I.e 320 for Dec and Jan which have 160 each).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; Sum(month_cap) here results in 160 hours a month * 31 (the number of days in the month).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;If Dec and Jan are selected, Sum(distinct month_cap) only results in 160 since Dec and Jan both have 160 hours in the month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;2) Added DAY_WORK_HOURS to calendar table so each day of work is reflected as 8 hours. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="mso-bidi-font-weight: normal; color: #000000; font-size: 12pt;"&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; here is that FISCAL_MONTH_YEAR is reflected as the last day of the month so sum(DAY_WORK_HRS) only results in 8 hours (or one day).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;3) Added an additional subset of data to the FACT table by adding a new column called ‘App’ with a value of MonthCap and the only field populated is MONTH_CAP. The populated MONTH_CAP data by resource was set to null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="mso-bidi-font-weight: normal; color: #000000; font-size: 12pt;"&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; here is &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;MONTH_CAP&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;) is now not tied to my other datasets so my dimension filters don’t work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Any suggestions would be appreciated - especially a simple qualifier for option 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Cassandra&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 17:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772309#M274012</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-02-09T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772310#M274013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this is what you need.&amp;nbsp; I'm using expression&lt;/P&gt;&lt;P&gt;sum(if(FISCAL_MONTH_YEAR = aggr(max(TRX_DATE),FISCAL_MONTH_YEAR), MONTH_CAP))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 18:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772310#M274013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-09T18:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772311#M274014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Michael. I assume this is for Scenario 1. I will give it a shot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 19:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772311#M274014</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-02-09T19:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772312#M274015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the PREFERRED solution here depends on the size of your data... If you are dealing with a large dataset, then keeping the Month Cap in the Calendar is pretty bad, and adding a Snowflake table for every month makes things even worse. The issue here is having Measures (Hours and Month Cap) coming from different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can afford that, then personally I'd recommend the snowflake solution - it's simpler and cleaner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My second best choice would be a simplified version of Michael's solution:&lt;/P&gt;&lt;P&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;sum( aggr(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MONTH_CAP&lt;/SPAN&gt;),FISCAL_MONTH_YEAR, &amp;lt;Your Chart Dimensions&amp;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: 13px;"&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: 13px;"&gt;This formula summarizes Month_Cap values, only using one value per Month. You should remember to add your chart dimensions to the list of AGGR dimensions, or else the formula won't work.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Oleg Troyansky&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Come and learn Set Analysis and Advanced Aggregation with me at &lt;STRONG&gt;www.masterssummit.com&lt;/STRONG&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 19:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772312#M274015</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-09T19:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772313#M274016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! Can you give me an example of what you mean by "Your chart dimensions"? In some cases, I am just displaying the calc in a text box and in others, using it in a bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ADJ_CAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_CAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_MONTH_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &amp;lt;Your Chart Dimensions&amp;gt;))&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))), '#,##0') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772313#M274016</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-02-10T15:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772314#M274017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any idea why these 2 expressions would not give me the same result? Am I missing a ()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Sum([ACT_HRS])/$(vMONTH_HRS)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ACT_HRS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_CAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_MONTH_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_CAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMONTH_HRS = &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_CAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_MONTH_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_CAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 19:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772314#M274017</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-02-10T19:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772315#M274018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cassandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use this formula in a text box (no dimensions), then there is no need to add anything. In charts, simply add the Chart dimension to the list of your&amp;nbsp; AGGR dimensions, or else the formula won't return the correct result. So, for example, in a bar chart by Customer, the field Customer needs to be added to the list of AGGR dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 22:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772315#M274018</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-10T22:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772316#M274019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, let me make a comment about the formula itself... You are calculating max(MONTH_CAP) inside an AGGR function with MONTH_CAP listed as one of the dimensions... In this case, each distinct value of MONTH_CAP will be the same as its own maximum. In other words, you are not going to get your max value. Instead, you will get all individual values one by one. In this case, MONTH_CAP should not be an AGGR dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your question... in your variable definition, is it starting from an equals sign "=" ? If it does, then the expression is being evaluated once and then only the end result is being used in your chart. The other expression is being evaluated in every line of the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you post a sample, I could take a look...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 22:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772316#M274019</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-10T22:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772317#M274020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample of the chart and of the text box. Your help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cassandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772317#M274020</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-02-11T15:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772318#M274021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cassandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching your sample with some of my additions here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For the most part, you are using the formula correctly.&lt;/P&gt;&lt;P&gt;2. You don't need to repeat the Month as an AGGR dimension, one time is enough.&lt;/P&gt;&lt;P&gt;3. Don't include Month_Cap into the list&amp;nbsp; of AGGR dimensions.&lt;/P&gt;&lt;P&gt;4. Your main problem (I think) is the fact that your calendar is only partially full - only 42% of your Fiscal Months are described in the calendar. That distorts your calculation and charts that are driven by Fiscal Year and Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Come and learn Set Analysis and Advanced Aggregation with me at &lt;STRONG&gt;www.masterssummit.com&lt;/STRONG&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 17:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772318#M274021</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-11T17:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772319#M274022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Re: #4, that is just because of the sample data and shouldn't apply for my actual dashboard. Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping to make it to the SFO MastersSummit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 20:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772319#M274022</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-02-11T20:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772320#M274023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, will be glad to meet you there! You will enjoy it a lot, I promise!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 21:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772320#M274023</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-11T21:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772321#M274024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any possible way I could ask your help on the (sum( aggr(max(MONTH_CAP),FISCAL_MONTH_YEAR)) expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not working correctly in the table I have that is calculating by role and it may have something to do with the join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 21:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772321#M274024</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-02-18T21:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qualifiers for Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772322#M274025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Send me an e-mail with the description of your problem. You can find my e-mail in my profile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 21:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qualifiers-for-Sum-Expression/m-p/772322#M274025</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-18T21:50:40Z</dc:date>
    </item>
  </channel>
</rss>

