<?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 Set Analysis Aggregate two different date fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649039#M48383</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with clients info, including the last month day of the subscription in YYYYMMDD format.&lt;/P&gt;&lt;P&gt;In another table I have the sales last month day info of these clients by date (YYYYMMDD).&lt;/P&gt;&lt;P&gt;The thing is that I want to have a table with the subscription month as dimension and as measure the sales data for&amp;nbsp; the previous month.&lt;/P&gt;&lt;P&gt;I am not able to aggregate correctly it.&lt;/P&gt;&lt;P&gt;If I add multiple sums I am able to obtain the data, but I want it in one formula in an automatic way and without needing of adding data:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt; SUBSCRIPTION_DATE={'20181031'}, DATE={'20180930'}&amp;gt;}SALES)&lt;BR /&gt;+&lt;BR /&gt;sum({&amp;lt; SUBSCRIPTION_DATE={'20181130'}, DATE={'20181031'}&amp;gt;}SALES)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:38:00 GMT</pubDate>
    <dc:creator>lanlizgu</dc:creator>
    <dc:date>2024-11-16T19:38:00Z</dc:date>
    <item>
      <title>Set Analysis Aggregate two different date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649039#M48383</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with clients info, including the last month day of the subscription in YYYYMMDD format.&lt;/P&gt;&lt;P&gt;In another table I have the sales last month day info of these clients by date (YYYYMMDD).&lt;/P&gt;&lt;P&gt;The thing is that I want to have a table with the subscription month as dimension and as measure the sales data for&amp;nbsp; the previous month.&lt;/P&gt;&lt;P&gt;I am not able to aggregate correctly it.&lt;/P&gt;&lt;P&gt;If I add multiple sums I am able to obtain the data, but I want it in one formula in an automatic way and without needing of adding data:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt; SUBSCRIPTION_DATE={'20181031'}, DATE={'20180930'}&amp;gt;}SALES)&lt;BR /&gt;+&lt;BR /&gt;sum({&amp;lt; SUBSCRIPTION_DATE={'20181130'}, DATE={'20181031'}&amp;gt;}SALES)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649039#M48383</guid>
      <dc:creator>lanlizgu</dc:creator>
      <dc:date>2024-11-16T19:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Aggregate two different date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649136#M48406</link>
      <description>&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt; SUBSCRIPTION_DATE={'20181031', '20181130'}, DATE={'20190930', '20191031'}&amp;gt;}SALES)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649136#M48406</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-11-20T13:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Aggregate two different date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649194#M48409</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't want to add dates manually but do it automatically.&lt;/P&gt;&lt;P&gt;Moreover, the dimension is the subscription date. Therefore, your expression is not correct, as in the 2018 October value of the subscription date dimension I will also see the sales data for October 2018, when I just want for thie 2018 October&amp;nbsp; subscription date to display the sales of 2018 September.&lt;/P&gt;&lt;P&gt;The formula requires somekind of aggregation by subscription date and interval filtering of the month sales.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649194#M48409</guid>
      <dc:creator>lanlizgu</dc:creator>
      <dc:date>2019-11-20T14:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Aggregate two different date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649289#M48416</link>
      <description>&lt;P&gt;With the following sample data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Client:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Client_ID, SUBSCRIPTION_DATE&lt;BR /&gt;1, 31/08/2019&lt;BR /&gt;2, 30/09/2019&lt;BR /&gt;3, 31/10/2019&lt;BR /&gt;4, 31/08/2019&lt;BR /&gt;5, 30/09/2019&lt;BR /&gt;6, 31/10/2019&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sales:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Client_ID, DATE, SALES&lt;BR /&gt;1, 31/07/2019, 14&lt;BR /&gt;1, 31/08/2019, 3&lt;BR /&gt;1, 30/09/2019, 11&lt;BR /&gt;1, 31/10/2019, 10&lt;BR /&gt;2, 31/08/2019, 8&lt;BR /&gt;2, 30/09/2019, 6&lt;BR /&gt;2, 31/10/2019, 8&lt;BR /&gt;3, 30/09/2019, 15&lt;BR /&gt;3, 31/10/2019, 13&lt;BR /&gt;4, 31/07/2019, 7&lt;BR /&gt;4, 31/08/2019, 16&lt;BR /&gt;4, 30/09/2019, 16&lt;BR /&gt;4, 31/10/2019, 12&lt;BR /&gt;5, 31/08/2019, 10&lt;BR /&gt;5, 30/09/2019, 15&lt;BR /&gt;5, 31/10/2019, 7&lt;BR /&gt;6, 30/09/2019, 18&lt;BR /&gt;6, 31/10/2019, 2&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the following table:&lt;/P&gt;&lt;P&gt;dimension: SUBSCRIPTION_DATE&lt;/P&gt;&lt;P&gt;measure&amp;nbsp;=sum({&amp;lt; SUBSCRIPTION_DATE={'31/10/2019'}, DATE={'30/09/2019'}&amp;gt;}SALES)&lt;BR /&gt;+&lt;BR /&gt;sum({&amp;lt; SUBSCRIPTION_DATE={'30/09/2019'}, DATE={'31/08/2019'}&amp;gt;}SALES)&lt;/P&gt;&lt;P&gt;I get the data for septemberand october&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdfdsg.JPG" style="width: 226px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24102iDB00A58A0862079C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sdfdsg.JPG" alt="sdfdsg.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The thing is that I don't want to add the dates manually as in the current measure and I want to calculate the data for all the months.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 16:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Aggregate-two-different-date-fields/m-p/1649289#M48416</guid>
      <dc:creator>lanlizgu</dc:creator>
      <dc:date>2019-11-20T16:49:45Z</dc:date>
    </item>
  </channel>
</rss>

