<?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 Generating a feild in an extract file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569152#M1100508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following formulae in my extract file which works fine and it creates a field and a number for fare evaders. However I want to use the result to generate another field in the extract file. but it wont let me. Can anyone help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically n the example passengers had their tickets checked and their status was then categorised in a 'Validity' field. Those cagegorieed as 'Invalid', ' No Ticket' or 'Non payment' are classed as fare evaders and the formulae below sums them up under the heading 'Evaders'. What I want to do then is take the total passenger check number (field name PAX and divide it by the 'Evaders' number above and multiply by 100 to give me an evasion rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'Invalid' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'No Ticket' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'Non payment'),1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Evaders&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2014 15:46:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-28T15:46:04Z</dc:date>
    <item>
      <title>Generating a feild in an extract file</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569152#M1100508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following formulae in my extract file which works fine and it creates a field and a number for fare evaders. However I want to use the result to generate another field in the extract file. but it wont let me. Can anyone help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically n the example passengers had their tickets checked and their status was then categorised in a 'Validity' field. Those cagegorieed as 'Invalid', ' No Ticket' or 'Non payment' are classed as fare evaders and the formulae below sums them up under the heading 'Evaders'. What I want to do then is take the total passenger check number (field name PAX and divide it by the 'Evaders' number above and multiply by 100 to give me an evasion rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'Invalid' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'No Ticket' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'Non payment'),1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Evaders&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 15:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569152#M1100508</guid>
      <dc:creator />
      <dc:date>2014-04-28T15:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a feild in an extract file</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569153#M1100509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope you haven't forgot to use If&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 15:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569153#M1100509</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-28T15:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a feild in an extract file</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569154#M1100510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;No Ive used 'IF' it just didnt paste into my text. The formulae below works my problem is then using the result id 'Evaders' in another formulae in the same extract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically all I want to do after the formulae below is divide the 'Evaders' into a field called 'PAX'&lt;/P&gt;&lt;P&gt;ie (Evaders) / (PAX) but it wont let me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=If((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'Invalid' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'No Ticket' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Validity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'Non payment'),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1/(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))*100,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Evaders&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 16:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569154#M1100510</guid>
      <dc:creator />
      <dc:date>2014-04-28T16:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a feild in an extract file</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569155#M1100511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide some sample data along with your required output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 16:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-a-feild-in-an-extract-file/m-p/569155#M1100511</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-28T16:08:43Z</dc:date>
    </item>
  </channel>
</rss>

