<?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: Creating a query (calculated field) to use as a selection criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-query-calculated-field-to-use-as-a-selection-criteria/m-p/862620#M652869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the table containing your values is for example Tab1 then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * resident Tab1;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;Load [Project ID], Sum(Total Benefit) as Prj_Tot resident Tab1 Group by [Project ID];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now all the rows containing a value for Prj_Tot are the rows you need ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 14:18:48 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2015-07-13T14:18:48Z</dc:date>
    <item>
      <title>Creating a query (calculated field) to use as a selection criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-query-calculated-field-to-use-as-a-selection-criteria/m-p/862619#M652868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading in my data in the following format;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Project ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total Cost&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total Benefit&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £10,000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £5,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £5,000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £0,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £1,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £7,000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £2,000&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £6,000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £1,000&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £1,000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; £0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to filter my data for projects that deliver a benefit of more than £0.&amp;nbsp; When I simply put an IF statement into my load script, it evaluates each piece of data getting loaded in.&amp;nbsp; That means that red line above gets tagged with false... yet the other two lines (in green) of financials for Project ID = 1, get a true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I really want it to do, is evaulate the project as a whole, and show that Project ID 1 does have a benefit, and therefore when I make my filter on my dashboard, it gives me all the data for that project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it were a Access Database, I guess I would be looking to create a query, with a calulated field, in which I could then use to apply my filter on.&amp;nbsp; I have no idea how to achieve this in Qlikview though.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 13:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-query-calculated-field-to-use-as-a-selection-criteria/m-p/862619#M652868</guid>
      <dc:creator />
      <dc:date>2015-07-13T13:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a query (calculated field) to use as a selection criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-query-calculated-field-to-use-as-a-selection-criteria/m-p/862620#M652869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the table containing your values is for example Tab1 then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * resident Tab1;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;Load [Project ID], Sum(Total Benefit) as Prj_Tot resident Tab1 Group by [Project ID];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now all the rows containing a value for Prj_Tot are the rows you need ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 14:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-query-calculated-field-to-use-as-a-selection-criteria/m-p/862620#M652869</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-07-13T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a query (calculated field) to use as a selection criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-query-calculated-field-to-use-as-a-selection-criteria/m-p/862621#M652870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend you perform this filter in the UI and not at the time of load the data.&amp;nbsp; This will avoid limiting the analysis you can do on the data.&amp;nbsp; You may want to consider creating a specific button to make the selection as desribed in this posting:&amp;nbsp; &lt;A href="https://community.qlik.com/thread/48957"&gt;Using Expressions to Make Selections&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also cloud do it in he expression in the chart using an expression in the dimension such as as If (Sum([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Total Benefit]) &amp;gt; 0, [Project ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-query-calculated-field-to-use-as-a-selection-criteria/m-p/862621#M652870</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2015-07-13T16:27:37Z</dc:date>
    </item>
  </channel>
</rss>

