<?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 Data range in set analysis? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-range-in-set-analysis/m-p/1789065#M61627</link>
    <description>&lt;P&gt;I try to filter the data by material No. list.&lt;/P&gt;&lt;P&gt;Material No list required:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kwl1234_0-1615187941184.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50607iAF6D5F85F19627B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kwl1234_0-1615187941184.png" alt="kwl1234_0-1615187941184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I using set analysis with hard coding to get the material No =30812* to 30815*&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Material]={"30812*","30813*","30814*","30815*"} &amp;gt;}&lt;BR /&gt;[Value]))&lt;/P&gt;&lt;P&gt;I tried set number range on set analysis, but it seems not correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kwl1234_1-1615188035237.png" style="width: 270px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50608i1C575AFDCD3AB6EE/image-dimensions/270x209?v=v2" width="270" height="209" role="button" title="kwl1234_1-1615188035237.png" alt="kwl1234_1-1615188035237.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the expression I tried to use to filter data by material no. list.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Material]={"&amp;gt;=$(=Fm_Material_No)&amp;lt;=$(=To_Material_No)"} &amp;gt;} [Value])&lt;/P&gt;&lt;P&gt;but it got wrong value. How do I set the expression to perform same way on like this expression(Sum({&amp;lt;[Material]={"30812*","30813*","30814*","30815*"} &amp;gt;}&lt;BR /&gt;[Value])) )?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:02:46 GMT</pubDate>
    <dc:creator>kwl1234</dc:creator>
    <dc:date>2021-12-20T21:02:46Z</dc:date>
    <item>
      <title>Data range in set analysis?</title>
      <link>https://community.qlik.com/t5/App-Development/Data-range-in-set-analysis/m-p/1789065#M61627</link>
      <description>&lt;P&gt;I try to filter the data by material No. list.&lt;/P&gt;&lt;P&gt;Material No list required:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kwl1234_0-1615187941184.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50607iAF6D5F85F19627B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kwl1234_0-1615187941184.png" alt="kwl1234_0-1615187941184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I using set analysis with hard coding to get the material No =30812* to 30815*&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Material]={"30812*","30813*","30814*","30815*"} &amp;gt;}&lt;BR /&gt;[Value]))&lt;/P&gt;&lt;P&gt;I tried set number range on set analysis, but it seems not correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kwl1234_1-1615188035237.png" style="width: 270px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50608i1C575AFDCD3AB6EE/image-dimensions/270x209?v=v2" width="270" height="209" role="button" title="kwl1234_1-1615188035237.png" alt="kwl1234_1-1615188035237.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the expression I tried to use to filter data by material no. list.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Material]={"&amp;gt;=$(=Fm_Material_No)&amp;lt;=$(=To_Material_No)"} &amp;gt;} [Value])&lt;/P&gt;&lt;P&gt;but it got wrong value. How do I set the expression to perform same way on like this expression(Sum({&amp;lt;[Material]={"30812*","30813*","30814*","30815*"} &amp;gt;}&lt;BR /&gt;[Value])) )?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-range-in-set-analysis/m-p/1789065#M61627</guid>
      <dc:creator>kwl1234</dc:creator>
      <dc:date>2021-12-20T21:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data range in set analysis?</title>
      <link>https://community.qlik.com/t5/App-Development/Data-range-in-set-analysis/m-p/1789095#M61629</link>
      <description>&lt;P&gt;To be able to apply a numeric comparison the values need to be numeric. In your case you may use dual-values for it, maybe in this way:&lt;/P&gt;&lt;P&gt;dual(&lt;SPAN&gt;[Material], num#(keepchar([Material], '0123456789'))) as&amp;nbsp;[Material]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Beside this I think it would be beneficial to use a hierarchy of the [Material] which may already exists and if not you could create it with subfield(), like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;subfield([Material], '_', 1) as&amp;nbsp;[Material Main],&lt;BR /&gt;subfield([Material], '_', 2) as&amp;nbsp;[Material MainSub],&lt;BR /&gt;subfield([Material], '_', 3) as&amp;nbsp;[Material Detail],&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and with&amp;nbsp;[Material Main] you could also apply the showed &amp;gt;= &amp;lt;= logic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 08:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-range-in-set-analysis/m-p/1789095#M61629</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-03-08T08:52:36Z</dc:date>
    </item>
  </channel>
</rss>

