<?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 Filtering Calculated Fields in Charts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filtering-Calculated-Fields-in-Charts/m-p/1813970#M66524</link>
    <description>&lt;P&gt;Hello Everyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you assist with the below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a calculated field(Using an IF statement that essential compares two expressions) as seen in the screenshot below. What I require is&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; show only the results where = 1 ( As the calculated field has 0s/1s)&lt;/P&gt;&lt;P&gt;2. Selecting the top 5 results from the 1s.&lt;/P&gt;&lt;P&gt;Expression Used :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(Aggr(COUNT({&amp;lt;[demand.bpart_gcl_id] = {'Labor'} ,&lt;BR /&gt;[demand.bpart_id] = {'PRIMARY ASSIGN'} ,&lt;BR /&gt;order_type_id = {'repair_order'},[service_call.rcode_id] =- {'Z31'}, [service_call_env.resolve_date_time.autoCalendar.MonthsAgo] = {0} &amp;gt;} order_id),[service_call_env.sa_person_id]) &amp;gt;=&lt;BR /&gt;[productivity_target.prod_target] * (Day(today())),1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BonganiButh_0-1623258897774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56558iA7F7095C5DE68EA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BonganiButh_0-1623258897774.png" alt="BonganiButh_0-1623258897774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried using&amp;nbsp; variables,set analysis and the 'Show Column If' feature but no luck as yet. I am not sure if this can be done in the charts or is it something I need to do in the data load editor?&lt;/P&gt;&lt;P&gt;Your assistance will be highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 17:25:12 GMT</pubDate>
    <dc:creator>BonganiButh</dc:creator>
    <dc:date>2021-06-09T17:25:12Z</dc:date>
    <item>
      <title>Filtering Calculated Fields in Charts</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-Calculated-Fields-in-Charts/m-p/1813970#M66524</link>
      <description>&lt;P&gt;Hello Everyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you assist with the below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a calculated field(Using an IF statement that essential compares two expressions) as seen in the screenshot below. What I require is&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; show only the results where = 1 ( As the calculated field has 0s/1s)&lt;/P&gt;&lt;P&gt;2. Selecting the top 5 results from the 1s.&lt;/P&gt;&lt;P&gt;Expression Used :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(Aggr(COUNT({&amp;lt;[demand.bpart_gcl_id] = {'Labor'} ,&lt;BR /&gt;[demand.bpart_id] = {'PRIMARY ASSIGN'} ,&lt;BR /&gt;order_type_id = {'repair_order'},[service_call.rcode_id] =- {'Z31'}, [service_call_env.resolve_date_time.autoCalendar.MonthsAgo] = {0} &amp;gt;} order_id),[service_call_env.sa_person_id]) &amp;gt;=&lt;BR /&gt;[productivity_target.prod_target] * (Day(today())),1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BonganiButh_0-1623258897774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56558iA7F7095C5DE68EA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BonganiButh_0-1623258897774.png" alt="BonganiButh_0-1623258897774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried using&amp;nbsp; variables,set analysis and the 'Show Column If' feature but no luck as yet. I am not sure if this can be done in the charts or is it something I need to do in the data load editor?&lt;/P&gt;&lt;P&gt;Your assistance will be highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-Calculated-Fields-in-Charts/m-p/1813970#M66524</guid>
      <dc:creator>BonganiButh</dc:creator>
      <dc:date>2021-06-09T17:25:12Z</dc:date>
    </item>
  </channel>
</rss>

