<?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: Use a single filter to check multiple columns with OR not AND in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Use-a-single-filter-to-check-multiple-columns-with-OR-not-AND/m-p/1609029#M63259</link>
    <description>&lt;P&gt;&lt;BR /&gt;You could create an auxiliary table that helps you to group, for example:&lt;/P&gt;&lt;P&gt;table_aux:&lt;BR /&gt;load accnro,&lt;BR /&gt;official1 AS official_aux&lt;BR /&gt;resident table 1;&lt;/P&gt;&lt;P&gt;concatenate (table_aux)&lt;BR /&gt;table_aux:&lt;BR /&gt;load accnro,&lt;BR /&gt;official2 AS official_aux&lt;BR /&gt;resident table 1;&lt;/P&gt;&lt;P&gt;final:&lt;BR /&gt;load distinct&lt;BR /&gt;accnro, // key&lt;BR /&gt;official_aux as official_final&lt;BR /&gt;resident table_aux;&lt;/P&gt;&lt;P&gt;drop table table_aux;&lt;/P&gt;&lt;P&gt;The "final" table will be related by accnro to your fact table, you should use the "official_final" field as a filter, that will work for your OR.&lt;/P&gt;&lt;P&gt;regards!!!!&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2019 19:11:47 GMT</pubDate>
    <dc:creator>Marcos_rv</dc:creator>
    <dc:date>2019-08-02T19:11:47Z</dc:date>
    <item>
      <title>Use a single filter to check multiple columns with OR not AND</title>
      <link>https://community.qlik.com/t5/App-Development/Use-a-single-filter-to-check-multiple-columns-with-OR-not-AND/m-p/1609022#M63258</link>
      <description>&lt;P&gt;I would like to allow a user to choose values from a single filter dimension and apply the selection to two columns with OR logic as opposed to AND.&amp;nbsp; For example:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Account Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Primary Officer&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Secondary Officer&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;789&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;012&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An officer can be the primary or secondary officer (or both) of an account. I would like to have a single "Officer" filter dimension that a user can choose from to display all accounts an officer is associated with, whether it be primary or secondary (or both). So if a user chose "Officer A" from the filter it should result in the following:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Account Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Primary Officer&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Secondary Officer&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;012&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the data resides in the same source table (QVD). So I don't mind doing the necessary logic in the data load editor or via Master Items.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-a-single-filter-to-check-multiple-columns-with-OR-not-AND/m-p/1609022#M63258</guid>
      <dc:creator>nate_ak</dc:creator>
      <dc:date>2021-04-02T08:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use a single filter to check multiple columns with OR not AND</title>
      <link>https://community.qlik.com/t5/App-Development/Use-a-single-filter-to-check-multiple-columns-with-OR-not-AND/m-p/1609029#M63259</link>
      <description>&lt;P&gt;&lt;BR /&gt;You could create an auxiliary table that helps you to group, for example:&lt;/P&gt;&lt;P&gt;table_aux:&lt;BR /&gt;load accnro,&lt;BR /&gt;official1 AS official_aux&lt;BR /&gt;resident table 1;&lt;/P&gt;&lt;P&gt;concatenate (table_aux)&lt;BR /&gt;table_aux:&lt;BR /&gt;load accnro,&lt;BR /&gt;official2 AS official_aux&lt;BR /&gt;resident table 1;&lt;/P&gt;&lt;P&gt;final:&lt;BR /&gt;load distinct&lt;BR /&gt;accnro, // key&lt;BR /&gt;official_aux as official_final&lt;BR /&gt;resident table_aux;&lt;/P&gt;&lt;P&gt;drop table table_aux;&lt;/P&gt;&lt;P&gt;The "final" table will be related by accnro to your fact table, you should use the "official_final" field as a filter, that will work for your OR.&lt;/P&gt;&lt;P&gt;regards!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 19:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-a-single-filter-to-check-multiple-columns-with-OR-not-AND/m-p/1609029#M63259</guid>
      <dc:creator>Marcos_rv</dc:creator>
      <dc:date>2019-08-02T19:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use a single filter to check multiple columns with OR not AND</title>
      <link>https://community.qlik.com/t5/App-Development/Use-a-single-filter-to-check-multiple-columns-with-OR-not-AND/m-p/1609064#M63260</link>
      <description>&lt;P&gt;Perfect! This did the trick quite nicely. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 21:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-a-single-filter-to-check-multiple-columns-with-OR-not-AND/m-p/1609064#M63260</guid>
      <dc:creator>nate_ak</dc:creator>
      <dc:date>2019-08-02T21:06:12Z</dc:date>
    </item>
  </channel>
</rss>

