<?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: Formula/variable inside set analysis is not calculating as per the dimension in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32689#M5527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2018 07:28:38 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2018-04-30T07:28:38Z</dc:date>
    <item>
      <title>Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32684#M5522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;I'm making a straight table with CAL_Month as dimension and an expression to calculate the no of tickets resolved with a type 'A' and the calendar date is greater than the Maxdate using the below expression,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Count(Distinct &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;&amp;lt;MaxDate={"&amp;gt;$(=max(CAL_Date)+1)"}, C&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;AL_Year = ,CAL_Quarter = ,CAL_Month =, Type= {'A'}, Status = {'Resolved') Ticket)&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: Calibri;"&gt;This works fine in a text box where I display the value for one month at a time (I have Year &amp;amp; Month filters as well in the dashboard).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;But when I try to display the same value in a line chart for all months (ignoring the Month &amp;amp; Year selections in the dashboard) its not working fine. Because the &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;max date is not properly calculating at CAL_Month dimension level.&lt;/STRONG&gt;&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: Calibri;"&gt;I have tried below three possibilities,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Exp 2:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Count(Distinct &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;&amp;lt;MaxDate={"&amp;gt;$(=max(CAL_Date)+1)"}, C&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;AL_Year = ,CAL_Quarter = ,CAL_Month =, Type= {'A'}, Status = {'Resolved') Ticket)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Exp 3:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Count(Distinct &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;&amp;lt;MaxDate={"&amp;gt;$(=&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;max({&amp;lt;&lt;SPAN style="font-family: Calibri;"&gt;C&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;AL_Year = ,CAL_Quarter = ,CAL_Month =&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="font-family: Calibri;"&gt;CAL_Date&lt;/SPAN&gt;)+1&lt;/SPAN&gt;)"}, C&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;AL_Year = ,CAL_Quarter = ,CAL_Month =, Type= {'A'}, Status = {'Resolved') Ticket)&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: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Exp 4:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Count(Distinct &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;&amp;lt;MaxDate={"&amp;gt;$(=aggr(&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;max({&amp;lt;&lt;SPAN style="font-family: Calibri;"&gt;C&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;AL_Year = ,CAL_Quarter = ,CAL_Month =&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="font-family: Calibri;"&gt;CAL_Date&lt;/SPAN&gt;)+1&lt;/SPAN&gt;),CAL_Month)"}, C&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;AL_Year = ,CAL_Quarter = ,CAL_Month =, Type= {'A'}, Status = {'Resolved') Ticket)&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: calibri, verdana, arial, sans-serif;"&gt;Exp 5:- Here I just pasted the max date calculation separately which is working fine, but the same is not working inside a set analysis calculation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;And these results as below,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;IMG __jive_id="201037" alt="Issue.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201037_Issue.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Can you guys please help me here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2018 16:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32684#M5522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-29T16:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32685#M5523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Looks like you have MonthYear as dimension and you are trying to get for each month year max date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Set Expression is working once per chart. Not once per line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So here your Max(CAL_Date) is same for all MonthYear. Don't expect that you will get different result for MaxDate = {"&amp;gt;$(=max(CAL_Date)+1)"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You can achieve this using Aggr and If function or creating flag for max date inside script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Provide your sample data or sample app. We can try to help you in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2018 17:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32685#M5523</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-04-29T17:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32686#M5524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your reply, yes you got my problem exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too tried using Aggr &amp;amp; if conditions like below, but I didn't get the result as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(date(aggr(max(CAL_Date)+1,CAL_MonthYear),'MM/DD/YYYY') &amp;lt; date(MaxDateIn,'MM/DD/YYYY'),&lt;BR /&gt;Count(DISTINCT {&amp;lt;CAL_Year = ,CAL_Quarter = ,CAL_Month =, Type= {'A'}, Status = {'Resolved'}&amp;gt;} Ticket),0) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the sample data I'm using for this, Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2018 17:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32686#M5524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-29T17:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32687#M5525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide sample data.. Would try to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2018 19:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32687#M5525</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-04-29T19:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32688#M5526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying but not able to upload the sample data, not sure what's the issue. Is there a way to upload it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2018 19:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32688#M5526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-29T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32689#M5527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 07:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32689#M5527</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-04-30T07:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32690#M5528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I expect that the problem is the DISTINCT. In a text box, it will count distinct value across the entire model, and in the chart, it will take distinct values for the current month, but a value could be in multiple months. The solution is an Aggr() expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Sum(Aggr(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(Distinct &amp;lt;MaxDate={"&amp;gt;$(=max(CAL_Date)+1)"}, CAL_Year = ,CAL_Quarter = ,CAL_Month =, Type= {'A'}, Status = {'Resolved') Ticket)&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;, L13Month)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(assumes that you have a single dimension in the chart, L13Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 07:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32690#M5528</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-04-30T07:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32691#M5529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, I think there is some firewall block in my network, I'm uploading a sample here from my PC.In this sample data I have covered all my scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per this sample data below is my expected results both in text object and Line chart. And the issue is its working fine in Text object but not in Line chart since the Max(CAL_date) is not getting calculated at Line level (Month Year level).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1005px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0.5pt solid windowtext; border-image: none;" width="55"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;&lt;STRONG&gt;CAL_Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="64"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;&lt;STRONG&gt;CAL_Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="72"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;&lt;STRONG&gt;CAL_Quarter&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="72"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;&lt;STRONG&gt;L13M&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="103"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;&lt;STRONG&gt;Max(CAL_Date)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="102"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;&lt;STRONG&gt;Expected result both Text object &amp;amp; Line chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="537"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;&lt;STRONG&gt;Comments&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;May&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Q1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;17-May&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;5/31/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;MaxDate &amp;gt; Max(CAL_Date)+1 which means tickets resolved from June onwards with Type = 'A'&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;June&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Q1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;17-Jun&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;6/30/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;MaxDate &amp;gt; Max(CAL_Date)+1 which means tickets resolved from July onwards with Type = 'A'&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;July&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;Q2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;17-Jul&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;7/31/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri;"&gt;MaxDate &amp;gt; Max(CAL_Date)+1 which means tickets resolved from August onwards with Type = 'A'&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32691#M5529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T19:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32692#M5530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried using sum(aggr()) at month year level (That's the only dimension I have in Chart), but still I can see the Max(CAL_Date) is calculating at overall datamodel level and not at Line level/aggr(L13Month) level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to force it to calculated at Line level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 22:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32692#M5530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-30T22:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32693#M5531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using nested if conditions and forcefully join the dimension with your expression like below, this may be a stupid idea but this resolves this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(L13Month = 'Jan-2018',&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(Distinct &amp;lt;MaxDate={"&amp;gt;31-01-2018"}, CAL_Year = ,CAL_Quarter = ,CAL_Month =, Type= {'A'}, Status = {'Resolved') Ticket)&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;, &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(L13Month = 'Feb-2018',&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(Distinct &amp;lt;MaxDate={"&amp;gt;28-02-2018"}, CAL_Year = ,CAL_Quarter = ,CAL_Month =, Type= {'A'}, Status = {'Resolved') Ticket)&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;, &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering you have only 13 values always (L13Month) you can make it work, but if the values start increasing then it may cost in performance of the dashboard. In which case we need to think of a dynamic way of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shan S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 13:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32693#M5531</guid>
      <dc:creator>shansundar</dc:creator>
      <dc:date>2018-05-02T13:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/variable inside set analysis is not calculating as per the dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32694#M5532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works, yes always there are only 13 values in the x-axis so this nested if's are solving my issue. Thanks, Great!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 06:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-variable-inside-set-analysis-is-not-calculating-as-per/m-p/32694#M5532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-03T06:42:46Z</dc:date>
    </item>
  </channel>
</rss>

