<?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: average of 2 columns subtraction in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/average-of-2-columns-subtraction/m-p/1885050#M72902</link>
    <description>&lt;P&gt;i have found the solution myself it will be the formula like this :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;avg(aggr(if(not is null (day 1)&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;and not is null(day2),(day2-day1))),day2,day1 )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 14:28:12 GMT</pubDate>
    <dc:creator>rexhina</dc:creator>
    <dc:date>2022-01-25T14:28:12Z</dc:date>
    <item>
      <title>average of 2 columns subtraction</title>
      <link>https://community.qlik.com/t5/App-Development/average-of-2-columns-subtraction/m-p/1884591#M72880</link>
      <description>&lt;P&gt;I have a table in Qlik sense and I want to find the average of the difference between two columns. The table is like this :&lt;/P&gt;
&lt;P&gt;I want to write a function to find the average of the difference between two columns. I have tried something like this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;avg(aggr(if(not is null (day 1)&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;and not is null(day2),day2-day1)),customer&amp;nbsp; name )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;but it is not working.&amp;nbsp; Help me with this&lt;/P&gt;
&lt;TABLE border="1" width="99.91869918699186%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="28.90243902439024%"&gt;&lt;STRONG&gt;Day 1&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="37.68292682926829%"&gt;&lt;STRONG&gt;Day 2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&lt;STRONG&gt;Average of difference between the day2 and day1&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="28.90243902439024%"&gt;24.11.2021&lt;/TD&gt;
&lt;TD width="37.68292682926829%"&gt;27.11.2021&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="28.90243902439024%"&gt;12.12.2021&lt;/TD&gt;
&lt;TD width="37.68292682926829%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="28.90243902439024%"&gt;13.12.2021&lt;/TD&gt;
&lt;TD width="37.68292682926829%"&gt;18.12.2021&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="28.90243902439024%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="37.68292682926829%"&gt;17.1.2022&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="28.90243902439024%"&gt;3.1.2022&lt;/TD&gt;
&lt;TD width="37.68292682926829%"&gt;7.1.220&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/average-of-2-columns-subtraction/m-p/1884591#M72880</guid>
      <dc:creator>rexhina</dc:creator>
      <dc:date>2024-11-16T16:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: average of 2 columns subtraction</title>
      <link>https://community.qlik.com/t5/App-Development/average-of-2-columns-subtraction/m-p/1885050#M72902</link>
      <description>&lt;P&gt;i have found the solution myself it will be the formula like this :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;avg(aggr(if(not is null (day 1)&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;and not is null(day2),(day2-day1))),day2,day1 )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 14:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/average-of-2-columns-subtraction/m-p/1885050#M72902</guid>
      <dc:creator>rexhina</dc:creator>
      <dc:date>2022-01-25T14:28:12Z</dc:date>
    </item>
  </channel>
</rss>

