<?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: How to get field value to have dynamic set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867072#M303304</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&gt;If you don't want to use Above(), then you have to do this in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(Date#(YYYYMM, 'YYYYMM')) AS Date,&lt;/P&gt;&lt;P&gt;YYYYMM,&lt;/P&gt;&lt;P&gt;TargetCollection,&lt;/P&gt;&lt;P&gt;TargetCollection -&amp;nbsp; Previous(TargetCollection) AS IncDec&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;YYYYMM, TargetCollection&lt;/P&gt;&lt;P&gt;201501, 500&lt;/P&gt;&lt;P&gt;201502, 250&lt;/P&gt;&lt;P&gt;201503, 1000&lt;/P&gt;&lt;P&gt;201504, 850];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use Sum(IncDec) as your expression for your Increase / Decrease column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 03:02:12 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-06-22T03:02:12Z</dc:date>
    <item>
      <title>How to get field value to have dynamic set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867071#M303303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this scenario, I have month Target Collection, and I also want to get the variance of THIS MONTH vs LAST MONTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; width: 250px; height: 113px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;YYYYMM&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Target Collection&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;201501&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;201502&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;201503&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;201504&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;850&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is my desired report, I want it dynamically displayed data.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; width: 250px; height: 113px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;YYYYMM&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Target Collection&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Increase / Decrease&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;201501&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;201502&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;-250&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;201503&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #008000;"&gt;750&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;201504&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;850&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;-150&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula is simple as this, current month Target Collection minus previous month Target Collection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that, I don't want to use Above() or other dependent formula. I want to use set analysis to have the data dynamically displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to hear feedback soonest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 02:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867071#M303303</guid>
      <dc:creator>bill_mtc</dc:creator>
      <dc:date>2015-06-22T02:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get field value to have dynamic set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867072#M303304</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&gt;If you don't want to use Above(), then you have to do this in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(Date#(YYYYMM, 'YYYYMM')) AS Date,&lt;/P&gt;&lt;P&gt;YYYYMM,&lt;/P&gt;&lt;P&gt;TargetCollection,&lt;/P&gt;&lt;P&gt;TargetCollection -&amp;nbsp; Previous(TargetCollection) AS IncDec&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;YYYYMM, TargetCollection&lt;/P&gt;&lt;P&gt;201501, 500&lt;/P&gt;&lt;P&gt;201502, 250&lt;/P&gt;&lt;P&gt;201503, 1000&lt;/P&gt;&lt;P&gt;201504, 850];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use Sum(IncDec) as your expression for your Increase / Decrease column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 03:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867072#M303304</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-22T03:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get field value to have dynamic set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867073#M303305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This per account, that's why I want it to be dynamic. There are accounts not exist in previous months, there are also accounts not exist in current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 03:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867073#M303305</guid>
      <dc:creator>bill_mtc</dc:creator>
      <dc:date>2015-06-22T03:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get field value to have dynamic set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867074#M303306</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&gt;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(Date#(YYYYMM, 'YYYYMM')) AS Date,&lt;/P&gt;&lt;P&gt;YYYYMM,&lt;/P&gt;&lt;P&gt;TargetCollection&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;YYYYMM, TargetCollection&lt;/P&gt;&lt;P&gt;201501, 500&lt;/P&gt;&lt;P&gt;201502, 250&lt;/P&gt;&lt;P&gt;201503, 1000&lt;/P&gt;&lt;P&gt;201504, 850];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (Data)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;MonthStart(Date, 1) AS Date,&lt;/P&gt;&lt;P&gt;TargetCollection AS PrevMonthTargetCollection&lt;/P&gt;&lt;P&gt;RESIDENT Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use below expression in chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(Date#(YYYYMM, 'YYYYMM')) AS Date,&lt;/P&gt;&lt;P&gt;YYYYMM,&lt;/P&gt;&lt;P&gt;TargetCollection&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;YYYYMM, TargetCollection&lt;/P&gt;&lt;P&gt;201501, 500&lt;/P&gt;&lt;P&gt;201502, 250&lt;/P&gt;&lt;P&gt;201503, 1000&lt;/P&gt;&lt;P&gt;201504, 850];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (Data)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;MonthStart(Date, 1) AS Date,&lt;/P&gt;&lt;P&gt;TargetCollection AS PrevMonthTargetCollection&lt;/P&gt;&lt;P&gt;RESIDENT Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use below expression in your chart&lt;/P&gt;&lt;P&gt;=Sum(TargetCollection) - Sum(PrevMonthTargetCollection)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 03:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867074#M303306</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-22T03:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get field value to have dynamic set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867075#M303307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use mapping load&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&amp;nbsp; [&lt;/P&gt;&lt;P&gt;YYYYMM,TargetCollection&lt;/P&gt;&lt;P&gt;201501,500&lt;/P&gt;&lt;P&gt;201502,250&lt;/P&gt;&lt;P&gt;201503,1000&lt;/P&gt;&lt;P&gt;201504,850&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Map1:&lt;/P&gt;&lt;P&gt;Mapping LOAD&amp;nbsp; YYYYMM,TargetCollection Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;load YYYYMM, TargetCollection,ApplyMap ('Map1',Trim(Date(AddMonths(Date#(YYYYMM,'YYYYMM'),-1),'YYYYMM')),0 ) as PrevTargetCollection &lt;/P&gt;&lt;P&gt;Resident Temp ;&lt;IMG alt="169280.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90409_169280.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 13:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867075#M303307</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-06-23T13:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get field value to have dynamic set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867076#M303308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not think what you want to achieve is possible with set analysis and you have to use script for it. Did you try the script options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 17:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867076#M303308</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-02T17:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get field value to have dynamic set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867077#M303309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with &lt;A href="https://community.qlik.com/qlik-users/198252"&gt;SasiParupudi1&lt;/A&gt; that it isn't possible with set analysis then for this you would be need a different calculation-condition for each cell whereas these conditions will be calculated at first global for the object and then applied for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above mentioned script-solutions looks like a very good approach and they will work. But could be possible to get these data dynamically with above(), too. Then you could pass the to grab row with the second and third parameter from above. You could try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above(sum(value), only(MonthCounter) - above(only(MonthCounter)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas MonthCounter is a continues counter for each month and will be created within a master-calendar which is connected to your date-fields from the fact-table. You will find here more about the master-calendar and MonthCounter: &lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 19:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-field-value-to-have-dynamic-set-analysis/m-p/867077#M303309</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-07-02T19:24:34Z</dc:date>
    </item>
  </channel>
</rss>

