<?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 with long list of conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729177#M64025</link>
    <description>&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;segment_id={"=Num(Right(segment_id,2)) &amp;lt; 23"}&amp;gt;}line_amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 11:25:47 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2020-07-20T11:25:47Z</dc:date>
    <item>
      <title>Set analysis with long list of conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729175#M64024</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a table containing a list of dimensions called Segments. There are 65 segments called S0001, S0002, S0003 ... S0065.&lt;/P&gt;&lt;P&gt;I need to filter my sum by some of these segments. There are three main measures:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Internal Segments -&amp;gt; S0001 - S0022&lt;/LI&gt;&lt;LI&gt;External Segments -&amp;gt; S0023 - S0050&lt;/LI&gt;&lt;LI&gt;Other Segments -&amp;gt; S0051 - S0065&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am currently using simple and shorter measures with following expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;segment_id={'S0001', 'S0002', 'S0003','S0004'}&amp;gt;}line_amount)&lt;/P&gt;&lt;P&gt;This will become troublesome and very long when I add all the segments. Especially because at a later stage, other dimensions will be added (ex: Group, G0001 - G0100 etc).&lt;/P&gt;&lt;P&gt;How could I facilitate or automate this expression? I was exploring using a Right(segment_id,2) &amp;lt; 23 for instance, but it does not seem to work. I can't handle the syntax.&lt;/P&gt;&lt;P&gt;I am at this point not willing to create flags in the script due to constraints given by the client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729175#M64024</guid>
      <dc:creator>DawidDaw</dc:creator>
      <dc:date>2021-04-02T08:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with long list of conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729177#M64025</link>
      <description>&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;segment_id={"=Num(Right(segment_id,2)) &amp;lt; 23"}&amp;gt;}line_amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 11:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729177#M64025</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-20T11:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with long list of conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729178#M64026</link>
      <description>&lt;P&gt;Nice, this seems to work properly!&lt;/P&gt;&lt;P&gt;How would you apply the condition for the segment id to be between 23 &amp;amp; 50?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 11:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729178#M64026</guid>
      <dc:creator>DawidDaw</dc:creator>
      <dc:date>2020-07-20T11:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with long list of conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729179#M64027</link>
      <description>&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;segment_id={"=Num(Right(segment_id,2)) &amp;gt; 23&amp;nbsp; &lt;STRONG&gt;AND&lt;/STRONG&gt; Num(Right(segment_id,2)) &amp;lt; 50"}&amp;gt;}line_amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 11:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729179#M64027</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-20T11:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with long list of conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729187#M64028</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 11:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-long-list-of-conditions/m-p/1729187#M64028</guid>
      <dc:creator>DawidDaw</dc:creator>
      <dc:date>2020-07-20T11:44:17Z</dc:date>
    </item>
  </channel>
</rss>

