<?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: Best aproach for extracting ids from string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411628#M1159690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi qlik_techie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am almost there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use Load *, SubField(fieldname,':',1) as userid,SubField(fieldname,':',2) as Country;&lt;/P&gt;&lt;P&gt;I am only getting 3 rows of results(don't know why) and there's a lot more.&lt;/P&gt;&lt;P&gt;So I used SubField(SubField(fieldname,','),':') as idmails; and the results where all separated in the same table like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="26560" class="jive-image" alt="3.jpg" src="https://community.qlik.com/legacyfs/online/26560_3.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to exclude text strings(country code) from the list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 18:08:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-07T18:08:24Z</dc:date>
    <item>
      <title>Best aproach for extracting ids from string</title>
      <link>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411624#M1159682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a mass mailer program installed in my server which creates metrics from the emails delivered. This data is stored in a data base, but I encountered a problem to extract the ids from the users that opened the email.&amp;nbsp; Each campaign I send, stores the ids of the users that opens the email in a row using the following format:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image-thumbnail jive-image" height="71" onclick="" src="https://community.qlik.com/legacyfs/online/26476_2.jpg" width="1805" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/288686/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One row for each campaign..&lt;/P&gt;&lt;P&gt;example: 6130:CO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;6130 is the id for the user and CO is the country &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to select the campaign title and to see which users opened that campaign. This is the layout..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image-thumbnail jive-image" height="455" onclick="" src="https://community.qlik.com/legacyfs/online/26477_1.jpg" width="664" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app: company id&lt;/P&gt;&lt;P&gt;app_name: company name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/288686/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 03:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411624#M1159682</guid>
      <dc:creator />
      <dc:date>2012-12-06T03:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Best aproach for extracting ids from string</title>
      <link>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411625#M1159684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;id for the user : SubField(fieldname,':',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;id for the company: SubField(fieldname,':',2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 03:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411625#M1159684</guid>
      <dc:creator />
      <dc:date>2012-12-06T03:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Best aproach for extracting ids from string</title>
      <link>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411626#M1159686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new using qlikview..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am accesing those tables from my server using a SQL connection via script..&lt;/P&gt;&lt;P&gt;SQL SELECT app,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; title,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; opens&lt;/P&gt;&lt;P&gt;FROM database.campaigns;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try that syntaxis I get some errors..do I have to consider something different when connecting directly to the db to make the subfields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 02:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411626#M1159686</guid>
      <dc:creator />
      <dc:date>2012-12-07T02:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Best aproach for extracting ids from string</title>
      <link>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411627#M1159688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've two options to make that work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create qvds from your SQL datasource &amp;amp; apply the function while you load data from the qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Use Load Statement before the Select statement from the SQL and use the function in the Load part of the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, SubField(fieldname,':',1) as userid,SubField(fieldname,':',2) as Country;&lt;/P&gt;&lt;P&gt;SQL Select * from Database.tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where fieldname is ofcourse the name of the field which contains ur string from which u like to extract the id &amp;amp; country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 05:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411627#M1159688</guid>
      <dc:creator />
      <dc:date>2012-12-07T05:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Best aproach for extracting ids from string</title>
      <link>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411628#M1159690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi qlik_techie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am almost there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use Load *, SubField(fieldname,':',1) as userid,SubField(fieldname,':',2) as Country;&lt;/P&gt;&lt;P&gt;I am only getting 3 rows of results(don't know why) and there's a lot more.&lt;/P&gt;&lt;P&gt;So I used SubField(SubField(fieldname,','),':') as idmails; and the results where all separated in the same table like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="26560" class="jive-image" alt="3.jpg" src="https://community.qlik.com/legacyfs/online/26560_3.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to exclude text strings(country code) from the list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 18:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411628#M1159690</guid>
      <dc:creator />
      <dc:date>2012-12-07T18:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Best aproach for extracting ids from string</title>
      <link>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411629#M1159692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; keepchar(FieldName,1234567890) will exclude the strings &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 18:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411629#M1159692</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-07T18:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Best aproach for extracting ids from string</title>
      <link>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411630#M1159694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally got it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(keepchar(opens,',0123456789'),',') as [idcorreo];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Mayil and qlik_techie,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 18:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-aproach-for-extracting-ids-from-string/m-p/411630#M1159694</guid>
      <dc:creator />
      <dc:date>2012-12-07T18:27:31Z</dc:date>
    </item>
  </channel>
</rss>

