<?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 Receiving Error when referencing measure in another measure when trying to sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Receiving-Error-when-referencing-measure-in-another-measure-when/m-p/2125298#M91578</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I have a measure called [RO] which is a summation of several field values from various columns based upon an IF statement.&lt;/P&gt;
&lt;P&gt;2. I then have another measure called [RO Fill %] which is a summation of a field divided by the [RO] measure.&lt;/P&gt;
&lt;P&gt;3. I now need to make a third measure that states, if [RO Fill %] meets certain criteria (&amp;gt;0, &amp;gt;0&amp;lt;25, &amp;gt;=25&amp;lt;50, &amp;gt;=50&amp;lt;75, &amp;gt;=75), then '1', else '0'.&amp;nbsp; This will be my flag measure, indicating the ranges that each row falls into.&lt;/P&gt;
&lt;P&gt;4. Unfortunately, I then need to make another measure that sums up all those '1's and '0's for each range - this will give me a total of all the rows that fall into each bucket/range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I receive errors when attempting to create the final (4th) measure, stating that sum() is not valid:&lt;/P&gt;
&lt;P&gt;sum([RO Fill % &amp;gt;0&amp;lt;0.25]) -&amp;gt; like that&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum([RO Fill % &amp;gt;=0.25&amp;lt;0.5]) -&amp;gt; and this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum([RO Fill % &amp;gt;=0.5&amp;lt;0.75]) -&amp;gt; you get the idea&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I accomplish this?&amp;nbsp; Or is it not possible? I've tried creating some of them as variables instead of measures, but receive the same errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 21:52:36 GMT</pubDate>
    <dc:creator>ca3868077</dc:creator>
    <dc:date>2023-10-04T21:52:36Z</dc:date>
    <item>
      <title>Receiving Error when referencing measure in another measure when trying to sum</title>
      <link>https://community.qlik.com/t5/App-Development/Receiving-Error-when-referencing-measure-in-another-measure-when/m-p/2125298#M91578</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I have a measure called [RO] which is a summation of several field values from various columns based upon an IF statement.&lt;/P&gt;
&lt;P&gt;2. I then have another measure called [RO Fill %] which is a summation of a field divided by the [RO] measure.&lt;/P&gt;
&lt;P&gt;3. I now need to make a third measure that states, if [RO Fill %] meets certain criteria (&amp;gt;0, &amp;gt;0&amp;lt;25, &amp;gt;=25&amp;lt;50, &amp;gt;=50&amp;lt;75, &amp;gt;=75), then '1', else '0'.&amp;nbsp; This will be my flag measure, indicating the ranges that each row falls into.&lt;/P&gt;
&lt;P&gt;4. Unfortunately, I then need to make another measure that sums up all those '1's and '0's for each range - this will give me a total of all the rows that fall into each bucket/range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I receive errors when attempting to create the final (4th) measure, stating that sum() is not valid:&lt;/P&gt;
&lt;P&gt;sum([RO Fill % &amp;gt;0&amp;lt;0.25]) -&amp;gt; like that&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum([RO Fill % &amp;gt;=0.25&amp;lt;0.5]) -&amp;gt; and this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum([RO Fill % &amp;gt;=0.5&amp;lt;0.75]) -&amp;gt; you get the idea&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I accomplish this?&amp;nbsp; Or is it not possible? I've tried creating some of them as variables instead of measures, but receive the same errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 21:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Receiving-Error-when-referencing-measure-in-another-measure-when/m-p/2125298#M91578</guid>
      <dc:creator>ca3868077</dc:creator>
      <dc:date>2023-10-04T21:52:36Z</dc:date>
    </item>
  </channel>
</rss>

