<?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/wildmatch/SQL like statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733211#M55972</link>
    <description>&lt;P&gt;Those 2 tables come from my data warehouse. Country = dimension, which contains regions. Main table = fact. The ID column is a business key. Tables are joined by country_sk&lt;/P&gt;&lt;P&gt;i don’t want to deviate from that design and further denormalize the fact&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 16:15:10 GMT</pubDate>
    <dc:creator>markobanjanin</dc:creator>
    <dc:date>2020-08-04T16:15:10Z</dc:date>
    <item>
      <title>Set analysis/wildmatch/SQL like statement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733192#M55970</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have 2 tables&lt;/P&gt;&lt;P&gt;County:&lt;/P&gt;&lt;P&gt;Country Code, Country Name, Region&lt;/P&gt;&lt;P&gt;ABC, A, R1&lt;/P&gt;&lt;P&gt;QWE, B, R1&lt;/P&gt;&lt;P&gt;POI, C, R1&lt;/P&gt;&lt;P&gt;ZXC, D, R2&lt;/P&gt;&lt;P&gt;BBB, E, R5&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;MainTable:&lt;/P&gt;&lt;P&gt;ID, Qty&lt;/P&gt;&lt;P&gt;2020_ABC_POI, 1&lt;/P&gt;&lt;P&gt;2020_ABC_ZXC, 2&lt;/P&gt;&lt;P&gt;2020_ZXC_BBB, 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the main table ID field contains year + 2 country code references separated by _&lt;/P&gt;&lt;P&gt;On the dashboard I am presenting users with a Region and Country Name filters. Based on country selection I am storing country codes in a variable. In a KPI object i want to sum Qty field based on my selections. For example:&lt;/P&gt;&lt;P&gt;Region selection = R1 --&amp;gt; sum should be 3&lt;/P&gt;&lt;P&gt;Region selection = R2 --&amp;gt; sum is 9&lt;/P&gt;&lt;P&gt;Country selection = A -&amp;gt; sum is 3&lt;/P&gt;&lt;P&gt;Country selection =&amp;nbsp; A and D --&amp;gt; sum is 10&lt;/P&gt;&lt;P&gt;My set analysis is the following: sum({&amp;lt;ID= {"*$(=$(variable))*"}&amp;gt;} Qty)&lt;/P&gt;&lt;P&gt;The variable concatenates Code field with , separator.&lt;/P&gt;&lt;P&gt;Issue with above is that it only works when i select a single country. I need the set analysis to take into account all Country Codes as per my selection&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 15:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733192#M55970</guid>
      <dc:creator>markobanjanin</dc:creator>
      <dc:date>2020-08-04T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis/wildmatch/SQL like statement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733197#M55971</link>
      <description>&lt;P&gt;Why don't you split the ID&amp;nbsp;column in main table in Year &amp;amp; Country code and link on Country code with Country table?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 15:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733197#M55971</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-04T15:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis/wildmatch/SQL like statement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733211#M55972</link>
      <description>&lt;P&gt;Those 2 tables come from my data warehouse. Country = dimension, which contains regions. Main table = fact. The ID column is a business key. Tables are joined by country_sk&lt;/P&gt;&lt;P&gt;i don’t want to deviate from that design and further denormalize the fact&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 16:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733211#M55972</guid>
      <dc:creator>markobanjanin</dc:creator>
      <dc:date>2020-08-04T16:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis/wildmatch/SQL like statement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733410#M55984</link>
      <description>&lt;P&gt;I'm not sure if it works but could you try to concat the variable using separator&lt;/P&gt;&lt;P&gt;*", "*&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;*), $(* &amp;nbsp;&lt;/P&gt;&lt;P&gt;so the final variable result of the filter statement represents correct syntax for multiple matches?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733410#M55984</guid>
      <dc:creator>Vilius</dc:creator>
      <dc:date>2020-08-05T12:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis/wildmatch/SQL like statement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733423#M55986</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/11183"&gt;@markobanjanin&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, share content of your variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-wildmatch-SQL-like-statement/m-p/1733423#M55986</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2020-08-05T12:40:27Z</dc:date>
    </item>
  </channel>
</rss>

