<?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: Need help set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-help-set-analysis/m-p/2091128#M89439</link>
    <description>&lt;P&gt;Hey there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, you want to calculate the count of distinct TSF.Product for each month from the dimension AQMP.MONTH, even though the table TSF doesn’t have the same calendar. To do this, you could try using an advanced search in your set analysis to match the values of TSF.MONTH with the corresponding values of AQMP.MONTH. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;count(DISTINCT {&amp;lt;AQMP.YEAR={$(=Max(AQMP.YEAR))}, AQMP.MONTH={"&amp;lt;=$(=Max(AQMP.MONTH))"}&amp;gt;} [AQMP.N° AQMP])&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;/&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;count(DISTINCT {&amp;lt;AQMP.YEAR=, AQMP.MONTH=, TSF.YEAR={$(=Max(AQMP.YEAR))}, TSF.MONTH={"=sum({&amp;lt;AQMP.MOIS={'$(=only(AQMP.MOIS))'}&amp;gt;} 1)"}&amp;gt;} TSF.Product)&lt;/I&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 13:56:08 GMT</pubDate>
    <dc:creator>Chirantha</dc:creator>
    <dc:date>2023-07-06T13:56:08Z</dc:date>
    <item>
      <title>Need help set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-set-analysis/m-p/2091101#M89433</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a Table where I have to calculate per month a expression based on different date.&lt;/P&gt;
&lt;P&gt;The dimension:&lt;BR /&gt;=AQMP.MONTH&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The expression:&lt;BR /&gt;count(DISTINCT {&amp;lt;AQMP.YEAR={$(=Max(AQMP.YEAR))}, AQMP.MONTH={"&amp;lt;=$(=Max(AQMP.MONTH))"}&amp;gt;} [AQMP.N° AQMP])&lt;BR /&gt;/&lt;BR /&gt;count(DISTINCT {&amp;lt;AQMP.YEAR=, AQMP.MONTH=, TSF.YEAR={$(=Max(AQMP.YEAR))}, TSF.MONTH={"$(=only(AQMP.MOIS))"}&amp;gt;} TSF.Product)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the second calculation I need to calculate for each month from the dimension the TSF.Product. And the Table TSF doesn't have the same calendar. And it must be aggregate per month from dimension AQMP.MONTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-set-analysis/m-p/2091101#M89433</guid>
      <dc:creator>tgumbing</dc:creator>
      <dc:date>2023-07-06T13:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-set-analysis/m-p/2091128#M89439</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, you want to calculate the count of distinct TSF.Product for each month from the dimension AQMP.MONTH, even though the table TSF doesn’t have the same calendar. To do this, you could try using an advanced search in your set analysis to match the values of TSF.MONTH with the corresponding values of AQMP.MONTH. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;count(DISTINCT {&amp;lt;AQMP.YEAR={$(=Max(AQMP.YEAR))}, AQMP.MONTH={"&amp;lt;=$(=Max(AQMP.MONTH))"}&amp;gt;} [AQMP.N° AQMP])&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;/&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;count(DISTINCT {&amp;lt;AQMP.YEAR=, AQMP.MONTH=, TSF.YEAR={$(=Max(AQMP.YEAR))}, TSF.MONTH={"=sum({&amp;lt;AQMP.MOIS={'$(=only(AQMP.MOIS))'}&amp;gt;} 1)"}&amp;gt;} TSF.Product)&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-set-analysis/m-p/2091128#M89439</guid>
      <dc:creator>Chirantha</dc:creator>
      <dc:date>2023-07-06T13:56:08Z</dc:date>
    </item>
  </channel>
</rss>

