<?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: Data disappears on Year selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-disappears-on-Year-selection/m-p/1328988#M28943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data does appear when I add a '1' to the front of my Set Analysis.&amp;nbsp; I went from &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {$(=max(Year)-1)}&amp;gt;} [Stop Leg Mileage])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({1&amp;lt;Year = {$(=max(Year)-1)}&amp;gt;} [Stop Leg Mileage])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works fine.&amp;nbsp; I guess what was happening was that when the Year was selected, the data pertaining to 'Year-1' was excluded.&amp;nbsp; The 1 tells the system to ignore the Year selections made by the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2017 17:15:58 GMT</pubDate>
    <dc:creator>JustinDallas</dc:creator>
    <dc:date>2017-04-17T17:15:58Z</dc:date>
    <item>
      <title>Data disappears on Year selection</title>
      <link>https://community.qlik.com/t5/App-Development/Data-disappears-on-Year-selection/m-p/1328987#M28942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a strange issue whereby my data is disappearing from my chart when I select a year.&amp;nbsp; With nothing selected, the Max(Year) =2017 and I get a chart like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Chart_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160253_Chart_1.png" style="height: 336px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look to the right, you can see that I've got a spot for the result of Max(Year) - 1 and Max(Year).&amp;nbsp; However,&amp;nbsp; as soon as I select the Year [2017] from a filter list, all of the data that should show based on Max(Year) - 1 disappears.&lt;/P&gt;&lt;P&gt;My bar chart Expressions look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14924470778879271" jivemacro_uid="_14924470778879271"&gt;
&lt;P&gt;Sum({&amp;lt;Year = {$(=max(Year))}&amp;gt;} [Stop Leg Mileage])&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;for the current year, and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14924470840323922" jivemacro_uid="_14924470840323922"&gt;
&lt;P&gt;Sum({&amp;lt;Year = {$(=max(Year)-1)}&amp;gt;}&amp;nbsp; [Stop Leg Mileage])&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;for the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, when data falls away, it means that you haven't linked in correctly, but I've verified that the data does exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 16:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-disappears-on-Year-selection/m-p/1328987#M28942</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2017-04-17T16:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data disappears on Year selection</title>
      <link>https://community.qlik.com/t5/App-Development/Data-disappears-on-Year-selection/m-p/1328988#M28943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data does appear when I add a '1' to the front of my Set Analysis.&amp;nbsp; I went from &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {$(=max(Year)-1)}&amp;gt;} [Stop Leg Mileage])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({1&amp;lt;Year = {$(=max(Year)-1)}&amp;gt;} [Stop Leg Mileage])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works fine.&amp;nbsp; I guess what was happening was that when the Year was selected, the data pertaining to 'Year-1' was excluded.&amp;nbsp; The 1 tells the system to ignore the Year selections made by the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 17:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-disappears-on-Year-selection/m-p/1328988#M28943</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2017-04-17T17:15:58Z</dc:date>
    </item>
  </channel>
</rss>

