<?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 using Field Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756866#M1049627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi L R.&lt;/P&gt;&lt;P&gt;Thank you for the attached file.&lt;/P&gt;&lt;P&gt;Look at my reply, your calculation is performed in two steps. This makes it less complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1 - differs records using conditional Type&lt;/P&gt;&lt;P&gt;&lt;IMG alt="04-11-2014 09-11-54.jpg" class="jive-image" height="196" src="/legacyfs/online/70445_04-11-2014 09-11-54.jpg" style="height: auto; width: auto;" width="427" /&gt;&lt;/P&gt;&lt;P&gt;Step2 - insert distinct Type in your set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior Calculation: Avg({&amp;lt;Type={'Prior'},[Issued in Exchange]={N}&amp;gt;}[Total Doc Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post Calculation: Avg({&amp;lt;Type={'Post'},[Issued in Exchange]={N}&amp;gt;}[Total Doc Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a great way to perform conditional and f calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that will help you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 08:17:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-04T08:17:32Z</dc:date>
    <item>
      <title>Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756856#M1049611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very new to QV and set analysis.&amp;nbsp; I am trying to do a calculation based on a field value.&amp;nbsp; The statement I currently have&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;[Issue Date]={'&amp;lt;=10/27/14'},[Exchg]={N}&amp;gt;}[Amount])&amp;nbsp; works with a hard coded date (10/27/14).&amp;nbsp; What I want to do is replace the date with a field (MyField) from my table that has a moving date.&amp;nbsp; In summary, I need to perform this calculation when Issue Date &amp;lt;= MyFieldValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how I can achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756856#M1049611</guid>
      <dc:creator />
      <dc:date>2014-11-03T15:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756857#M1049612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see post below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/485952"&gt;Re: How to specify explicit &amp;amp;gt; and &amp;amp;lt; in set modifier&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, you should put {N} as {'N'}&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756857#M1049612</guid>
      <dc:creator>dickelsa</dc:creator>
      <dc:date>2014-11-03T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756858#M1049613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: Avg({&amp;lt;[Issue Date]={"&amp;lt;=$(=max(Date(MyField)))"}, Exchg={'N'}&amp;gt;}Amount) if you want it to be less than a date selected in "MyField".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756858#M1049613</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2014-11-03T16:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756859#M1049614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Avg({&amp;lt;[Issue Date]={'&amp;lt;=$(=Max([Issue Date]))'},[Exchg]={'N'}&amp;gt;}[Amount]) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756859#M1049614</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-03T16:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756860#M1049616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could attach a sample file I could solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756860#M1049616</guid>
      <dc:creator />
      <dc:date>2014-11-03T16:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756861#M1049617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the best way to handle this problem is to create a variable directly in load script and then use it in your set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Script:&lt;/P&gt;&lt;P&gt;v&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MaxDate = Date(Peek('MyField',0,'YourTableNameInQlik'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Avg({&amp;lt;[Issue Date]={"&amp;lt;=$(vMaxDate)"},[Exchg]={'N'}&amp;gt;}[Amount])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756861#M1049617</guid>
      <dc:creator />
      <dc:date>2014-11-03T16:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756862#M1049619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot "LET" statement, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Script:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET v&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MaxDate = Date(Peek('MyField',0,'YourTableNameInQlik'))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //replace table name with your table name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Set Expression:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Avg({&amp;lt;[Issue Date]={"&amp;lt;=$(vMaxDate)"},[Exchg]={'N'}&amp;gt;}[Amount])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756862#M1049619</guid>
      <dc:creator />
      <dc:date>2014-11-03T16:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756863#M1049621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET v&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Date = Date#(Peek('FieldName',0,'TableName'))&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Avg({&amp;lt;[Issue Date]={"&amp;lt;=$(vDate)"},[Exchg]={'N'}&amp;gt;}[Amount])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756863#M1049621</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2014-11-03T16:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756864#M1049624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've put together an example of what I'm looking to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached xls has sample data.&amp;nbsp; I've calculated to the right what the Prior and Post Columns in QV should reflect.&amp;nbsp; If the Issue Date &amp;lt;= ValidateDate it goes in Prior Bucket, if the Issue Date &amp;gt; ValidateDate it goes in Post Bucket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756864#M1049624</guid>
      <dc:creator />
      <dc:date>2014-11-03T19:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756865#M1049626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlo,&lt;/P&gt;&lt;P&gt;I've put together an example of what I'm looking to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached xls has sample data.&amp;nbsp; I've calculated to the right what the Prior and Post Columns in QV should reflect.&amp;nbsp; If the Issue Date &amp;lt;= ValidateDate it goes in Prior Bucket, if the Issue Date &amp;gt; ValidateDate it goes in Post Bucket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 21:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756865#M1049626</guid>
      <dc:creator />
      <dc:date>2014-11-03T21:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756866#M1049627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi L R.&lt;/P&gt;&lt;P&gt;Thank you for the attached file.&lt;/P&gt;&lt;P&gt;Look at my reply, your calculation is performed in two steps. This makes it less complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1 - differs records using conditional Type&lt;/P&gt;&lt;P&gt;&lt;IMG alt="04-11-2014 09-11-54.jpg" class="jive-image" height="196" src="/legacyfs/online/70445_04-11-2014 09-11-54.jpg" style="height: auto; width: auto;" width="427" /&gt;&lt;/P&gt;&lt;P&gt;Step2 - insert distinct Type in your set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior Calculation: Avg({&amp;lt;Type={'Prior'},[Issued in Exchange]={N}&amp;gt;}[Total Doc Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post Calculation: Avg({&amp;lt;Type={'Post'},[Issued in Exchange]={N}&amp;gt;}[Total Doc Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a great way to perform conditional and f calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that will help you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 08:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756866#M1049627</guid>
      <dc:creator />
      <dc:date>2014-11-04T08:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756867#M1049628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 08:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756867#M1049628</guid>
      <dc:creator />
      <dc:date>2014-11-04T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis using Field Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756868#M1049629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp; That's exactly what I needed. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 16:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Field-Value/m-p/756868#M1049629</guid>
      <dc:creator />
      <dc:date>2014-11-04T16:24:31Z</dc:date>
    </item>
  </channel>
</rss>

