<?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 line chart and data points plotted using variable date v using max(date) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/line-chart-and-data-points-plotted-using-variable-date-v-using/m-p/2117861#M91205</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm puzzled by the below and need some help.&lt;/P&gt;
&lt;P&gt;If I use the following expression the associated line graph plots a data point for every month, irrespective of whether the cumulative value I'm calculating changes. The variable vUnderwayDate = '27/03/23' i.e. a fixed date in the past.&lt;/P&gt;
&lt;P&gt;Expression 1:&lt;/P&gt;
&lt;P&gt;if( MonthYearDate &amp;lt;=&lt;STRONG&gt; monthstart($(vUnderwayDate))&lt;/STRONG&gt; ,&lt;/P&gt;
&lt;P&gt;aggr(rangesum(&lt;/P&gt;
&lt;P&gt;above( Count( distinct {&amp;lt;Table = {"SIP"},&amp;nbsp;Attended? = {"Attended","Booked","In Progress"}&amp;gt;} ENo)&lt;/P&gt;
&lt;P&gt;+0*Count(distinct {$+1&amp;lt;MonthYearDate ={"&amp;gt;=$(=Min(MonthYearDate ))&amp;lt;=$(=Max(MonthYearDate ))"}&amp;gt;}ENo),&lt;/P&gt;
&lt;P&gt;0,rowno()))&lt;/P&gt;
&lt;P&gt;,MonthYearDate ))&lt;/P&gt;
&lt;P&gt;Graph 1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sa_Rah_1-1695040311195.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116495iF09DC8A0A79FED2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sa_Rah_1-1695040311195.png" alt="Sa_Rah_1-1695040311195.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However if I amend the first line as follows and replace the variable with a max(date) formula, it only plots data points where the cumulative value changed:&lt;/P&gt;
&lt;P&gt;Expression 2:&lt;/P&gt;
&lt;P&gt;if( MonthYearDate &amp;lt;=&lt;STRONG&gt; monthstart(max({&amp;lt;Attended? = {"Attended"}&amp;gt;}Date) )&lt;/STRONG&gt;,&lt;/P&gt;
&lt;P&gt;aggr(rangesum(&lt;/P&gt;
&lt;P&gt;above( Count( distinct {&amp;lt;Table = {"SIP"}, Attended? = {"Attended","Booked","In Progress"}&amp;gt;} ENo)&lt;/P&gt;
&lt;P&gt;+0*Count(distinct {$+1&amp;lt;MonthYearDate ={"&amp;gt;=$(=Min(MonthYearDate ))&amp;lt;=$(=Max(MonthYearDate ))"}&amp;gt;}ENo),&lt;/P&gt;
&lt;P&gt;0,rowno())),&lt;/P&gt;
&lt;P&gt;MonthYearDate ))&lt;/P&gt;
&lt;P&gt;Graph 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sa_Rah_0-1695040276720.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116494iF314C8113A4F38EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sa_Rah_0-1695040276720.png" alt="Sa_Rah_0-1695040276720.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help me to amend Expression 2 so that it plots data points for each month, irrespective of whether the cumulative value changes?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Sarah&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2023 12:33:11 GMT</pubDate>
    <dc:creator>Sa_Rah</dc:creator>
    <dc:date>2023-09-18T12:33:11Z</dc:date>
    <item>
      <title>line chart and data points plotted using variable date v using max(date)</title>
      <link>https://community.qlik.com/t5/App-Development/line-chart-and-data-points-plotted-using-variable-date-v-using/m-p/2117861#M91205</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm puzzled by the below and need some help.&lt;/P&gt;
&lt;P&gt;If I use the following expression the associated line graph plots a data point for every month, irrespective of whether the cumulative value I'm calculating changes. The variable vUnderwayDate = '27/03/23' i.e. a fixed date in the past.&lt;/P&gt;
&lt;P&gt;Expression 1:&lt;/P&gt;
&lt;P&gt;if( MonthYearDate &amp;lt;=&lt;STRONG&gt; monthstart($(vUnderwayDate))&lt;/STRONG&gt; ,&lt;/P&gt;
&lt;P&gt;aggr(rangesum(&lt;/P&gt;
&lt;P&gt;above( Count( distinct {&amp;lt;Table = {"SIP"},&amp;nbsp;Attended? = {"Attended","Booked","In Progress"}&amp;gt;} ENo)&lt;/P&gt;
&lt;P&gt;+0*Count(distinct {$+1&amp;lt;MonthYearDate ={"&amp;gt;=$(=Min(MonthYearDate ))&amp;lt;=$(=Max(MonthYearDate ))"}&amp;gt;}ENo),&lt;/P&gt;
&lt;P&gt;0,rowno()))&lt;/P&gt;
&lt;P&gt;,MonthYearDate ))&lt;/P&gt;
&lt;P&gt;Graph 1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sa_Rah_1-1695040311195.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116495iF09DC8A0A79FED2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sa_Rah_1-1695040311195.png" alt="Sa_Rah_1-1695040311195.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However if I amend the first line as follows and replace the variable with a max(date) formula, it only plots data points where the cumulative value changed:&lt;/P&gt;
&lt;P&gt;Expression 2:&lt;/P&gt;
&lt;P&gt;if( MonthYearDate &amp;lt;=&lt;STRONG&gt; monthstart(max({&amp;lt;Attended? = {"Attended"}&amp;gt;}Date) )&lt;/STRONG&gt;,&lt;/P&gt;
&lt;P&gt;aggr(rangesum(&lt;/P&gt;
&lt;P&gt;above( Count( distinct {&amp;lt;Table = {"SIP"}, Attended? = {"Attended","Booked","In Progress"}&amp;gt;} ENo)&lt;/P&gt;
&lt;P&gt;+0*Count(distinct {$+1&amp;lt;MonthYearDate ={"&amp;gt;=$(=Min(MonthYearDate ))&amp;lt;=$(=Max(MonthYearDate ))"}&amp;gt;}ENo),&lt;/P&gt;
&lt;P&gt;0,rowno())),&lt;/P&gt;
&lt;P&gt;MonthYearDate ))&lt;/P&gt;
&lt;P&gt;Graph 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sa_Rah_0-1695040276720.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116494iF314C8113A4F38EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sa_Rah_0-1695040276720.png" alt="Sa_Rah_0-1695040276720.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help me to amend Expression 2 so that it plots data points for each month, irrespective of whether the cumulative value changes?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Sarah&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 12:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/line-chart-and-data-points-plotted-using-variable-date-v-using/m-p/2117861#M91205</guid>
      <dc:creator>Sa_Rah</dc:creator>
      <dc:date>2023-09-18T12:33:11Z</dc:date>
    </item>
  </channel>
</rss>

