<?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: Sample Variance over a Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345862#M841897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be enough to use the built in Qlik function Stdev():&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;=Sqr(Stdev( SALES_SUM))&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;used as expression in a chart with dimension DIVISION.&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;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DIVISION&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Sqr(Stdev(SALES_SUM))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;$35205,19 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;NORTH&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;$30000,00&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;SOUTH&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;$45360,00&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Apr 2017 20:21:19 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-04-23T20:21:19Z</dc:date>
    <item>
      <title>Sample Variance over a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345859#M841894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to get a Sample Variance Calculation working in Qlik on a data-set similar to the one below. Having an incredibly tough time getting the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Formula:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sample variance : s^2 = Σ ( xi - avg(x) )^2 / ( n - 1 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data-Set&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="565" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#8064A2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;Calibri&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="height: 460px; width: 258px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2; background: #8064a2;" width="79"&gt;DIVISION&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none; background: #8064a2;" width="64"&gt;STAFF_ID&lt;/TD&gt;&lt;TH style="color: #ffffff; background-color: #800080; text-align: right; padding: 2px;"&gt;&lt;STRONG&gt;SALES_SUM&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$50.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;110&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$350.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;111&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$350.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;112&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$350.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;113&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$350.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;114&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$320.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;115&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$500.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;116&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$50.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;117&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$320.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;118&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$50.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;119&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$500.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;120&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$50.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;201&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$50.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;202&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$500.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;203&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$500.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;204&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$50.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;205&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$500.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;206&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$320.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;207&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$50.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;208&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$500.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: none;"&gt;209&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$50.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: 0.5pt solid #8064a2; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: 0.5pt solid #8064a2; border-left: none;"&gt;210&lt;/TD&gt;&lt;TD align="right" class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: 0.5pt solid #8064a2; border-left: none;"&gt;$320.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to get a table that looks like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="150"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2; background: #8064a2;" width="79"&gt;DIVISION&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none; background: #8064a2;" width="71"&gt;s^2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: none; border-left: 0.5pt solid #8064a2;"&gt;NORTH&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: none; border-left: none;"&gt;$30,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: none; border-bottom: 0.5pt solid #8064a2; border-left: 0.5pt solid #8064a2;"&gt;SOUTH&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 11pt; color: black; font-family: Calibri; border-top: 0.5pt solid #8064a2; border-right: 0.5pt solid #8064a2; border-bottom: 0.5pt solid #8064a2; border-left: none;"&gt;$45,360.00&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 have a table-object in Qlik that has Division as a dimension and want to add a measure that will give me s^2 based on the formula above. I have not been able to create a Master Measure that will give me an accurate value for &lt;SPAN style="color: #ff00ff; font-size: 13.3333px;"&gt;AVG(SALES_SUM) &lt;SPAN style="color: #333333;"&gt;as an average of SALES_SUM within the DIVISION dimension&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;My current expression to be inserted into a table with one Dimension (DIVISION):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;Aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff00ff;"&gt;POW(SALES_SUM - AVG(SALES_SUM),2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;,STAFF_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333300;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;(COUNT(DISTINCT CSN)-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345859#M841894</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Variance over a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345860#M841895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;STRONG&gt;POW((SALES_SUM - AVG(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;DIVISION&amp;gt;&lt;/SPAN&gt; SALES_SUM),2)&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt;"&gt;, STAFF_ID&lt;SPAN style="color: #ff0000;"&gt;, DIVISION&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;(COUNT(DISTINCT CSN)-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345860#M841895</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-20T16:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Variance over a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345861#M841896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I guess it should be aggregated over the division. What is 'CSN' and why do you have it distinct? If it is the staff_id, they are already unique. If they are not unique, you'll need to sum the sales_sum by staff_id as well. Otherwise you'll loose data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 19:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345861#M841896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-23T19:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Variance over a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345862#M841897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be enough to use the built in Qlik function Stdev():&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;=Sqr(Stdev( SALES_SUM))&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;used as expression in a chart with dimension DIVISION.&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;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DIVISION&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Sqr(Stdev(SALES_SUM))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;$35205,19 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;NORTH&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;$30000,00&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;SOUTH&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;$45360,00&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 20:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sample-Variance-over-a-Dimension/m-p/1345862#M841897</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-23T20:21:19Z</dc:date>
    </item>
  </channel>
</rss>

