<?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 Problem displaying stdev() results across dimensions in Qlik sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-displaying-stdev-results-across-dimensions-in-Qlik-sense/m-p/860575#M11884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using the following formula to compare outcomes in 2014 to the average outcome from 2008-2012 in terms of the standard deviation from 2008-2012.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;YEAR= {'2014'}&amp;gt;}OUTCOME) - sum({$&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;= {'&amp;lt;2013'}&amp;gt;}&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OUTCOME&lt;/SPAN&gt;)/5)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(stdev({$&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;= {'&amp;lt;2013'}&amp;gt;}aggr(sum({$&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;= {'&amp;lt;2013'}&amp;gt;}&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OUTCOME&lt;/SPAN&gt;),&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;))* sqrt(4/5))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm producing the result across a dimension for different areas. I've checked that each component of the formula is working correctly using the KPI tool and filtering to one area without any trouble.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that Qlik sense does not produce results in charts where multiple areas are being compared on this measure. For example, when I used area as the dimension in a bar chart and the above formula as the measure no results were produced.&amp;nbsp; Similarly, in a scatter plot with area as the dimension, this measure for the x-axis, and another measure for the y, results for only one or two random areas are displayed or I get an error message saying there are no valid values to display.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the bar chart to diagnose the problem I commented out different parts of the formula above and the error only appeared when the stdev portion of the code was included:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;stdev({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;= {'&amp;lt;2013'}&amp;gt;}aggr(sum({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;= {'&amp;lt;2013'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OUTCOME&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Further when I changed this stdev function to the sum function the chart worked.&amp;nbsp; I've seen the error on more than one computer.&amp;nbsp; This leads me to think there may be a bug with the stdev function.&amp;nbsp; Has anyone seen something similar?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Thanks in advance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 23:51:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-17T23:51:59Z</dc:date>
    <item>
      <title>Problem displaying stdev() results across dimensions in Qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-displaying-stdev-results-across-dimensions-in-Qlik-sense/m-p/860575#M11884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using the following formula to compare outcomes in 2014 to the average outcome from 2008-2012 in terms of the standard deviation from 2008-2012.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;YEAR= {'2014'}&amp;gt;}OUTCOME) - sum({$&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;= {'&amp;lt;2013'}&amp;gt;}&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OUTCOME&lt;/SPAN&gt;)/5)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(stdev({$&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;= {'&amp;lt;2013'}&amp;gt;}aggr(sum({$&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;= {'&amp;lt;2013'}&amp;gt;}&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OUTCOME&lt;/SPAN&gt;),&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;))* sqrt(4/5))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm producing the result across a dimension for different areas. I've checked that each component of the formula is working correctly using the KPI tool and filtering to one area without any trouble.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that Qlik sense does not produce results in charts where multiple areas are being compared on this measure. For example, when I used area as the dimension in a bar chart and the above formula as the measure no results were produced.&amp;nbsp; Similarly, in a scatter plot with area as the dimension, this measure for the x-axis, and another measure for the y, results for only one or two random areas are displayed or I get an error message saying there are no valid values to display.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the bar chart to diagnose the problem I commented out different parts of the formula above and the error only appeared when the stdev portion of the code was included:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;stdev({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;= {'&amp;lt;2013'}&amp;gt;}aggr(sum({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;= {'&amp;lt;2013'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OUTCOME&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Further when I changed this stdev function to the sum function the chart worked.&amp;nbsp; I've seen the error on more than one computer.&amp;nbsp; This leads me to think there may be a bug with the stdev function.&amp;nbsp; Has anyone seen something similar?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Thanks in advance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 23:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-displaying-stdev-results-across-dimensions-in-Qlik-sense/m-p/860575#M11884</guid>
      <dc:creator />
      <dc:date>2015-04-17T23:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem displaying stdev() results across dimensions in Qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-displaying-stdev-results-across-dimensions-in-Qlik-sense/m-p/860576#M11885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I found that I need to include total in my formula to produce results across charts.&amp;nbsp; I'm now getting results to appear in my chart but they are incorrect and the same across all of my dimension values. Here's my updated function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;stdev({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= {'&amp;lt;2013'}&amp;gt;} total aggr(sum({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= {'&amp;lt;2013'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OUTCOME&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've attached a screenshot that shows the bar chart using this function producing the same outcome for all areas.&amp;nbsp; The text output on the left for the same function is correct, but the output for the selected bar in the chart is incorrect.&amp;nbsp; In the second screenshot when that one area becomes the only selection the bar chart value recalculates correctly and aligns with the text value.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is the total aggregating the result across the areas rather than separately for each area?&amp;nbsp; Is there something else I can do to the formula to fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-displaying-stdev-results-across-dimensions-in-Qlik-sense/m-p/860576#M11885</guid>
      <dc:creator />
      <dc:date>2015-04-21T20:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem displaying stdev() results across dimensions in Qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-displaying-stdev-results-across-dimensions-in-Qlik-sense/m-p/860577#M11886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution!&amp;nbsp; Total is not needed, but the aggregation needs to be across the dimension being controlled with the set analysis and the dimension being presented in the chart.&amp;nbsp; That's it, and it working fine now.&amp;nbsp; My updated formula is below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;stdev({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= {'&amp;lt;2013'}&amp;gt;} aggr(sum({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= {'&amp;lt;2013'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OUTCOME&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YEAR,AREA&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 21:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-displaying-stdev-results-across-dimensions-in-Qlik-sense/m-p/860577#M11886</guid>
      <dc:creator />
      <dc:date>2015-04-26T21:13:31Z</dc:date>
    </item>
  </channel>
</rss>

