<?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 sales for a year or Quarter in Scripting in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Latest-month-sales-for-a-year-or-Quarter-in-Scripting/m-p/1615161#M45807</link>
    <description>&lt;P&gt;Assuming you have a YearMonth field in your calendar (It could be created by using &lt;FONT face="courier new,courier"&gt;MonthName(Datefield) as YearMonth&lt;/FONT&gt; in your script.&lt;/P&gt;&lt;P&gt;Then you could use this expression, hence the last month in a selected quarter will also be the last month in your selection.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=sum(
{&amp;lt;
YearMonth = {'$(=MaxString(YearMonth))'}
&amp;gt;}
Assets)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 07:13:12 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-08-22T07:13:12Z</dc:date>
    <item>
      <title>Latest month sales for a year or Quarter in Scripting</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-month-sales-for-a-year-or-Quarter-in-Scripting/m-p/1615137#M45805</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I need to create a master measure as latest month sales for selected quarters or Year&amp;nbsp; in such way so that this measure can be used a with any no of dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q2 19 – should give us the asset from Jun 19&lt;/P&gt;&lt;P&gt;Q1 19 – should give us the asset from Mar 19&lt;/P&gt;&lt;P&gt;Q4 18 – should give us the asset from Dec 18 and so on&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-month-sales-for-a-year-or-Quarter-in-Scripting/m-p/1615137#M45805</guid>
      <dc:creator>deblina_rai</dc:creator>
      <dc:date>2024-11-16T04:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Latest month sales for a year or Quarter in Scripting</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-month-sales-for-a-year-or-Quarter-in-Scripting/m-p/1615161#M45807</link>
      <description>&lt;P&gt;Assuming you have a YearMonth field in your calendar (It could be created by using &lt;FONT face="courier new,courier"&gt;MonthName(Datefield) as YearMonth&lt;/FONT&gt; in your script.&lt;/P&gt;&lt;P&gt;Then you could use this expression, hence the last month in a selected quarter will also be the last month in your selection.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=sum(
{&amp;lt;
YearMonth = {'$(=MaxString(YearMonth))'}
&amp;gt;}
Assets)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 07:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-month-sales-for-a-year-or-Quarter-in-Scripting/m-p/1615161#M45807</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-08-22T07:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Latest month sales for a year or Quarter in Scripting</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-month-sales-for-a-year-or-Quarter-in-Scripting/m-p/1615198#M45811</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is working for latest month sales of selected year. But If I select&amp;nbsp; 2 Quarter it&amp;nbsp; is giving last quarter only. I need lasts month for both the selected quarter. And I cant add quarter or month in aggr level as we are not sure how many dimension user will&amp;nbsp; use in real time.&lt;/P&gt;&lt;P&gt;We need to provide master measure for Quarter and Year scenario. Using maxstring year is working&amp;nbsp; fine. But For quarter its giving for last quarter only whereas I have selected two Quarter&amp;nbsp; .&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-month-sales-for-a-year-or-Quarter-in-Scripting/m-p/1615198#M45811</guid>
      <dc:creator>deblina_rai</dc:creator>
      <dc:date>2019-08-22T08:00:17Z</dc:date>
    </item>
  </channel>
</rss>

