<?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: Formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula/m-p/373423#M138939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, and wow - what a great solution.&lt;/P&gt;&lt;P&gt;How does it work?&lt;/P&gt;&lt;P&gt;How do I get the 4th line (the combined department) to show?&lt;/P&gt;&lt;P&gt;How do I use this value in other objects, like line charts, showing the trend of the errors vs. goal over time?&amp;nbsp; &lt;/P&gt;&lt;P&gt;By all 4 products?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have more questions.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 15:13:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-31T15:13:55Z</dc:date>
    <item>
      <title>Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Formula/m-p/373420#M138936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have multiple records per day of specific brands and departments.&amp;nbsp;&amp;nbsp; Each record is averaged for the day and listed in a straight table and a line chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The records are tests with the count of "Good" and "Error" tests, aggregated per hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results is &lt;SPAN style="font-family: courier new,courier;"&gt;1-(error/success) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;goal is always 95%&lt;/P&gt;&lt;P&gt;Over under is (&lt;SPAN style="font-family: courier new,courier;"&gt;results - goal&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a spreadsheet with what I am looking for, which is:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The combined department 1/2/3 has a goal but is dependent on the results of the other ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the combined department 1/2/3,&lt;STRONG&gt; the goal needs to be the product of the other three departments' results and 95%&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example, for May 1 for Brand 1, the Combined department goal would be:&amp;nbsp; 99% x 98% x 96% x 95% (Dept 1 x Dept 2 x Dept 3 x 95%)&amp;nbsp; = 87%.&amp;nbsp; This will alleviate the burden on the combined department to meet a goal when the contributing departments can't make their results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this makes sense!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I incorporate the results of a formula of one row into another row, and specifically this formula.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any input you can provide.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 21:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula/m-p/373420#M138936</guid>
      <dc:creator />
      <dc:date>2012-05-29T21:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Formula/m-p/373421#M138937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks mainly to some marvellous wizadry from Stefan (&lt;A _jive_internal="true" href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt;) in my post &lt;A _jive_internal="true" href="https://community.qlik.com/message/223814#223814"&gt;here&lt;/A&gt;, I have been able to put this in a pivot table for you using Dimensionality() and the aforementioned genius's code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 23:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula/m-p/373421#M138937</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-29T23:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Formula/m-p/373422#M138938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Susan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have further questions on this please post them here so all may benefit!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 14:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula/m-p/373422#M138938</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-31T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Formula/m-p/373423#M138939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, and wow - what a great solution.&lt;/P&gt;&lt;P&gt;How does it work?&lt;/P&gt;&lt;P&gt;How do I get the 4th line (the combined department) to show?&lt;/P&gt;&lt;P&gt;How do I use this value in other objects, like line charts, showing the trend of the errors vs. goal over time?&amp;nbsp; &lt;/P&gt;&lt;P&gt;By all 4 products?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have more questions.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 15:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula/m-p/373423#M138939</guid>
      <dc:creator />
      <dc:date>2012-05-31T15:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Formula/m-p/373424#M138940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Susan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;How does it work?&lt;/STRONG&gt;&lt;/SPAN&gt; - err...not sure actually!!&amp;nbsp; The use of exp() and log() is a bit beyond my mathematical understanding.&amp;nbsp; That solution came from Stefan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;How do I get the 4th line (the combined department) to show? &lt;/STRONG&gt;&lt;/SPAN&gt;- it is showing in the pivot table (the Total line)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;How do I use this value in other objects, like line charts, showing the trend of the errors vs. goal over time?&lt;/STRONG&gt;&lt;/SPAN&gt; Just use &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Min(Aggr(exp(rangesum(above(log(1-Sum(errors)/Sum(successes)),0,RowNo())))*.95,date,brand,Department)) &lt;/EM&gt;in whatever chart you like (see attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;By all 4 products?&lt;/STRONG&gt; &lt;/SPAN&gt;If product is another dimension in you data model just add it in to the charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS - please mark the correct answer for the benefit of all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 09:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula/m-p/373424#M138940</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-01T09:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Formula/m-p/373425#M138941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Susan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark a correct answer so this thread appears solved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 07:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula/m-p/373425#M138941</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-07T07:03:32Z</dc:date>
    </item>
  </channel>
</rss>

