<?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: show data for latest month in chart qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1961798#M79293</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Can anyone please help on this ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 13:48:18 GMT</pubDate>
    <dc:creator>Aspiring_Developer</dc:creator>
    <dc:date>2022-07-28T13:48:18Z</dc:date>
    <item>
      <title>show data for latest month in chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1959847#M79114</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have below table having dates till Dec 2022 .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1658740474089.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84970iA810E29429E611A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_0-1658740474089.png" alt="Aspiring_Developer_0-1658740474089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Dates are coming till Dec 2022 due to master calendar. If I uncheck the options of suppressing zero values for add ons I get the below :-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_1-1658740558898.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84971i4D6C9C137FAF7960/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_1-1658740558898.png" alt="Aspiring_Developer_1-1658740558898.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1658740816751.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84972i05AA123DEAAC3288/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_0-1658740816751.png" alt="Aspiring_Developer_0-1658740816751.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As of now I have the data till April 2022 and my requirement is to show data for latest loaded month in this chart .&lt;/P&gt;
&lt;P&gt;I tried using max date but my maximum month is dec 2022.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought of using addmonths(max(date),-8) , it will give&amp;nbsp; me april but then it will be static. I wish to show the latest loade month in this chart.&lt;/P&gt;
&lt;P&gt;Here is my master calendar script:-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1658741175537.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84975iE04EEB4A2352A095/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_0-1658741175537.png" alt="Aspiring_Developer_0-1658741175537.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone please help ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 09:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1959847#M79114</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-07-25T09:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: show data for latest month in chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1959917#M79118</link>
      <description>&lt;P&gt;since for the load, the max date does not change.&amp;nbsp; you should determine this in your load script.&amp;nbsp; get the max from your fact table and then add a flag when the date in your fact = max&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this way in your table you can just look for this flag to tell you the last loaded date.&lt;/P&gt;
&lt;P&gt;alternatively, you can create a new field that has the max date - in case you need it.&amp;nbsp; for exampe if you want to show only the dates where &amp;lt;= max&lt;/P&gt;
&lt;P&gt;with both approaches, you will have a varied options like creating avariable to hol dthe max date and in your set analysis {&amp;lt;DATEFIELD={"&amp;lt;=$(MAXDATEVARIABLE)"}&amp;gt;}&amp;nbsp; you of course need to be aware of teh date formats&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 11:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1959917#M79118</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-07-25T11:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: show data for latest month in chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1959926#M79119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;Thanks for your response .&lt;/P&gt;
&lt;P&gt;Here is my data model :-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1658747993198.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84993i31E9D29E654118BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_0-1658747993198.png" alt="Aspiring_Developer_0-1658747993198.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here I have used linked table. Not sure what to do in the script.&lt;/P&gt;
&lt;P&gt;This is my link table script :-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_1-1658748092733.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84994iD97D7C3D9C6AE187/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_1-1658748092733.png" alt="Aspiring_Developer_1-1658748092733.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you please help ?&lt;/P&gt;
&lt;P&gt;If we create a dummy field, how to do it ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 11:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1959926#M79119</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-07-25T11:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: show data for latest month in chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1961798#M79293</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Can anyone please help on this ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 13:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1961798#M79293</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-07-28T13:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: show data for latest month in chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1961938#M79307</link>
      <description>&lt;P&gt;you will have to test the script as i didnt try it in QLik Sense but this should give you an idea:&lt;/P&gt;
&lt;P&gt;//this gets the max date (end of month) from your fact, creates a mapping table&lt;BR /&gt;maxDate: &lt;BR /&gt;mapping load date(max(monthend(Date))) as Date, 1 as IsMaxDate resident Link;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//this adds a new flag that indicates if it is the month of last loaded month&lt;BR /&gt;noconcatenate&lt;BR /&gt;NewLink&lt;BR /&gt;load *, applymap('maxDate', monthend(Date), 0) as IsMaxDate resident maxDate;&lt;/P&gt;
&lt;P&gt;drop table Link;&lt;/P&gt;
&lt;P&gt;now in your expression, just add the set analysis {&amp;lt;IsMaxDate={1}&amp;gt;}&lt;/P&gt;
&lt;P&gt;if instead you needed all data before and = to month loaded, it will be slightly diff&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 17:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1961938#M79307</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-07-28T17:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: show data for latest month in chart qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1962180#M79325</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response. I tried to test the field but it is giving me below error:-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1659082558548.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85446iFEB9B840C3D59C6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_0-1659082558548.png" alt="Aspiring_Developer_0-1659082558548.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 08:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/show-data-for-latest-month-in-chart-qliksense/m-p/1962180#M79325</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2022-07-29T08:16:22Z</dc:date>
    </item>
  </channel>
</rss>

