<?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: Set Analysis: Ignore a large group of fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-a-large-group-of-fields/m-p/999373#M14732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this for ignoring all fields of a table&lt;/P&gt;&lt;P&gt;for detail, see here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1334"&gt;Ignore all selections except some specific fields using Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[$(=Concat({1&amp;lt;$Table={ProductTable}&amp;gt;}distinct $Field,']=,[')&amp;amp;']=')&amp;gt;} distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;location_sk&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 19:09:25 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-10-16T19:09:25Z</dc:date>
    <item>
      <title>Set Analysis: Ignore a large group of fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-a-large-group-of-fields/m-p/999372#M14731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there a way to ignore a group of fields or tables in a set expression?&amp;nbsp; Here is a simplified example of what I am trying to do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Here's our fact table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Fact Table&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); width: 74px; height: 110px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Field&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;month_sk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;product_sk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;location_sk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;value&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It's a snowflake model.&amp;nbsp; Each of the &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;surrogate keys leads to a dimension table that fans out to a number of related tables.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The user will select one month and then filter on various region and product attributes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to count the number of locations, regardless of the products selected.&amp;nbsp; I would normally use the following expression to ignore the product selection, while still honoring the month and location context:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;COUNT( {$&amp;lt;product_sk=&amp;gt;} DISTINCT location_sk)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the user may make a selection on any of the product-related attributes.&amp;nbsp; If I add set modifiers to explicitly ignore all the product attributes, the expression will get quite long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to ignore a group of fields or whole tables?&amp;nbsp; I was hoping that I could use the &lt;STRONG&gt;Tag&lt;/STRONG&gt; script function to tag all my product, time, and location fields, but I can’t see how the field tags can be used in a set expression.&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;I feel like I might be missing something fundamental.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, I know the list of fields I want to ignore.&amp;nbsp; I figure I can get them into a comma-separated list using the &lt;STRONG&gt;Concat&lt;/STRONG&gt; function.&amp;nbsp; Is there a way to use set arithmetic and &lt;SPAN style="color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold;"&gt;GetCurrentSelections &lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;to find only the field selections I wish to honor?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;{current selections} - {product-related attributes} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...not really sure how that one would go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Qlik Sense 2.1, but I think this applicable to QlikView as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-a-large-group-of-fields/m-p/999372#M14731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Ignore a large group of fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-a-large-group-of-fields/m-p/999373#M14732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this for ignoring all fields of a table&lt;/P&gt;&lt;P&gt;for detail, see here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1334"&gt;Ignore all selections except some specific fields using Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[$(=Concat({1&amp;lt;$Table={ProductTable}&amp;gt;}distinct $Field,']=,[')&amp;amp;']=')&amp;gt;} distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;location_sk&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 19:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Ignore-a-large-group-of-fields/m-p/999373#M14732</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-10-16T19:09:25Z</dc:date>
    </item>
  </channel>
</rss>

