<?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: Latest month with dataset in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731238#M13052</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Not so easy to explain, but you are right. I want to make a dynamic 'current month' and a 'current month - 1' within the variables now.&lt;/P&gt;&lt;P&gt;In best case, the current month is based on the last ReloadTime().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 05:55:38 GMT</pubDate>
    <dc:creator>dennisthemenace</dc:creator>
    <dc:date>2020-07-28T05:55:38Z</dc:date>
    <item>
      <title>Latest month with dataset</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731033#M13048</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;hopefully there is anybody, who can help me with the following:&lt;/P&gt;&lt;P&gt;My aim was to get a KPI with the relative devolopement (%) of revenues from current month 'Jul' compared to previous month 'Jun'. Right now, it looks like that:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;EDITOR / Script :&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT&gt;SET MonthNames='Jan;Feb;Mrz;Apr;Mai;Jun;Jul;Aug;Sep;Okt;Nov;Dez';&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT&gt;LET&lt;STRONG&gt; vAktuellerMonat&lt;/STRONG&gt; = 'Jul'; &amp;nbsp; &amp;nbsp; //Variable for current month&lt;BR /&gt;LET &lt;STRONG&gt;vVorMonat&lt;/STRONG&gt; = 'Jun'; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // variable for month before&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;KPI OBJECT:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;(&lt;BR /&gt;Sum({1&amp;lt;Jahr={'$(=num(year(today())))'},Monat={'$(&lt;STRONG&gt;vAktuellerMonat&lt;/STRONG&gt;)'}&amp;gt;}Revenue) //current year, month - revenue&lt;BR /&gt;-&lt;BR /&gt;Sum({1&amp;lt;Jahr={'$(=num(year(today())))'},Monat={'$(&lt;STRONG&gt;vVorMonat&lt;/STRONG&gt;)'}&amp;gt;}Revenue) //current year, prev. month - revenue&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;Sum({1&amp;lt;Jahr={'$(=num(year(today())))'},Monat={'$(&lt;STRONG&gt;vVorMonat&lt;/STRONG&gt;)'}&amp;gt;}Revenue) //current year, prev. month -revenue&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, nothing from the community, that I read was working so far. Something like Month(today()) of course doesn't work out, coz the dataset is related to the upper defined Monthnames.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dennis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731033#M13048</guid>
      <dc:creator>dennisthemenace</dc:creator>
      <dc:date>2024-11-16T01:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Latest month with dataset</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731047#M13049</link>
      <description>&lt;P&gt;Sorry, could not really follow. What is that you are trying and not working? Could you explain a bit more ? Are you trying to make these current and previous months dynamic?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 13:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731047#M13049</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-27T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Latest month with dataset</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731238#M13052</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Not so easy to explain, but you are right. I want to make a dynamic 'current month' and a 'current month - 1' within the variables now.&lt;/P&gt;&lt;P&gt;In best case, the current month is based on the last ReloadTime().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 05:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731238#M13052</guid>
      <dc:creator>dennisthemenace</dc:creator>
      <dc:date>2020-07-28T05:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Latest month with dataset</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731239#M13053</link>
      <description>&lt;P&gt;You can try using timer_mode argument in today(). For getting the date when the reloaded was finished, you can use: &lt;STRONG&gt;Today(0)&lt;/STRONG&gt; or the reloadtime() itself.&lt;/P&gt;&lt;P&gt;Therefore, the variable would look like:&lt;/P&gt;&lt;P&gt;vCurrentMonth=Month(Today(0))&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;vPrevMonth=Month(Addmonths(Today(0),-1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 06:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731239#M13053</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-28T06:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Latest month with dataset</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731249#M13054</link>
      <description>&lt;P&gt;Good Morning Tresesco,&lt;/P&gt;&lt;P&gt;thanks for your quick response. The solution is unfortunately not working, because (I think) the output from the variables are number values. On the other hand, the months in KPIs are defined by field names like 'Jun' , which is not a number.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 06:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731249#M13054</guid>
      <dc:creator>dennisthemenace</dc:creator>
      <dc:date>2020-07-28T06:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Latest month with dataset</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731262#M13056</link>
      <description>&lt;P&gt;Month() returns a dual value (i.e. - text as well as number). The issue could be somewhere else. If you can share a sample file, we could give a try to investigate and help you.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 07:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731262#M13056</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-28T07:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Latest month with dataset</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731358#M13059</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;finally I got it work. There must have been a formal mistake first, which made your hint not working. Afterwords, its been an issue of having no data for current month.&lt;/P&gt;&lt;P&gt;So now I am using it as:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT&gt;LET vAktuellerMonat = Month(Addmonths(Today(),-1));&lt;BR /&gt;LET vVorMonat = Month(Addmonths(Today(),-2));&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 11:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Latest-month-with-dataset/m-p/1731358#M13059</guid>
      <dc:creator>dennisthemenace</dc:creator>
      <dc:date>2020-07-28T11:57:49Z</dc:date>
    </item>
  </channel>
</rss>

