<?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 Field Format and Calculation Problem ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228419#M502755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;THANKS FOR RESPONSES...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HAVE A GOOD TIME...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Oct 2010 13:11:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-07T13:11:57Z</dc:date>
    <item>
      <title>Field Format and Calculation Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228412#M502748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 111pt; border-collapse: collapse;" width="148"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 111pt; mso-width-source: userset; mso-width-alt: 5412; mso-outline-parent: collapsed;" width="148" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; width: 111pt; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;" width="148"&gt;0.18&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;0.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.05&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.06&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.15&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.32&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.33&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.46&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;2.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;2.06&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;I have 2 fields that comes from separate tables from the Oracle DB and these are below and above there.&lt;BR /&gt;I would like to multiply this 2 fields and show this calculation in another listbox.&lt;BR /&gt;&lt;BR /&gt;But i could not change fields format so my expression does not work !!!&lt;BR /&gt;&lt;BR /&gt;ex: (fieldA * fieldB)&lt;BR /&gt;&lt;BR /&gt;How can i do it ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 111pt; border-collapse: collapse;" width="148"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 111pt; mso-width-source: userset; mso-width-alt: 5412; mso-outline-parent: collapsed;" width="148" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; width: 111pt; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;" width="148"&gt;1/1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/6&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/7&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/8&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/9&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/11&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/12&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/13&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/14&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/16&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/17&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/18&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/19&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: #f0f0f0; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: #f0f0f0; border-right: gainsboro 0.5pt solid;"&gt;1/20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 15:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228412#M502748</guid>
      <dc:creator />
      <dc:date>2010-10-05T15:21:54Z</dc:date>
    </item>
    <item>
      <title>Field Format and Calculation Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228413#M502749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;(fieldA * Num(fieldB))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;QlikView is probably treating the fractions as text (or worse, dates). If you use Num() it will evaluate the fraction to a decimal. It may even be a good idea to use the Num() function in your load.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD Num(fieldB) As fieldB&lt;BR /&gt;FROM...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 15:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228413#M502749</guid>
      <dc:creator />
      <dc:date>2010-10-05T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Field Format and Calculation Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228414#M502750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;NMiller wrote:If you use Num() it will evaluate the fraction to a decimal.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Wait, it does? It does! Clever. I had no idea. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 22:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228414#M502750</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-05T22:22:50Z</dc:date>
    </item>
    <item>
      <title>Field Format and Calculation Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228415#M502751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks for responses&lt;/P&gt;&lt;P&gt;But it does not work !!!&lt;BR /&gt;&lt;BR /&gt;Any idea ???&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 08:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228415#M502751</guid>
      <dc:creator />
      <dc:date>2010-10-06T08:10:16Z</dc:date>
    </item>
    <item>
      <title>Field Format and Calculation Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228416#M502752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I must have spoken too soon. It seems to work in a text box as Num(1/3), but not when the data is a fraction.&lt;/P&gt;&lt;P&gt;You can use Evaluate(FIELD) in your load and it seems to work. Using Evaluate(FIELD) in an expression does not work though.&lt;/P&gt;&lt;P&gt;EDIT: Maybe because Evaluate is not valid in an expression, only in the load. I attached an example that loads the Fraction and then Evaluates that fraction into a decimal value.&lt;/P&gt;&lt;P&gt;Last Edit, I Promise: I figured out an expression that would do it. It's not pretty, so I would suggest the Evaluate option, but this will probably work fine:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Left(Fraction, Index(Fraction, '/') - 1) /&lt;BR /&gt;Mid(Fraction, Index(Fraction, '/') + 1)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;B&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 14:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228416#M502752</guid>
      <dc:creator />
      <dc:date>2010-10-06T14:56:41Z</dc:date>
    </item>
    <item>
      <title>Field Format and Calculation Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228417#M502753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that it's probably best to do it in the load, but here's a slightly simpler chart expression that works:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;subfield(Fraction,'/',1)/subfield(Fraction,'/',2)&lt;/P&gt;&lt;P&gt;And num(Fraction) not working makes sense to me in hindsight. When you say num(1/3), it's almost certainly just doing a straight division, and only THEN evaluating the num() function. Standard order of precedence stuff, working from inside out, nothing clever. If you do num('1/3'), then it doesn't work, I think indicating that the num() function doesn't actually know what to do with fractions.&lt;/P&gt;&lt;P&gt;As an aside, I'd really like for the evaluate() function to work in chart expressions as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 21:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228417#M502753</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-06T21:06:34Z</dc:date>
    </item>
    <item>
      <title>Field Format and Calculation Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228418#M502754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subfield, yes, much nicer. I'll have to add that one to my cheat sheet, it can really come in handy when working on fields that aren't necessarily delimited lists. Thanks for the tip!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 22:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228418#M502754</guid>
      <dc:creator />
      <dc:date>2010-10-06T22:07:57Z</dc:date>
    </item>
    <item>
      <title>Field Format and Calculation Problem ?</title>
      <link>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228419#M502755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;THANKS FOR RESPONSES...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HAVE A GOOD TIME...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 13:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-Format-and-Calculation-Problem/m-p/228419#M502755</guid>
      <dc:creator />
      <dc:date>2010-10-07T13:11:57Z</dc:date>
    </item>
  </channel>
</rss>

