<?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 Cohort report ? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41684#M878</link>
    <description>&lt;P&gt;Hi, I'm trying to build a cohort report in splunk and I can't think of an easy way other than a million joins.&lt;/P&gt;

&lt;P&gt;Let's say I want to measure retention to my site.&lt;BR /&gt;
I would take all the users who visited my site on the week of June 5th and see how much of them return in the following weeks.&lt;BR /&gt;
The same thing I would do for each of the following weeks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     Week 1| Week 2 | Week 3 |  Week 4 | Week 5  |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;June 5  | 100  |  20    |  15    |  10     |  10&lt;BR /&gt;
June 12 | 110  |  40    |  35    |  30     |&lt;BR /&gt;
June 19 | 106  |  50    |  44    |         |&lt;BR /&gt;
June 26 | 100  |  55    |     |         |&lt;/P&gt;

&lt;P&gt;I've built a cohort like this with more than 10 different joins and a few appends.&lt;/P&gt;

&lt;P&gt;Is there a simpler way? &lt;BR /&gt;
streamstats perhaps?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2012 09:33:44 GMT</pubDate>
    <dc:creator>Yarsa</dc:creator>
    <dc:date>2012-08-22T09:33:44Z</dc:date>
    <item>
      <title>Cohort report ?</title>
      <link>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41684#M878</link>
      <description>&lt;P&gt;Hi, I'm trying to build a cohort report in splunk and I can't think of an easy way other than a million joins.&lt;/P&gt;

&lt;P&gt;Let's say I want to measure retention to my site.&lt;BR /&gt;
I would take all the users who visited my site on the week of June 5th and see how much of them return in the following weeks.&lt;BR /&gt;
The same thing I would do for each of the following weeks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     Week 1| Week 2 | Week 3 |  Week 4 | Week 5  |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;June 5  | 100  |  20    |  15    |  10     |  10&lt;BR /&gt;
June 12 | 110  |  40    |  35    |  30     |&lt;BR /&gt;
June 19 | 106  |  50    |  44    |         |&lt;BR /&gt;
June 26 | 100  |  55    |     |         |&lt;/P&gt;

&lt;P&gt;I've built a cohort like this with more than 10 different joins and a few appends.&lt;/P&gt;

&lt;P&gt;Is there a simpler way? &lt;BR /&gt;
streamstats perhaps?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2012 09:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41684#M878</guid>
      <dc:creator>Yarsa</dc:creator>
      <dc:date>2012-08-22T09:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort report ?</title>
      <link>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41685#M879</link>
      <description>&lt;P&gt;How do you identify unique users? By cookie value or something else?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2012 09:50:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41685#M879</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-08-22T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort report ?</title>
      <link>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41686#M880</link>
      <description>&lt;P&gt;I have logs like this:&lt;BR /&gt;
* 2012-08-07T23:36:16+0000 A=enterEvent userId=####### ...&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2012 10:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41686#M880</guid>
      <dc:creator>Yarsa</dc:creator>
      <dc:date>2012-08-22T10:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort report ?</title>
      <link>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41687#M881</link>
      <description>&lt;P&gt;Hi turns out it was easier than I thought &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Here's what I did&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;scheduled job - test#:&lt;/STRONG&gt; &lt;BR /&gt;
"earliest="-4w@w" latest="@w"  sourcetype=bi  | bucket _time as week span=1w | table userId week" &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;scheduled job - test##:&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;"earliest="-4w@w" latest="@w"  sourcetype=bi A=enterEvent | bucket _time as week span=1w | convert timeformat="%d/%m/%y" ctime(_time) AS day | stats dc(day) as days by userId,week"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Final query&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;"| loadjob savedsearch="yarin:search:test#" | dedup userId week | join userId type=inner max=0 [| loadjob savedsearch="yarin:search:test##" | rename week as weeks | streamstats count as rank by userId] | chart dc(userId) as users by week,rank |  streamstats count as rank | rename "1" as week1 | rename "2" as week2 | rename "3" as week3 | rename "4" as week4 "&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41687#M881</guid>
      <dc:creator>Yarsa</dc:creator>
      <dc:date>2020-09-28T12:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort report ?</title>
      <link>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41688#M882</link>
      <description>&lt;P&gt;Hi, can you please explain little your search? I'm trying to do similar search but with no luck. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2015 13:40:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Cohort-report/m-p/41688#M882</guid>
      <dc:creator>jbranislav</dc:creator>
      <dc:date>2015-08-14T13:40:36Z</dc:date>
    </item>
  </channel>
</rss>

