<?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 based on another expression value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013404#M466544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you literally want to condition the result in one expression by the total number displayed in the other expression, then Colin's formula gives you the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you wanted to summarize sales in those Stores where the total number of visits was &amp;gt; 3, and it's not necessarily the overall total of the first expression, then you need to use Set Analysis with Advanced Search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=SUM( &amp;lt;{Store={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM( &amp;lt;{Store=, Location='Location A'}&amp;gt; Visits)&amp;gt;=3&lt;/SPAN&gt;"}, Location='Location A'}&amp;gt; Sales)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik &lt;/A&gt;- coming soon to Milan, Italy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2016 17:32:21 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2016-01-29T17:32:21Z</dc:date>
    <item>
      <title>Expression based on another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013400#M466540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following 2 expressions:&lt;/P&gt;&lt;P&gt;Total Visits&lt;BR /&gt;=SUM( &amp;lt;{Store=, Location='Location A'}&amp;gt; Visits)&lt;/P&gt;&lt;P&gt;Total Sales&lt;BR /&gt;=SUM( &amp;lt;{Store=, Location='Location A'}&amp;gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create an expression based on these 2 for: Total Sales where total number of visits &amp;gt;= 3 ?&lt;/P&gt;&lt;P&gt;I need to incorporate the total of one expression in another expression, but I do not know how to achieve this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jon!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013400#M466540</guid>
      <dc:creator />
      <dc:date>2016-01-29T13:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013401#M466541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Store=, Location={'Location A'}&amp;gt;} Visits) &amp;gt;=3, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Store=, Location={'Location A'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013401#M466541</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T17:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013402#M466542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind of thing/person/animal is having this number of visits? What dimension or dimensions is the visits sum calculated over?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will calculate the sales for the Elephants in Location A that had 3 or more visits while present in Location A:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Elephant={"=sum({&amp;lt;Store,Location={'Location A'}&amp;gt;}Visits)&amp;gt;=3"},&lt;SPAN style="font-size: 13.3333px;"&gt;Store,Location={'Location A'}&amp;gt;}&lt;/SPAN&gt; Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013402#M466542</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-29T17:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013403#M466543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can reference another expression in the expression editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( [Total Visits] &amp;gt;= 3, [Total Visits] )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013403#M466543</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-01-29T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression based on another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013404#M466544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you literally want to condition the result in one expression by the total number displayed in the other expression, then Colin's formula gives you the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you wanted to summarize sales in those Stores where the total number of visits was &amp;gt; 3, and it's not necessarily the overall total of the first expression, then you need to use Set Analysis with Advanced Search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=SUM( &amp;lt;{Store={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM( &amp;lt;{Store=, Location='Location A'}&amp;gt; Visits)&amp;gt;=3&lt;/SPAN&gt;"}, Location='Location A'}&amp;gt; Sales)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik &lt;/A&gt;- coming soon to Milan, Italy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-based-on-another-expression-value/m-p/1013404#M466544</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-29T17:32:21Z</dc:date>
    </item>
  </channel>
</rss>

