<?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: Transforming data while Loading from an Access table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389387#M488160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ODBC CONNECT TO [Odonto;DBQ=C:\Users\MATest1.mdb];&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;if(left(FOTO_DESCRIPCION,2)='CW',subfield(FOTO_DESCRIPCION,' ',2),&lt;/P&gt;&lt;P&gt;if(left(FOTO_DESCRIPCION,4)='STUB',subfield(FOTO_DESCRIPCION,' ',2))) as FINAL,&lt;/P&gt;&lt;P&gt;if(left(FOTO_DESCRIPCION,2)='CW',subfield(FOTO_DESCRIPCION,' ',1),&lt;/P&gt;&lt;P&gt;if(left(FOTO_DESCRIPCION,4)='STUB',subfield(FOTO_DESCRIPCION,' ',1))) as TYPE,&lt;/P&gt;&lt;P&gt;FOTO_DESCRIPCION;&lt;/P&gt;&lt;P&gt;SQL SELECT `FOTO_DESCRIPCION`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `FOTO_ID`&lt;/P&gt;&lt;P&gt;FROM `B_PACI_ FOTOS`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOTO_DESCRIPCION is the same to period for you. to me it works. &lt;/P&gt;&lt;P&gt;hope now help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 14:45:21 GMT</pubDate>
    <dc:creator>fdelacal</dc:creator>
    <dc:date>2013-01-31T14:45:21Z</dc:date>
    <item>
      <title>Transforming data while Loading from an Access table</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389382#M488155</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;Might seem quite straightforward, but is there a way I can change data while loading from an access table? Currently I am trying to use expressions on data I am loading from an access table. but it shows up an as an error while I reload. If I dont use any functions, it reloads fine. Does qlikview not allow the use of functions while loading from an access table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [MS Access Database;DBQ=L:\7 Projects\2012\Qlikview\test DB.mdb];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Period,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(SubField(Period,' ',1)='CW','CW','STUB') as Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;date(if(Len(SubField(SubField(Period,' ',2),'/',2))=1,'0'&amp;amp;SubField(SubField(Period,' ',2),'/',2),SubField(SubField(Period,' ',2),'/',2))&amp;amp;'/'&amp;amp;if(Len(SubField(SubField(Period,' ',2),'/',1))=1,'0'&amp;amp;SubField(SubField(Period,' ',2),'/',1),SubField(SubField(Period,' ',2),'/',1))&amp;amp;'/'&amp;amp;Right(Period,4)) as Final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM `RB_tbl_Weekly data`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially the expression above Takes a text like CW 1/25/2013 in Period and gives CW to Type and 25/01/2013 to Final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Ive tried the same script while loading from a test excel file that I created and it works perfectly (See attached). Would be great if someone can point out what I'm doing wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389382#M488155</guid>
      <dc:creator />
      <dc:date>2013-01-31T12:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data while Loading from an Access table</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389383#M488156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem one time, if you can try with this &lt;/P&gt;&lt;P&gt;left(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,2) x example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left adnd right &lt;/P&gt;&lt;P&gt;work fine... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be its help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389383#M488156</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2013-01-31T12:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data while Loading from an Access table</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389384#M488157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially what I want to do is change a field called period in my access table. Period is text field that shows the week of sales and if the sales figure is for the current week or the whole month. For example, last week, I will have multiple rows in the table with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CW 1/25/2013&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;STUB 1/25/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written expressions that convert Period into 'Type' that captures the CW/STUB and 'Final' that stores this date as a British date with zeroes. i.e 25/01/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a qlikview and an excel file with these sort of dates. My expressions work perfectly when i load from excel. (See script and attached qlikview file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be fantastic if i could use the same expressions but just load the table from access instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 13:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389384#M488157</guid>
      <dc:creator />
      <dc:date>2013-01-31T13:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data while Loading from an Access table</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389385#M488158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(left(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,2)='CW',subfield(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,' ',2),&lt;/P&gt;&lt;P&gt;if(left(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,4)='STUB',subfield(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,' ',2))) as FINAL,&lt;/P&gt;&lt;P&gt;if(left(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,2)='CW',subfield(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,' ',1),&lt;/P&gt;&lt;P&gt;if(left(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,4)='STUB',subfield(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;,' ',1))) as TYPE,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Period&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;REGARDS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 14:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389385#M488158</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2013-01-31T14:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data while Loading from an Access table</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389386#M488159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, it does not Load when i try it with my access table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show me the remaining part of the code,i.e with the Load and select and connect statements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem IS NOT the expression, that works fine for me. It is the fact that when i try it with an ACCESS table it gives me an error on reloading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 14:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389386#M488159</guid>
      <dc:creator />
      <dc:date>2013-01-31T14:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data while Loading from an Access table</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389387#M488160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ODBC CONNECT TO [Odonto;DBQ=C:\Users\MATest1.mdb];&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;if(left(FOTO_DESCRIPCION,2)='CW',subfield(FOTO_DESCRIPCION,' ',2),&lt;/P&gt;&lt;P&gt;if(left(FOTO_DESCRIPCION,4)='STUB',subfield(FOTO_DESCRIPCION,' ',2))) as FINAL,&lt;/P&gt;&lt;P&gt;if(left(FOTO_DESCRIPCION,2)='CW',subfield(FOTO_DESCRIPCION,' ',1),&lt;/P&gt;&lt;P&gt;if(left(FOTO_DESCRIPCION,4)='STUB',subfield(FOTO_DESCRIPCION,' ',1))) as TYPE,&lt;/P&gt;&lt;P&gt;FOTO_DESCRIPCION;&lt;/P&gt;&lt;P&gt;SQL SELECT `FOTO_DESCRIPCION`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `FOTO_ID`&lt;/P&gt;&lt;P&gt;FROM `B_PACI_ FOTOS`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOTO_DESCRIPCION is the same to period for you. to me it works. &lt;/P&gt;&lt;P&gt;hope now help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 14:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389387#M488160</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2013-01-31T14:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data while Loading from an Access table</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389388#M488161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly! Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was missing the "Exit Script;" at the very end!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389388#M488161</guid>
      <dc:creator />
      <dc:date>2013-01-31T15:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming data while Loading from an Access table</title>
      <link>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389389#M488162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use exit script, because i have more table load after that, is not necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice!! Thanks to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transforming-data-while-Loading-from-an-Access-table/m-p/389389#M488162</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2013-01-31T15:45:09Z</dc:date>
    </item>
  </channel>
</rss>

