<?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: Correl function on Rolling Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1687947#M52459</link>
    <description>&lt;P&gt;I am still struggling with this one.&lt;/P&gt;&lt;P&gt;It seems to be so easy, but I cant work it out.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 06:36:50 GMT</pubDate>
    <dc:creator>JohnDavids</dc:creator>
    <dc:date>2020-03-26T06:36:50Z</dc:date>
    <item>
      <title>Correl function on Rolling Date</title>
      <link>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1680235#M51750</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I know how to use the Correl-function and I know how to use "rolling date". But I can't figure out how to combine them.&lt;/P&gt;&lt;P&gt;There is a simplified version of my problem.&lt;BR /&gt;The (simplified) Data looks like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;DATE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;REVENUE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;&lt;STRONG&gt;(REVENUE (AltState))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;01.01.2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1.000&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;(800)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;02.01.2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1.000&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;(1.000)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;03.01.2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1.250&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;(900)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;04.01.2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1.500&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;(1.500)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;05.01.2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1.000&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;(1.600)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;06.01.2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;850&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;(1.800)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;07.01.2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;2.000&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;(850)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;08.01.2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1.250&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;FONT size="3"&gt;&lt;EM&gt;(600)&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;...&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;...&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;[&lt;EM&gt;The REVENUE is actually only one data-set/column. The difference comes from another filter in the AltState. e.g.: In the "normal" state and the AltState the user can select two different countries, resulting&amp;nbsp;in two different&amp;nbsp;Revenue sums.&lt;/EM&gt;]&lt;/P&gt;&lt;P&gt;For Example: In a table with"&lt;STRONG&gt;Date&lt;/STRONG&gt;" as Dimension, I use the Correl function like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;Correl(
	aggr(
		sum({$&amp;lt;Date= P(Date)&amp;gt;} REVENUE )
	,Date)
,
	aggr(
		sum({AltState&amp;lt;Date= P(Date)&amp;gt; REVENUE )
	,Date)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the "rolling date" over three day like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;rangesum(
	above(
		sum({$&amp;lt;Date= P(Date) &amp;gt;} REVENUE )
	,0,3
	)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I tired to combine these two function/measures. I want to show the correlation between the revenue of both states summed up over three days.&lt;/P&gt;&lt;P&gt;I tried to use simply paste the second (rolling) measure inside the first. I tried the RangeCorrel function. I tried to combine Correl with RangeSum or RangeCorrel with Sum, nothing worked.&lt;/P&gt;&lt;P&gt;How can I use a combination of a rolling date and the correl function?&lt;/P&gt;&lt;P&gt;I added a demo excel file that show in column D how this could be done in excel. Maybe that helps you understanding my goal.&lt;/P&gt;&lt;P&gt;Any suggestion, tip or help is highly appreciated.&lt;/P&gt;&lt;P&gt;Kind Regards, John&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1680235#M51750</guid>
      <dc:creator>JohnDavids</dc:creator>
      <dc:date>2024-11-16T19:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Correl function on Rolling Date</title>
      <link>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1681150#M51828</link>
      <description>&lt;P&gt;Can some please help me here?&lt;BR /&gt;I still can't figure out how to achieve it.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 07:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1681150#M51828</guid>
      <dc:creator>JohnDavids</dc:creator>
      <dc:date>2020-03-03T07:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Correl function on Rolling Date</title>
      <link>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1687947#M52459</link>
      <description>&lt;P&gt;I am still struggling with this one.&lt;/P&gt;&lt;P&gt;It seems to be so easy, but I cant work it out.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 06:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1687947#M52459</guid>
      <dc:creator>JohnDavids</dc:creator>
      <dc:date>2020-03-26T06:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Correl function on Rolling Date</title>
      <link>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1697614#M53385</link>
      <description>&lt;P&gt;It is even possible to use&amp;nbsp;Correl-function and a "rolling date" like I did in the Excel document in my first post? I still cant figure out how to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 09:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Correl-function-on-Rolling-Date/m-p/1697614#M53385</guid>
      <dc:creator>JohnDavids</dc:creator>
      <dc:date>2020-04-29T09:26:20Z</dc:date>
    </item>
  </channel>
</rss>

