<?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 Comparing values in a table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-values-in-a-table/m-p/2094910#M89706</link>
    <description>&lt;P&gt;Hey everyone!&lt;/P&gt;
&lt;P&gt;I have a little porblem with the analysis of data in a pivot table.&lt;/P&gt;
&lt;P&gt;Here is an example, we are talking about data of an electricity meter:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AzuEnM_0-1689683920635.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112527i1FBD47990CD83A0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="AzuEnM_0-1689683920635.png" alt="AzuEnM_0-1689683920635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am currently trying to highlight the values that are significantly higher or lower than average.&lt;/P&gt;
&lt;P&gt;Therefore I am trying to build a formula for the conditional formatting of the background color.&lt;/P&gt;
&lt;P&gt;I already tried to do it with the Median, but that did not work (Qlik Sense calculatd only the median of the specific day, not of a longer period of days):&lt;/P&gt;
&lt;P&gt;If(Sum({&amp;lt;Meternumber={'123-4567891'}&amp;gt;}Meterdata)&amp;gt;(Median(Aggr(Sum({&amp;lt;Meternumber={'123-4567891'}&amp;gt;}Meterdata),Date))*2.0), ARGB(75,255,0,0))&lt;/P&gt;
&lt;P&gt;Is there anybody who knows a way to fix this formula?&lt;/P&gt;
&lt;P&gt;If there is a way to make it work with the average of a period or a comparison to the data of the previous day I would be happy as well.&lt;/P&gt;
&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 13:26:33 GMT</pubDate>
    <dc:creator>AzuEnM</dc:creator>
    <dc:date>2023-07-18T13:26:33Z</dc:date>
    <item>
      <title>Comparing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-values-in-a-table/m-p/2094910#M89706</link>
      <description>&lt;P&gt;Hey everyone!&lt;/P&gt;
&lt;P&gt;I have a little porblem with the analysis of data in a pivot table.&lt;/P&gt;
&lt;P&gt;Here is an example, we are talking about data of an electricity meter:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AzuEnM_0-1689683920635.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112527i1FBD47990CD83A0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="AzuEnM_0-1689683920635.png" alt="AzuEnM_0-1689683920635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am currently trying to highlight the values that are significantly higher or lower than average.&lt;/P&gt;
&lt;P&gt;Therefore I am trying to build a formula for the conditional formatting of the background color.&lt;/P&gt;
&lt;P&gt;I already tried to do it with the Median, but that did not work (Qlik Sense calculatd only the median of the specific day, not of a longer period of days):&lt;/P&gt;
&lt;P&gt;If(Sum({&amp;lt;Meternumber={'123-4567891'}&amp;gt;}Meterdata)&amp;gt;(Median(Aggr(Sum({&amp;lt;Meternumber={'123-4567891'}&amp;gt;}Meterdata),Date))*2.0), ARGB(75,255,0,0))&lt;/P&gt;
&lt;P&gt;Is there anybody who knows a way to fix this formula?&lt;/P&gt;
&lt;P&gt;If there is a way to make it work with the average of a period or a comparison to the data of the previous day I would be happy as well.&lt;/P&gt;
&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 13:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-values-in-a-table/m-p/2094910#M89706</guid>
      <dc:creator>AzuEnM</dc:creator>
      <dc:date>2023-07-18T13:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-values-in-a-table/m-p/2094967#M89713</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;First of all, I recommend you to create a master item of the expression&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Meternumber={'123-4567891'}&amp;gt;}Meterdata) and use the name of the master item instead the expression in the following calcs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;You can obtain the Average of the line in Pivot Table doing the following:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;=Avg(Total &amp;lt;Date&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Aggr(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;[Your Master Measure]&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ,Date,YourRowDimension)&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;You can also get the result of the previus day doing this:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;=Before([Your Master Item])&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Cezário&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jul 2023 15:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-values-in-a-table/m-p/2094967#M89713</guid>
      <dc:creator>CezarioAbrantes</dc:creator>
      <dc:date>2023-07-18T15:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing values in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-values-in-a-table/m-p/2095216#M89734</link>
      <description>&lt;P&gt;Hi Cezário,&lt;/P&gt;
&lt;P&gt;that worked great!&lt;/P&gt;
&lt;P&gt;The "Total"-function was the key to success.&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 09:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-values-in-a-table/m-p/2095216#M89734</guid>
      <dc:creator>AzuEnM</dc:creator>
      <dc:date>2023-07-19T09:39:39Z</dc:date>
    </item>
  </channel>
</rss>

