<?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: expression in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423472#M1225385</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48508"&gt;@curiousfellow&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for what i see in your description,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;if dimension1 equals to 10, it can't also equal to "sum(sales) &amp;gt; 9000",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;as well as if&amp;nbsp;dimension1 equals to 20,&amp;nbsp;it can't also equal to "sum(result) &amp;gt; 800".&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 11:02:11 GMT</pubDate>
    <dc:creator>F_B</dc:creator>
    <dc:date>2024-02-26T11:02:11Z</dc:date>
    <item>
      <title>expression in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423424#M1225383</link>
      <description>&lt;P&gt;I have a chart with following set up :&lt;/P&gt;
&lt;P&gt;Dimension1&lt;/P&gt;
&lt;P&gt;Dimension 2&lt;/P&gt;
&lt;P&gt;expression1: if(dimension1 = 10, count(distinct employee),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(dimension1 = 20, count(distinct {&amp;lt;city = {'Bostom'}&amp;gt;} employee,&lt;/P&gt;
&lt;P&gt;expression2:&amp;nbsp; if(dimension1 = 10, count(distinct {&amp;lt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dimension1= {"= sum(sales) &amp;gt; 9000"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dimension1= 20 ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count(distinct {&amp;lt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dimension1= {"= sum(result) &amp;gt; 800"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;}employee)&lt;/P&gt;
&lt;P&gt;))&lt;/P&gt;
&lt;P&gt;Expression 1 works fine, but expression two shows only a value when I select dimension1 in a listbox.&lt;/P&gt;
&lt;P&gt;It probably has something to do with dimension1 in the set modifier of expression2 but I cannot find how to solve this. I tried various options but the result is the same or shows no values at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Disclaimer: it is possible I forgot some&amp;nbsp;parentheses in this simplified example but I hope you understand what the issue is&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 09:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423424#M1225383</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2024-02-26T09:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423472#M1225385</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48508"&gt;@curiousfellow&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for what i see in your description,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;if dimension1 equals to 10, it can't also equal to "sum(sales) &amp;gt; 9000",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;as well as if&amp;nbsp;dimension1 equals to 20,&amp;nbsp;it can't also equal to "sum(result) &amp;gt; 800".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 11:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423472#M1225385</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-02-26T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423551#M1225387</link>
      <description>&lt;P&gt;Seems logic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; I must admit that I don't really understand how to use these kind of expressions in set analysis. What should I use instead of dimension1 in&amp;nbsp;&lt;SPAN&gt;dimension1= {"= sum(sales) &amp;gt; 9000"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I tried several values/dimensions but none of them works.&lt;/P&gt;
&lt;P&gt;When I search this forum it seems that for dimension1 a random dimension or value is used.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 13:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423551#M1225387</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2024-02-26T13:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423574#M1225388</link>
      <description>&lt;P&gt;Set analysis is a very powerful tool and I &lt;SPAN&gt;earnestly&lt;/SPAN&gt; advise you to look at it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2022/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAnalysis/set-analysis-tutorial.htm" target="_blank"&gt;Tutorial - Creating a set expression | Qlik Sense on Windows Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;However, taking one step back, can you explain better what is the purpose of&amp;nbsp; "expression2" and what fields are involved? What kind of chart are you inserting that calculations and what would you like to show?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 13:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423574#M1225388</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-02-26T13:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423610#M1225389</link>
      <description>&lt;P&gt;In my chart I show a various number of KPI. Every KPI has it own expression / formula.&lt;/P&gt;
&lt;P&gt;The expression to use is determined by the condition If(linenumber = xxxx, expression&lt;/P&gt;
&lt;P&gt;One of the expression counts the number of employees who have a higher profit_percentage than the standard percentage. The profit_percentage should be calculated as an identifier.&lt;BR /&gt;&lt;BR /&gt;In the tutorial you are referring to no expression is used.&lt;/P&gt;
&lt;P&gt;I am trying the same as is shown here&amp;nbsp;&lt;A title="use example" href="https://community.qlik.com/t5/QlikView-App-Dev/Using-an-expression-within-Set-Analysis/td-p/910258" target="_self"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Using-an-expression-within-Set-Analysis/td-p/910258&lt;/A&gt;&amp;nbsp;but I do not know what I should use instead of [session id]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 14:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2423610#M1225389</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2024-02-26T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2424089#M1225395</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation" data-ved="2ahUKEwi6ruzBxMuEAxVx9QIHHUVVDgEQ3ewLegQICRAU"&gt;&lt;SPAN class="Y2IQFc"&gt;Think I've solved it. &lt;BR /&gt;Instead of dimension1 in dimension1= {"= sum(sales) &amp;gt; 9000"}&amp;gt;} I used a random field from my table that is not used in an expression or as a dimension in my chart.
I still don't understand the logic of this, so if anyone could explain this I would be very grateful.&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2024 12:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2424089#M1225395</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2024-02-27T12:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: expression in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2424090#M1225396</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In your case, [session id] should be a field in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;your data model that you didn't mention, or that you will need to create.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 12:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-in-set-analysis/m-p/2424090#M1225396</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-02-27T12:40:21Z</dc:date>
    </item>
  </channel>
</rss>

