<?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 Dynamic Control Charts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-Control-Charts/m-p/1585504#M42826</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am looking to create a Control Chart with Stages and have managed to make it match the calculation found in Stat software like MiniTab. My only problem is the way I have done it isn't dynamic and requires me to manual adjust each chart with a nested if for each. Example with 2 stages below for the UCL (Created as a Measure not a Reference Line):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Stage = 1,
Avg(Total {&amp;lt;Stage = {"1"}&amp;gt;} Volume) + 2.66*avg(Total {&amp;lt;Stage = {"1"}&amp;gt;} aggr(fabs(above(Volume)-[Volume]),[Date])),
Avg(Total {&amp;lt;Stage = {"2"}&amp;gt;} Volume) + 2.66*avg(Total {&amp;lt;Stage = {"2"}&amp;gt;} aggr(fabs(above(Volume)-[Volume]),[Date])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am explicitly needing to reference each individual stage in the measure to make the line split.&lt;/P&gt;&lt;P&gt;I have attempted the following to make it dynamically calculate based on the number of Stages present:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Total &amp;lt;Stage&amp;gt;&lt;/EM&gt; - an attempt to make it automatically Average per Stage on the Total Function. This does nothing.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;{&amp;lt;Stage = {"$(=Max(Stage))"}&amp;gt;} - &lt;/EM&gt;This also only provides a single line and uses the Maximum stage to calculate.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Looping in Data Load to create the forumla&lt;/EM&gt;&amp;nbsp; - This works but isn't as ideal as cracking it in a measure. It replicates the Nested If dynamically.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any support would be greatly appreciated - even if is to just confirm that it is impossible!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example Outcome attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:46:52 GMT</pubDate>
    <dc:creator>LReeve</dc:creator>
    <dc:date>2024-11-16T20:46:52Z</dc:date>
    <item>
      <title>Dynamic Control Charts</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Control-Charts/m-p/1585504#M42826</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am looking to create a Control Chart with Stages and have managed to make it match the calculation found in Stat software like MiniTab. My only problem is the way I have done it isn't dynamic and requires me to manual adjust each chart with a nested if for each. Example with 2 stages below for the UCL (Created as a Measure not a Reference Line):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Stage = 1,
Avg(Total {&amp;lt;Stage = {"1"}&amp;gt;} Volume) + 2.66*avg(Total {&amp;lt;Stage = {"1"}&amp;gt;} aggr(fabs(above(Volume)-[Volume]),[Date])),
Avg(Total {&amp;lt;Stage = {"2"}&amp;gt;} Volume) + 2.66*avg(Total {&amp;lt;Stage = {"2"}&amp;gt;} aggr(fabs(above(Volume)-[Volume]),[Date])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am explicitly needing to reference each individual stage in the measure to make the line split.&lt;/P&gt;&lt;P&gt;I have attempted the following to make it dynamically calculate based on the number of Stages present:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Total &amp;lt;Stage&amp;gt;&lt;/EM&gt; - an attempt to make it automatically Average per Stage on the Total Function. This does nothing.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;{&amp;lt;Stage = {"$(=Max(Stage))"}&amp;gt;} - &lt;/EM&gt;This also only provides a single line and uses the Maximum stage to calculate.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Looping in Data Load to create the forumla&lt;/EM&gt;&amp;nbsp; - This works but isn't as ideal as cracking it in a measure. It replicates the Nested If dynamically.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any support would be greatly appreciated - even if is to just confirm that it is impossible!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example Outcome attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Control-Charts/m-p/1585504#M42826</guid>
      <dc:creator>LReeve</dc:creator>
      <dc:date>2024-11-16T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Control Charts</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Control-Charts/m-p/1593459#M43639</link>
      <description>Checking in on if anyone has had any ideas!&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 19 Jun 2019 09:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Control-Charts/m-p/1593459#M43639</guid>
      <dc:creator>LReeve</dc:creator>
      <dc:date>2019-06-19T09:55:15Z</dc:date>
    </item>
  </channel>
</rss>

