<?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: Showing main URL on separate column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059652#M636159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, that Excel expression can be translated to QV as:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;=Left(url, Index("/",url,9))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Left(url, Index(url,"/",9))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 14:48:13 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2016-04-19T14:48:13Z</dc:date>
    <item>
      <title>Showing main URL on separate column</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059651#M636158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community, i'm having trouble with something that I wish you could help me out with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, i have about 1000 links ordered by popularity (times that they were shared by a user). So i'd like to be able to group them by the main url.&lt;/P&gt;&lt;P&gt;Therefore: &lt;A href="http://www.graphlib.net/2015/12/07/in-athe-content-grid-v2-infographic/" title="http://www.graphlib.net/2015/12/07/in-athe-content-grid-v2-infographic/"&gt;http://www.graphlib.net/2015/12/07/in-athe-content-grid-v2-infographic/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should become: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.graphlib.net/" rel="nofollow" target="_blank"&gt;http://www.graphlib.net/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's the only way I can see which sites publish popular content and make more sense out of my links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me out? All i know is that if it were Excel, i'd have to do something like&lt;STRONG&gt; =Left(url,FIND("/",url,9))&lt;/STRONG&gt; so that it cuts anything before the 9th character that has a / in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 12:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059651#M636158</guid>
      <dc:creator />
      <dc:date>2016-04-19T12:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Showing main URL on separate column</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059652#M636159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, that Excel expression can be translated to QV as:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;=Left(url, Index("/",url,9))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Left(url, Index(url,"/",9))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059652#M636159</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-04-19T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Showing main URL on separate column</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059653#M636160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try left(url, index(url,'/',3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059653#M636160</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-19T14:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Showing main URL on separate column</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059654#M636161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, I should have searched before how the FIND function Works in Excel. Seems the 3rd parameter is 'start_position' instead of 'occurrence_number'... or more carefully read the requisites, not just the bolded text. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059654#M636161</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-04-19T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Showing main URL on separate column</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059655#M636162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing!! It worked!! I was modifying excel sheets in order to get there.&lt;/P&gt;&lt;P&gt;And if i wanted to show only what's in between the /'s ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the Excel sheet what I did was:&lt;/P&gt;&lt;P&gt;1) Strip anything after the slash (which you showed me how to do here)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) Strip any occurence of "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www" rel="nofollow" target="_blank"&gt;http://www&lt;/A&gt;&lt;SPAN&gt;." or "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www" rel="nofollow" target="_blank"&gt;https://www&lt;/A&gt;&lt;SPAN&gt;."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3) Strip the final slash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So finally, &lt;A href="http://www.graphlib.net/" rel="nofollow" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; text-decoration: underline;" target="_blank" title="http://www.graphlib.net/"&gt;http://www.graphlib.net/&lt;/A&gt; will show up in QV as graphlib.net&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to get that done without having to do it manually every time i get a new Excel Spreadsheet??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059655#M636162</guid>
      <dc:creator />
      <dc:date>2016-04-19T15:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Showing main URL on separate column</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059656#M636163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps Textbetween(url, '.', '/', substringcount(textbetween(url,'//','/') ,'.')-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 05:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059656#M636163</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-20T05:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Showing main URL on separate column</title>
      <link>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059657#M636166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! But that cut out parts of the link &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;This is how i solved it in the Load Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; left(url, index(url,'/',3)) as TestURL2,&lt;/P&gt;&lt;P&gt;From XXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ShortURL:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; title,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; lower(trim(subfield(subfield(subfield(subfield(subfield(TestURL2,'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.'),'https://www.'),'https://'),'http://'),'/" rel="nofollow" target="_blank"&gt;http://www.'),'https://www.'),'https://'),'http://'),'/&lt;/A&gt;&lt;SPAN&gt;'))) as ShortURL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;resident XX;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 12:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Showing-main-URL-on-separate-column/m-p/1059657#M636166</guid>
      <dc:creator />
      <dc:date>2016-04-20T12:58:04Z</dc:date>
    </item>
  </channel>
</rss>

