<?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: Using a Dynamic Value in Modifier for Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-a-Dynamic-Value-in-Modifier-for-Set-Analysis/m-p/1219250#M23656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - You should be able to use a search condition that will find the matching rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum( {&amp;lt;Drop={"=Start_Date=Min(Date)"}&amp;gt;} ImpsSold) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testing with you application gave me the answer you were looking for:&amp;nbsp; 330,000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-02-20 02_07_34-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/153669_2017-02-20 02_07_34-Qlik Sense Desktop.png" style="height: 291px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2017 01:08:14 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2017-02-20T01:08:14Z</dc:date>
    <item>
      <title>Using a Dynamic Value in Modifier for Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-Dynamic-Value-in-Modifier-for-Set-Analysis/m-p/1219249#M23655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quite a long intro below - what I need to know is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How do I write the expression that needs help below? The answer to this may come down to can I even have a Set Analysis condition like '&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Start_Date={min(Date)}&amp;gt;}&lt;/SPAN&gt;' where although both are dates one appears in one table and the other appears in another i.e. I am using another field to substitute in a date value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Please find attached a simple QVF that hopefully demonstrates my question. It is a small subset of data of my much larger actual data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has 2 tables; The transaction table has a 'Drop' (which is an online display advertising order), 'Date' and 'Imps' (which are online ad impressions). The 3 drops I have mention are displaying impressions each day for the first 14 days of January. If you take a closer look you will see 2 drops (1978911 and 1978912) started 'on time' on 1st Jan while the 3rd drop (1990092) started late on the 5th Jan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reference table contains the Drop again (this is the link between the tables) the Start_Date and the Imps_Sold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the QVF you will find 3 KPI boxes. One is simply the sum of impressions served from the transaction table. The 2 others are more interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is a bit of a cheat and is 'Imps Sold by Start Date Static'. The measure within is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Start_Date={'01/01/2017'}&amp;gt;}ImpsSold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The obvious limitation is I want the '01/01/2017' date part to be dynamic and specifically I want it to relate to the minimum date selection of the date field in the transaction table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One initial challenge I am trying to overcome is merely highlighting drops that have started on time. I have made an attempt of sorts in the second KPI box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[EXPRESSIONS THAT NEEDS HELP] sum({&amp;lt;Start_Date={min(Date)}&amp;gt;}aggr(sum(ImpsSold),Drop,Start_Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am attempting to express here in words is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take each Drop where min(Date) = Start_Date THEN sum the ImpsSold of these Drops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assume the min(date) selected is 1st Jan hence this should identify the 2 drops that started on time (&lt;SPAN style="font-size: 13.3333px;"&gt;1978911 and 1978912)&lt;/SPAN&gt; and give the answer 210,000 + 120,000 = 330,000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 16:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-Dynamic-Value-in-Modifier-for-Set-Analysis/m-p/1219249#M23655</guid>
      <dc:creator />
      <dc:date>2017-02-17T16:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Dynamic Value in Modifier for Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-Dynamic-Value-in-Modifier-for-Set-Analysis/m-p/1219250#M23656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - You should be able to use a search condition that will find the matching rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum( {&amp;lt;Drop={"=Start_Date=Min(Date)"}&amp;gt;} ImpsSold) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testing with you application gave me the answer you were looking for:&amp;nbsp; 330,000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-02-20 02_07_34-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/153669_2017-02-20 02_07_34-Qlik Sense Desktop.png" style="height: 291px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 01:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-Dynamic-Value-in-Modifier-for-Set-Analysis/m-p/1219250#M23656</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-20T01:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Dynamic Value in Modifier for Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-Dynamic-Value-in-Modifier-for-Set-Analysis/m-p/1219251#M23657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was unaware of that syntax, should come in very useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 17:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-Dynamic-Value-in-Modifier-for-Set-Analysis/m-p/1219251#M23657</guid>
      <dc:creator />
      <dc:date>2017-02-20T17:07:51Z</dc:date>
    </item>
  </channel>
</rss>

