<?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 Set Analysis Formula Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959216#M971201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm placing the following expression in the text of a chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Accrued Total Shipped MTD: ' &amp;amp; num(Sum({1&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;DATE=, &lt;/SPAN&gt;[Act. PGI Date]={"$(=CMTD = 1"}, ShipmentStatus = {'COMPLETED'}&amp;gt;}DeliveredQty), '###,###,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE is the field that's connecting the data model to the master accounting periods calendar in my application. I want to ignore it for the purposes of this expression. The ultimate intent is to have &lt;SPAN style="font-size: 13.3333px;"&gt;Act. PGI Date equal to or "search" the CMTD &lt;SPAN style="font-size: 13.3333px;"&gt;(Current Month To Date) &lt;/SPAN&gt;field in my calendar where it equals '1' . No standard QlikView calendar functions will help for this, as it is a fiscal accounting periods calendar. When CMTD field is equal to '1', then the calendar knows to display data only associated with the fiscal period's beginning date to the current day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine i can also use vCurrent(fiscal)MonthStart and Today() to have the same effect as CMTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&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;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2015 21:30:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-15T21:30:42Z</dc:date>
    <item>
      <title>Set Analysis Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959216#M971201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm placing the following expression in the text of a chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Accrued Total Shipped MTD: ' &amp;amp; num(Sum({1&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;DATE=, &lt;/SPAN&gt;[Act. PGI Date]={"$(=CMTD = 1"}, ShipmentStatus = {'COMPLETED'}&amp;gt;}DeliveredQty), '###,###,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE is the field that's connecting the data model to the master accounting periods calendar in my application. I want to ignore it for the purposes of this expression. The ultimate intent is to have &lt;SPAN style="font-size: 13.3333px;"&gt;Act. PGI Date equal to or "search" the CMTD &lt;SPAN style="font-size: 13.3333px;"&gt;(Current Month To Date) &lt;/SPAN&gt;field in my calendar where it equals '1' . No standard QlikView calendar functions will help for this, as it is a fiscal accounting periods calendar. When CMTD field is equal to '1', then the calendar knows to display data only associated with the fiscal period's beginning date to the current day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine i can also use vCurrent(fiscal)MonthStart and Today() to have the same effect as CMTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&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;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 21:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959216#M971201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-15T21:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959217#M971202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Act. PGI Date]={"$(=CMTD = 1"}&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To begin with there's a syntax error in that bit. There's either a '(' too much or a closing ')' too few. Perhaps you should use CMTD={1} instead. But I can't be sure since I have no idea what your data model looks like. Perhaps what you want is not possible with your set analysis expression given the data in your document. Can you post a small qlikview document that illustrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 06:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959217#M971202</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-16T06:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959218#M971204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a sample application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 06:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959218#M971204</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-16T06:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959219#M971205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your requirement is not clear. Can you explain in details?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 07:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959219#M971205</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-09-16T07:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959220#M971206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry that I was a little unclear. The issue is that i can't get this expression to give any results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Accrued Total Shipped MTD: ' &amp;amp; num(Sum({1&amp;lt;[Act. PGI Date]={"$(=CMTD) = {1}"}, ShipmentStatus = {'COMPLETED'}&amp;gt;}DeliveredQty), '###,###,##0')&amp;nbsp; //fixed the sytax (i think)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR maybe this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Accrued Total Shipped MTD: ' &amp;amp; num(Sum({1&amp;lt;[Act. PGI Date]={"&amp;gt;=$(=vCurrentMonthStart)&amp;lt;=Today()"}, ShipmentStatus = {'COMPLETED'}&amp;gt;}DeliveredQty), '###,###,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either should give the same result, but both come out to be 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99192_QV1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm ultimately trying to get around the issue of my fiscal accounting calendar that contains the CYTD field (either 1 or 0 value, 1 being within the current month to date, 0 false) being run off of a certain date (DATE) that i'm using for the rest of the application. I dont want to complicate usability with a canonical date (DATE and Actual PGI Date concatenated on top of each other). Instead, i'd like to show a different result in the text box of the chart using the Actual PGI Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/99193_QV1.PNG" style="height: 407px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual PGI Date is in the LIPS (fact) table.&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;SPAN style="font-size: 13.3333px;"&gt;[Act. PGI Date]={"&amp;gt;=$(=vCurrentMonthStart)&amp;lt;=Today()"} and &lt;SPAN style="font-size: 13.3333px;"&gt;[Act. PGI Date]={"$(=CMTD) = {1}"} should, in theory, have the exact same effect. I want to totally ignore the implications of DATE being connected to the master calendar and use Actual PGI Date for this one expression.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({1&amp;lt;CMTD={'1'}&amp;gt;}DeliveredQty) works perfectly fine for that pie chart, but it's going off of DATE. I need to ignore DATE and use Actual PGI Date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I can't post this application, sorry. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Ron&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 01:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959220#M971206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-17T01:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959221#M971207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;Sum({1&amp;lt;CMTD={'1'}&amp;gt;}DeliveredQty) works perfectly fine for that pie chart, but it's going off of DATE. I need to ignore DATE and use Actual PGI Date.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Perhaps you should link your master calendar to Actual PGI Date then. Or simply create additional calender table based on Actual PGI Date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Act. PGI Date]={"$(=CMTD) = {1}"} &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a valid syntax. You could try &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Act. PGI Date]={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;[Act. PGI Date]=[DATE]&lt;/SPAN&gt;"},CMTD={1}. But that's unlikely to work (explanation here: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4563" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; background-color: #f8fbfe;"&gt;set_analysis_intra-record.qvw)&lt;/A&gt;‌ and would require an if statement instead. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 05:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Formula-Question/m-p/959221#M971207</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-17T05:03:11Z</dc:date>
    </item>
  </channel>
</rss>

