<?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: set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538222#M108919</link>
    <description>&lt;P&gt;Dear all&lt;BR /&gt;&lt;BR /&gt;Thank u for your response but none of the above solution works for me&lt;/P&gt;</description>
    <pubDate>Fri, 05 Dec 2025 04:40:13 GMT</pubDate>
    <dc:creator>Tool_Tip</dc:creator>
    <dc:date>2025-12-05T04:40:13Z</dc:date>
    <item>
      <title>set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538062#M108903</link>
      <description>&lt;P&gt;Dear experts&lt;BR /&gt;&lt;BR /&gt;How to rewrite below measure expression using set analysis only without using IF&lt;BR /&gt;&lt;BR /&gt;Count(&lt;BR /&gt;DISTINCT&lt;BR /&gt;If(&lt;BR /&gt;[START_DATE] &amp;lt;= '$(vMonthEndTest)'&lt;BR /&gt;and [status] = 0&lt;BR /&gt;and (&lt;BR /&gt;[IsActive] =1&lt;BR /&gt;or [END_DATE] &amp;gt;= '$(vMonthStart)'&lt;BR /&gt;),&lt;BR /&gt;ID&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 08:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538062#M108903</guid>
      <dc:creator>Tool_Tip</dc:creator>
      <dc:date>2025-12-04T08:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538065#M108904</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You may try something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[START_DATE] = {"&amp;lt;= '$(vMonthEndTest)'"}, [&lt;/SPAN&gt;&lt;SPAN&gt;status] = {0} &amp;gt; *&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[IsActive] = {1} &amp;gt; + &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[END_DATE] = {"&amp;gt;= '$(vMonthStart)'"}&amp;gt;) }&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCT ID&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 08:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538065#M108904</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-12-04T08:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538106#M108910</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Try this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;DISTINCT{&amp;lt;START_DATE = {"&amp;lt;= $(vMonthEndTest)"},status = {0},ID = {&amp;lt;IsActive = {1}&amp;gt;&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&amp;lt;END_DATE = {"&amp;gt;= $(vMonthStart)"}&amp;gt;}&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 05:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538106#M108910</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2025-12-05T05:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538179#M108915</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; START_DATE = {"&amp;lt;= $(vMonthEndTest)"},&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status = {0},&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IsActive = {1} + END_DATE = {"&amp;gt;= $(vMonthStart)"}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ID&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 16:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538179#M108915</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-12-04T16:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538222#M108919</link>
      <description>&lt;P&gt;Dear all&lt;BR /&gt;&lt;BR /&gt;Thank u for your response but none of the above solution works for me&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 04:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538222#M108919</guid>
      <dc:creator>Tool_Tip</dc:creator>
      <dc:date>2025-12-05T04:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538226#M108920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/300668"&gt;@Tool_Tip&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the logic of the expression I think&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;gave you correct answer as his set analysis replicates logical conditions. Make sure you have those&amp;nbsp;&lt;SPAN&gt;parenthesis in right spot to give proper precedence for * and + on sets as Marcus did.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also very helpful would be outcome with those fields in straight table and your IF() statement measure next to set analysis equivalent. That is usual way of spotting a difference and seeing where things go wrong. Obviously we dont have that visibility so at least you may have a hint regarding scenarios where this is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We also dont know your data model. So depending on relationships on data you may get different results. It would be helpful to understand where all the fields you use in your expression are in your data model and how they are associated as that may play role too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My suspicion is that your IF statement does the row level condition and when using set analysis we are working wit set operations on datasets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 06:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis/m-p/2538226#M108920</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2025-12-05T06:02:13Z</dc:date>
    </item>
  </channel>
</rss>

