<?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: Running a Loop and Creating Groups - Web Analytics in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286157#M496701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (FuseActions) LOAD&lt;/P&gt;&lt;P&gt;concat(Fuse_Action,'-',Fuse_Action_ID) as FQPath,&lt;/P&gt;&lt;P&gt;Path&lt;/P&gt;&lt;P&gt;Resident FuseActions group by Path;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then do a distinct count on FQPath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;You could also use an autonumber() around the concat to create a number instead of the lenghty text (or both), could be more performant. And you don't necessarily need the left join, you could also keep the tables just linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 20:00:09 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-12-07T20:00:09Z</dc:date>
    <item>
      <title>Running a Loop and Creating Groups - Web Analytics</title>
      <link>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286154#M496698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've looked around briefly for an answer to this, but it doesn't look like it has been asked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use QlikView for web analytics. My tables are FuseActions and People.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FuseActions:&lt;/P&gt;&lt;P&gt;LOAD Fuse_Action_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fuse_Action, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date (Date) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day (Date) as Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month (Date) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year (Date) as Year, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;People:&lt;/P&gt;&lt;P&gt;LOAD User_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company_Name, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to layout "Paths" that a user follows on our websites. I would like to turn these "Paths" into groups. Fuse_Action represents a click to another page in our website. So each "Path" would be made up of several Fuse_Actions until we return to the homepage or exit the website. My general thinking is to have a sort by User_ID, followed by a sort by Time. With things sorted this way, I like to run a loop that would group all Fuse_Actions from the homepage until the next time the homepage comes up and be able to group that as a "Path." I am a new user and do not have any idea how I would write this in QlikView or if it is even possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 18:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286154#M496698</guid>
      <dc:creator />
      <dc:date>2011-12-07T18:33:15Z</dc:date>
    </item>
    <item>
      <title>Running a Loop and Creating Groups - Web Analytics</title>
      <link>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286155#M496699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could do it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;if(peek(User_ID) &amp;lt;&amp;gt; UserID or Fuse_Action='Homepage', rangesum(peek(Path),1),rangesum(peek(Path))) as Path&lt;/P&gt;&lt;P&gt;resident FuseActions order by User_ID, Time;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should enumerate each path in a new field Path over all User_IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 19:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286155#M496699</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-07T19:12:20Z</dc:date>
    </item>
    <item>
      <title>Running a Loop and Creating Groups - Web Analytics</title>
      <link>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286156#M496700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan, it worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now another question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some repeating "Paths"&amp;nbsp; in the list. How could I identify each duplicate "path" as a uniqe path and display a count to show how many times that path occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 19:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286156#M496700</guid>
      <dc:creator />
      <dc:date>2011-12-07T19:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Loop and Creating Groups - Web Analytics</title>
      <link>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286157#M496701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (FuseActions) LOAD&lt;/P&gt;&lt;P&gt;concat(Fuse_Action,'-',Fuse_Action_ID) as FQPath,&lt;/P&gt;&lt;P&gt;Path&lt;/P&gt;&lt;P&gt;Resident FuseActions group by Path;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then do a distinct count on FQPath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;You could also use an autonumber() around the concat to create a number instead of the lenghty text (or both), could be more performant. And you don't necessarily need the left join, you could also keep the tables just linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 20:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-a-Loop-and-Creating-Groups-Web-Analytics/m-p/286157#M496701</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-07T20:00:09Z</dc:date>
    </item>
  </channel>
</rss>

