<?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: Convert Feet and Inches to Inches in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065780#M635816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourField,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Rangesum(Subfield(YourField ,chr(39),1),Subfield(YourField ,chr(39),2)/12) AS FeetFrac&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SELECT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Used Rangesum()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 15:49:21 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-03T15:49:21Z</dc:date>
    <item>
      <title>Convert Feet and Inches to Inches</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065779#M635814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a data set that I'm having trouble with. My returned value for feet and inches is 10'11 as a string. Our salespeople get paid per foot, so I need to turn that into a number that I can plug into a mathematical equation. How can set up Qlik or SQL to convert?&lt;/P&gt;&lt;P&gt;Additonal info:&lt;/P&gt;&lt;P&gt;There is no guarantee that there will be inches attached to the length, much of the time it is only shown in feet, but the ' is always in place.&lt;/P&gt;&lt;P&gt;I thought about truncating, but we could have anything from 8 feet up to 150 feet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my current query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bsc.id,&lt;/P&gt;&lt;P&gt;writtendate,&lt;/P&gt;&lt;P&gt;commissionedsalesperson,&lt;/P&gt;&lt;P&gt;cl.name as clname,&lt;/P&gt;&lt;P&gt;bmtdefaultloc, &lt;/P&gt;&lt;P&gt;splitpercentage, &lt;/P&gt;&lt;P&gt;store_name, &lt;/P&gt;&lt;P&gt;worksheetprofit, &lt;/P&gt;&lt;P&gt;bsc.name as customer, &lt;/P&gt;&lt;P&gt;bsc_commissions.bsc_id,&lt;/P&gt;&lt;P&gt;length,&lt;/P&gt;&lt;P&gt;bmi.year,&lt;/P&gt;&lt;P&gt;bmi.description&lt;/P&gt;&lt;P&gt;from bsc&lt;/P&gt;&lt;P&gt;left outer join bsc_commissions&lt;/P&gt;&lt;P&gt;on bsc.id = bsc_commissions.bsc_id&lt;/P&gt;&lt;P&gt;left outer join cl&lt;/P&gt;&lt;P&gt;on bsc_commissions.commissionedsalesperson = cl.cl_id&lt;/P&gt;&lt;P&gt;left outer join store_info&lt;/P&gt;&lt;P&gt;on cl.bmtdefaultloc = store_info.store_id&lt;/P&gt;&lt;P&gt;left outer join bsc_boats&lt;/P&gt;&lt;P&gt;on bsc.id = bsc_boats.bsc_id&lt;/P&gt;&lt;P&gt;left outer join bmi&lt;/P&gt;&lt;P&gt;on bsc_boats.boatmodelid = bmi.id&lt;/P&gt;&lt;P&gt;where writtendate &amp;gt;= '01/01/2016'&lt;/P&gt;&lt;P&gt;and commissionedsalesperson is not null&lt;/P&gt;&lt;P&gt;and cl.name is not null&lt;/P&gt;&lt;P&gt;and bsc.status = 'o'&lt;/P&gt;&lt;P&gt;and splitpercentage &amp;gt;= '0.5'&lt;/P&gt;&lt;P&gt;order by commissionedsalesperson asc;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 15:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065779#M635814</guid>
      <dc:creator />
      <dc:date>2016-05-03T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Feet and Inches to Inches</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065780#M635816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourField,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Rangesum(Subfield(YourField ,chr(39),1),Subfield(YourField ,chr(39),2)/12) AS FeetFrac&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SELECT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Used Rangesum()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 15:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065780#M635816</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-03T15:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Feet and Inches to Inches</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065781#M635817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you want to get the inches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Rangesum(Subfield(YourField ,chr(39),1)*12,Subfield(YourField ,chr(39),2)) AS Inches&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 15:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065781#M635817</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-03T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Feet and Inches to Inches</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065782#M635818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting an error using that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: 'chr' is not a recognized built-in function name.&lt;/P&gt;&lt;P&gt;select bsc.id,&lt;/P&gt;&lt;P&gt;writtendate,&lt;/P&gt;&lt;P&gt;commissionedsalesperson,&lt;/P&gt;&lt;P&gt;cl.name as clname,&lt;/P&gt;&lt;P&gt;bmtdefaultloc, &lt;/P&gt;&lt;P&gt;splitpercentage, &lt;/P&gt;&lt;P&gt;store_name, &lt;/P&gt;&lt;P&gt;worksheetprofit, &lt;/P&gt;&lt;P&gt;bsc.name as customer, &lt;/P&gt;&lt;P&gt;bsc_commissions.bsc_id,&lt;/P&gt;&lt;P&gt;Rangesum(Subfield(length, chr(39),1),Subfield(length, chr(39),2)/12) AS FeetFrac,&lt;/P&gt;&lt;P&gt;bmi.year,&lt;/P&gt;&lt;P&gt;bmi.description&lt;/P&gt;&lt;P&gt;from bsc&lt;/P&gt;&lt;P&gt;left outer join bsc_commissions&lt;/P&gt;&lt;P&gt;on bsc.id = bsc_commissions.bsc_id&lt;/P&gt;&lt;P&gt;left outer join cl&lt;/P&gt;&lt;P&gt;on bsc_commissions.commissionedsalesperson = cl.cl_id&lt;/P&gt;&lt;P&gt;left outer join store_info&lt;/P&gt;&lt;P&gt;on cl.bmtdefaultloc = store_info.store_id&lt;/P&gt;&lt;P&gt;left outer join bsc_boats&lt;/P&gt;&lt;P&gt;on bsc.id = bsc_boats.bsc_id&lt;/P&gt;&lt;P&gt;left outer join bmi&lt;/P&gt;&lt;P&gt;on bsc_boats.boatmodelid = bmi.id&lt;/P&gt;&lt;P&gt;where writtendate &amp;gt;= '01/01/2016'&lt;/P&gt;&lt;P&gt;and commissionedsalesperson is not null&lt;/P&gt;&lt;P&gt;and cl.name is not null&lt;/P&gt;&lt;P&gt;and bsc.status = 'o'&lt;/P&gt;&lt;P&gt;and splitpercentage &amp;gt;= '0.5'&lt;/P&gt;&lt;P&gt;order by commissionedsalesperson asc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 20:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065782#M635818</guid>
      <dc:creator />
      <dc:date>2016-05-03T20:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Feet and Inches to Inches</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065783#M635819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check my first answer, I am not using the calculations in the SQL part, but in an preceding LOAD:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 21:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065783#M635819</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-03T21:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Feet and Inches to Inches</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065784#M635820</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;another solution might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_215416_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123456_QlikCommunity_Thread_215416_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14623116069578524 jive_text_macro" jivemacro_uid="_14623116069578524"&gt;
&lt;P&gt;tabLength:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluate(Replace(length,Chr(39),'+1/12*0')) as lengthFeet,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluate('12*'&amp;amp;Replace(length,Chr(39),'+0')) as lengthInches&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;length&lt;/P&gt;
&lt;P&gt;10'&lt;/P&gt;
&lt;P&gt;10'1&lt;/P&gt;
&lt;P&gt;10'2&lt;/P&gt;
&lt;P&gt;10'3&lt;/P&gt;
&lt;P&gt;10'4&lt;/P&gt;
&lt;P&gt;10'5&lt;/P&gt;
&lt;P&gt;10'6&lt;/P&gt;
&lt;P&gt;10'7&lt;/P&gt;
&lt;P&gt;10'8&lt;/P&gt;
&lt;P&gt;10'9&lt;/P&gt;
&lt;P&gt;10'10&lt;/P&gt;
&lt;P&gt;10'11&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 21:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Feet-and-Inches-to-Inches/m-p/1065784#M635820</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-03T21:41:00Z</dc:date>
    </item>
  </channel>
</rss>

