<?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>article Advanced Set Analysis in Qlik. in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Advanced-Set-Analysis-in-Qlik/ta-p/2025831</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;1. Full Composition Usage&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It is an example where the complete composition of a Set Analysis Expression is utilized, including the Identifier, Operators, and Modifiers&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Aggregation({Identifier &amp;lt;Dimension1 = {"Filtered Value"}, Dimension2 = {"Filtered Value"} &amp;gt;} field)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({1 &amp;lt;Region={"Chicago"}, Product-={"Lamborghini"}&amp;gt;} Sales}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Qlik will accept three types of Syntax for string representation (“”, ”, []) Double Quotes, Single Quotes, OR Square brackets&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;Region ={ “Chicago” }&amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({ &amp;lt;Region ={ 'Chicago' }&amp;gt; } Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({ &amp;lt;Region ={ [Chicago] }&amp;gt; } Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Sum of motor car sales in Texas excluding Tesla. Without changing the user’s filter.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Composition with multiple values&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There will be instances where multiple values against multiple dimensions are advantageous to be set and defined.&lt;/P&gt;
&lt;P&gt;The composition of the setting against specific dimensions allows one to use values or properties that you wish to include or exclude.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{Selection &amp;lt; Dimension1 = {value1, value 2, …} [, Dimension2 = {value1, value2, …}] &amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({$&amp;lt; Region={"Texas","California"}, Product = {"Tesla","Lambo","Aston Martin"} &amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;We return the sum of sales in Texas and California of Tesla, Lamborghini, and Aston Martin vehicles.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum($&amp;lt; Region= {}, Product{ "Tesla","Lambo","Aston Martin" } &amp;gt; Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The sum of sales of Tesla, Lamborghini and Aston Martin vehicles where the region field is empty is returned.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Search Composition within advanced Qlik Set Analysis&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You can place search conditions into the composition of the Set Analysis Expression.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt;Dimension = {" *string or value to be searched* "}&amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Wildcard characters are used * and ?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;* = interpreted against any sequence of characters&lt;/LI&gt;
&lt;LI&gt;? = interpreted against any single character&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Multiple searches can be performed:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Dimension = {"*partialVal*", "fixed text", "?erm*"} &amp;gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;4. Composition using the dimension of numbers&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Qlik evaluates dates and timestamps as numbers; leverage over this functionality can ease date intervals when interpreted as numbers.&lt;/P&gt;
&lt;P&gt;Making use of GREATER THAN or LESS THAN in the Set Analysis Expressions returns predefined data as specified.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Year = {"&amp;lt;2022”} &amp;gt;}&amp;nbsp;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;All records where the year is less than 2022&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Sales= {"&amp;lt;100000”} &amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;All records where Sales totals are less than 100,000&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Year = {"&amp;gt;=2021 &amp;lt;=2022"} &amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;All records where the year is between 2021 to &amp;nbsp;2022&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Sales= {"&amp;gt;=50000 &amp;lt;=100000”} &amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;All records where Sales are between 50,000 and 100,000&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;5. Composition with a numerical function&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Using numerical functions like MAX(), RANK(), COUNT() or AVG() within the expression is also possible.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;lt;Year = {"$(=max({1} Year))"}&amp;gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Setting to return the last year of data&lt;/P&gt;
&lt;P&gt;Placing the identifier {1} into the max function ensures maintaining the last year, when selections are made.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;MotorVehicle = {"=rank(sum(Price), 4)&amp;lt;= 10"}&amp;gt;} Price)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Top 10 Highest Price vehicles&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;MotorVehicle = {"=rank(sum({&amp;lt;Manufacturer = {“Ford”}&amp;gt;} Price), 4)&amp;lt;= 10"}&amp;gt;} Price)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Top 10 Highest Price vehicles by Manufacturer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 14 Jan 2023 16:53:53 GMT</pubDate>
    <dc:creator>hesh</dc:creator>
    <dc:date>2023-01-14T16:53:53Z</dc:date>
    <item>
      <title>Advanced Set Analysis in Qlik.</title>
      <link>https://community.qlik.com/t5/Member-Articles/Advanced-Set-Analysis-in-Qlik/ta-p/2025831</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;1. Full Composition Usage&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It is an example where the complete composition of a Set Analysis Expression is utilized, including the Identifier, Operators, and Modifiers&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Aggregation({Identifier &amp;lt;Dimension1 = {"Filtered Value"}, Dimension2 = {"Filtered Value"} &amp;gt;} field)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({1 &amp;lt;Region={"Chicago"}, Product-={"Lamborghini"}&amp;gt;} Sales}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Qlik will accept three types of Syntax for string representation (“”, ”, []) Double Quotes, Single Quotes, OR Square brackets&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;Region ={ “Chicago” }&amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({ &amp;lt;Region ={ 'Chicago' }&amp;gt; } Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({ &amp;lt;Region ={ [Chicago] }&amp;gt; } Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Sum of motor car sales in Texas excluding Tesla. Without changing the user’s filter.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Composition with multiple values&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There will be instances where multiple values against multiple dimensions are advantageous to be set and defined.&lt;/P&gt;
&lt;P&gt;The composition of the setting against specific dimensions allows one to use values or properties that you wish to include or exclude.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{Selection &amp;lt; Dimension1 = {value1, value 2, …} [, Dimension2 = {value1, value2, …}] &amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({$&amp;lt; Region={"Texas","California"}, Product = {"Tesla","Lambo","Aston Martin"} &amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;We return the sum of sales in Texas and California of Tesla, Lamborghini, and Aston Martin vehicles.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum($&amp;lt; Region= {}, Product{ "Tesla","Lambo","Aston Martin" } &amp;gt; Sales)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The sum of sales of Tesla, Lamborghini and Aston Martin vehicles where the region field is empty is returned.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Search Composition within advanced Qlik Set Analysis&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You can place search conditions into the composition of the Set Analysis Expression.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt;Dimension = {" *string or value to be searched* "}&amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Wildcard characters are used * and ?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;* = interpreted against any sequence of characters&lt;/LI&gt;
&lt;LI&gt;? = interpreted against any single character&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Multiple searches can be performed:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Dimension = {"*partialVal*", "fixed text", "?erm*"} &amp;gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;4. Composition using the dimension of numbers&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Qlik evaluates dates and timestamps as numbers; leverage over this functionality can ease date intervals when interpreted as numbers.&lt;/P&gt;
&lt;P&gt;Making use of GREATER THAN or LESS THAN in the Set Analysis Expressions returns predefined data as specified.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Year = {"&amp;lt;2022”} &amp;gt;}&amp;nbsp;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;All records where the year is less than 2022&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Sales= {"&amp;lt;100000”} &amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;All records where Sales totals are less than 100,000&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Year = {"&amp;gt;=2021 &amp;lt;=2022"} &amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;All records where the year is between 2021 to &amp;nbsp;2022&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{&amp;lt; Sales= {"&amp;gt;=50000 &amp;lt;=100000”} &amp;gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;All records where Sales are between 50,000 and 100,000&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;5. Composition with a numerical function&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Using numerical functions like MAX(), RANK(), COUNT() or AVG() within the expression is also possible.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;lt;Year = {"$(=max({1} Year))"}&amp;gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Setting to return the last year of data&lt;/P&gt;
&lt;P&gt;Placing the identifier {1} into the max function ensures maintaining the last year, when selections are made.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;MotorVehicle = {"=rank(sum(Price), 4)&amp;lt;= 10"}&amp;gt;} Price)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Top 10 Highest Price vehicles&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;MotorVehicle = {"=rank(sum({&amp;lt;Manufacturer = {“Ford”}&amp;gt;} Price), 4)&amp;lt;= 10"}&amp;gt;} Price)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Top 10 Highest Price vehicles by Manufacturer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 14 Jan 2023 16:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Advanced-Set-Analysis-in-Qlik/ta-p/2025831</guid>
      <dc:creator>hesh</dc:creator>
      <dc:date>2023-01-14T16:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Set Analysis in Qlik.</title>
      <link>https://community.qlik.com/t5/Member-Articles/Advanced-Set-Analysis-in-Qlik/tac-p/2069445#M1509</link>
      <description>&lt;P&gt;Excellent explanation. Would you mind sharing how to display all of the column data while excluding one particular column value? say, by showing the combined sales of every nation excluding China.&lt;/P&gt;
&lt;P&gt;All I can think of is P() and E() function... below is the expression i have used but not sure what is the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum (&lt;BR /&gt;&lt;SPAN&gt;{$&amp;lt;country =- p({$&amp;lt;country={'China'}&amp;gt;} c&lt;/SPAN&gt;&lt;SPAN&gt;ountry)&amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Sales)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 05:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Advanced-Set-Analysis-in-Qlik/tac-p/2069445#M1509</guid>
      <dc:creator>Akash_Dixit</dc:creator>
      <dc:date>2023-05-10T05:22:15Z</dc:date>
    </item>
  </channel>
</rss>

