<?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: Totals based on Min &amp; Max in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167663#M631290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks BTW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 12:07:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-28T12:07:12Z</dc:date>
    <item>
      <title>Totals based on Min &amp; Max</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167657#M631284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table (below), and I want to calculate the turnover of staff using the Min &amp;amp; Max Month.&amp;nbsp; I have highlighted the data I need to show as a summary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 422px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Start_Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="55"&gt;Staff in post at start of Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="73"&gt;Staff in post at end of Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Avg Month Staff Count&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Sum(Leavers)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;01/01/2015&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;18&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18.5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/02/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18.5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/03/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18.5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/04/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/05/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/06/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/07/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/08/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/09/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/10/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;23&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;21.5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;STRONG style="color: #ff0000;"&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;01/11/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;21.5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;01/12/2015&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;STRONG style="color: #ff0000;"&gt;22&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;21.5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the following as a table.&amp;nbsp; How do I do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 584px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="55"&gt;Staff in post at start of Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="73"&gt;Staff in post at end of Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Avg Month Staff Count&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Min_Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Max_Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Leavers&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Turnover (Leavers/Avg Month Staff Count)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/12/2015&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;15%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167657#M631284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T09:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Totals based on Min &amp; Max</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167658#M631285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a field in your source for Leavers, or are you calculating it? How are&amp;nbsp; you setting min and max months?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167658#M631285</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-07-28T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Totals based on Min &amp; Max</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167659#M631286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes there is a field for leavers, and I have calculated the min / max by creating an expression min(Start_Month) / Max(Start_Month), then used the selection to determine start and end points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167659#M631286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Totals based on Min &amp; Max</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167660#M631287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean (Max(End_Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167660#M631287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Totals based on Min &amp; Max</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167661#M631288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use f&lt;STRONG&gt;ollowing expression in the pivot tabl&lt;/STRONG&gt;e without any&lt;SPAN style="color: #ff0000;"&gt; DIMENSION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Start_Month]={"$(=Date((Min(Start_Month)), 'MM/DD/YYYY'))"}&amp;gt;} [Staff in post at start of Month]&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Start_Month]={"$(=Date((Max(Start_Month)), 'MM/DD/YYYY'))"}&amp;gt;}[Staff in post at end of Month]&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date((Max(Start_Month)), 'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date((Min(Start_Month)), 'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([Sum(Leavers)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and about this metric :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Avg Month Staff Count : 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I am getting&amp;nbsp; as 18.8 ............please check and confirm the calculation for this field ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167661#M631288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T10:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Totals based on Min &amp; Max</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167662#M631289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slight adjustment needed for UK dates, but worked well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to the Avg headcount.&amp;nbsp; The average in a total of start count (18) &amp;amp; end count (22) then divided by 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;18+22 = 40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;40 / 2 = 20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 12:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167662#M631289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T12:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Totals based on Min &amp; Max</title>
      <link>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167663#M631290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks BTW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 12:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totals-based-on-Min-Max/m-p/1167663#M631290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T12:07:12Z</dc:date>
    </item>
  </channel>
</rss>

