<?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 Error in Set modifier expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Error-in-Set-modifier-expression/m-p/1894887#M73824</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to calculate a measure based on the range of values of another measure.&lt;/P&gt;
&lt;P&gt;i have used below expression :&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;((sum([1_Forecast Quantity ZU Unit])-sum([Sales Qty ZU CHK]))*100)/sum([Sales Qty ZU CHK])={"&amp;gt;=-15&amp;lt;=20"}&amp;gt;}&lt;BR /&gt;aggr($(vSalesValueDerived),[Country key TEXT],Material,[Forecast Accuracy Period],[Profit Center]$(vRadio_Button))))&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iwin_0-1645194185416.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72635i68CCB51B566FB1E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Iwin_0-1645194185416.png" alt="Iwin_0-1645194185416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here I want to calculate value of Sales value derived based on the range of measure :&lt;/P&gt;
&lt;P&gt;(sum([1_Forecast Quantity ZU Unit])-sum([Sales Qty ZU CHK]))*100)/sum([Sales Qty ZU CHK]) where its value is greater than -15 and less than 20&lt;/P&gt;
&lt;P&gt;However it is giving error in set modifiers because of measure used as a field.&lt;/P&gt;
&lt;P&gt;What can be an alternate way to calculate this and is it possible using set analysis?&lt;/P&gt;
&lt;P&gt;Also I have to sum the modifier else value doesnt come.&lt;/P&gt;
&lt;P&gt;Thanks.&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>Fri, 18 Feb 2022 14:27:34 GMT</pubDate>
    <dc:creator>Iwin</dc:creator>
    <dc:date>2022-02-18T14:27:34Z</dc:date>
    <item>
      <title>Error in Set modifier expression</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-Set-modifier-expression/m-p/1894887#M73824</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to calculate a measure based on the range of values of another measure.&lt;/P&gt;
&lt;P&gt;i have used below expression :&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;((sum([1_Forecast Quantity ZU Unit])-sum([Sales Qty ZU CHK]))*100)/sum([Sales Qty ZU CHK])={"&amp;gt;=-15&amp;lt;=20"}&amp;gt;}&lt;BR /&gt;aggr($(vSalesValueDerived),[Country key TEXT],Material,[Forecast Accuracy Period],[Profit Center]$(vRadio_Button))))&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iwin_0-1645194185416.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72635i68CCB51B566FB1E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Iwin_0-1645194185416.png" alt="Iwin_0-1645194185416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here I want to calculate value of Sales value derived based on the range of measure :&lt;/P&gt;
&lt;P&gt;(sum([1_Forecast Quantity ZU Unit])-sum([Sales Qty ZU CHK]))*100)/sum([Sales Qty ZU CHK]) where its value is greater than -15 and less than 20&lt;/P&gt;
&lt;P&gt;However it is giving error in set modifiers because of measure used as a field.&lt;/P&gt;
&lt;P&gt;What can be an alternate way to calculate this and is it possible using set analysis?&lt;/P&gt;
&lt;P&gt;Also I have to sum the modifier else value doesnt come.&lt;/P&gt;
&lt;P&gt;Thanks.&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>Fri, 18 Feb 2022 14:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-Set-modifier-expression/m-p/1894887#M73824</guid>
      <dc:creator>Iwin</dc:creator>
      <dc:date>2022-02-18T14:27:34Z</dc:date>
    </item>
  </channel>
</rss>

