<?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: Can't get the right value with Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-get-the-right-value-with-Set-analysis/m-p/2001433#M1221404</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you confirm that AUG2022 is the last month in the table where reportingDate&amp;nbsp; resides?&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does&amp;nbsp;reportingDate&amp;nbsp; has the same format as the&amp;nbsp;"8/1/2022" in its values?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 23:47:56 GMT</pubDate>
    <dc:creator>ckarras22</dc:creator>
    <dc:date>2022-11-07T23:47:56Z</dc:date>
    <item>
      <title>Can't get the right value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-get-the-right-value-with-Set-analysis/m-p/2001391#M1221402</link>
      <description>&lt;P&gt;I have a measure that tracks the number of aircrafts in service each month. I need the value for the last month of the current selection to compute the KPI for the current month.&lt;/P&gt;
&lt;P&gt;I have a measure that tracks the number of AC/month, see graph below:&lt;BR /&gt;=SUM(aircraft_in_operation)&lt;BR /&gt;&lt;BR /&gt;The column "aircraft_in_operation" contains float between 0 and 1 based on when the AC went into service (15th of the month =&amp;gt; 0.5)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Derek_T_0-1667850265365.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93029iAB2DE7BA7C3FE0E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Derek_T_0-1667850265365.png" alt="Derek_T_0-1667850265365.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;It works fine, and the value for the last month is around 160.&lt;BR /&gt;&lt;BR /&gt;Now, I've tried this set analysis to get only the value for the last month (August 2022):&lt;BR /&gt;SUM({$&amp;lt;reportingDate = {"&amp;gt;=$(=MonthStart(Max(EVENT_DATE)))"}&amp;gt;}aircraft_in_operation)&lt;/P&gt;
&lt;P&gt;"EVENT_DATE" is from my calendar table, it's connected to the table with "reportingDate " and "aircraft_in_operation" by a key (month-operator-msn).&lt;BR /&gt;&lt;BR /&gt;In the expression,&amp;nbsp;{=MonthStart(Max(EVENT_DATE))} returns the correct value of "8/1/2022", so I should get the sum just for August, which is 160 but I get a number that's +5000.&lt;BR /&gt;&lt;BR /&gt;What am I missing ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 19:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-get-the-right-value-with-Set-analysis/m-p/2001391#M1221402</guid>
      <dc:creator>Derek_T</dc:creator>
      <dc:date>2022-11-07T19:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the right value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-get-the-right-value-with-Set-analysis/m-p/2001433#M1221404</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you confirm that AUG2022 is the last month in the table where reportingDate&amp;nbsp; resides?&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does&amp;nbsp;reportingDate&amp;nbsp; has the same format as the&amp;nbsp;"8/1/2022" in its values?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 23:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-get-the-right-value-with-Set-analysis/m-p/2001433#M1221404</guid>
      <dc:creator>ckarras22</dc:creator>
      <dc:date>2022-11-07T23:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the right value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-get-the-right-value-with-Set-analysis/m-p/2001823#M1221414</link>
      <description>&lt;P&gt;Thanks, yes date format checks out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only solution I found was to store the value returned by:&amp;nbsp;&lt;SPAN&gt;{=MonthStart(Max(EVENT_DATE))} in a variable. And then use this variable in the expression.&lt;BR /&gt;&lt;BR /&gt;I don't understand why it worked using variables and not the other way&amp;nbsp;though.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-get-the-right-value-with-Set-analysis/m-p/2001823#M1221414</guid>
      <dc:creator>Derek_T</dc:creator>
      <dc:date>2022-11-08T15:15:14Z</dc:date>
    </item>
  </channel>
</rss>

