<?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 Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635792#M1091256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({$&amp;lt;Metric_Type={'Meter_Read},NDate = {"&amp;gt;=$(v_Start)&amp;lt;=$(v_End)"}&amp;gt;}Data)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 14:38:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-02T14:38:06Z</dc:date>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635789#M1091253</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;I have allowed user to select a start and an end date&lt;/P&gt;&lt;P&gt;v_Start=calender select floor(num(date))&lt;/P&gt;&lt;P&gt;v_End=Calender select Floor(num(date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the meter reading on the start date and the end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there might not be records on the start date or the end date&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 931px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="32" width="196"&gt;Site&lt;/TD&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="120"&gt;Earliest Date&lt;BR /&gt;&amp;nbsp; From Selection&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="171"&gt;Reading(kWh)&lt;BR /&gt;&amp;nbsp; From 01/05/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="97"&gt;Latest Read Date&lt;BR /&gt;&amp;nbsp; From Selection&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="157"&gt;Reading(kWh) To&lt;BR /&gt;&amp;nbsp; 01/06/2014&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="190"&gt;Total&lt;BR /&gt;&amp;nbsp; Production (kWh) for Selection&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;" width="196"&gt;XXX1&lt;/TD&gt;&lt;TD class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="120"&gt;08/05/2014&lt;/TD&gt;&lt;TD class="xl63" style="text-align: center; border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="171"&gt;No&lt;BR /&gt;&amp;nbsp; Reading on this day&lt;/TD&gt;&lt;TD class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="97"&gt;01/06/2014&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="157"&gt;5.98&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="190"&gt;5.98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;" width="196"&gt;XXX2&lt;/TD&gt;&lt;TD class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="120"&gt;01/05/2014&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="171"&gt;19601.22&lt;/TD&gt;&lt;TD class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="97"&gt;01/06/2014&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="157"&gt;23488.15&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="190"&gt;3886.93&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;" width="196"&gt;XXX3&lt;/TD&gt;&lt;TD class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="120"&gt;01/05/2014&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="171"&gt;21116.09&lt;/TD&gt;&lt;TD class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="97"&gt;27/05/2014&lt;/TD&gt;&lt;TD class="xl63" style="text-align: center; border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="157"&gt;No&lt;BR /&gt;&amp;nbsp; Reading on this day&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="190"&gt;-21116.09&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it would be better to display the Meter reading on any of the days that falls within the selection, in the above case the selection is 1/5/2014 to 1/6/2014.&lt;/P&gt;&lt;P&gt;I have tried the following set analysis with no success. NDate being a numeric date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Metric_Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={Meter_Read},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Min(NDate))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Metric_Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={Meter_Read},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=[$(=Aggr(min({$}NDate),MSN))}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635789#M1091253</guid>
      <dc:creator />
      <dc:date>2014-06-02T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635790#M1091254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question and problem's description is very unclear. &lt;/P&gt;&lt;P&gt;What is the problem, what doesnt work properly?&lt;BR /&gt;What exactly do you want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635790#M1091254</guid>
      <dc:creator />
      <dc:date>2014-06-02T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635791#M1091255</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:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Metric_Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={Meter_Read},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;NDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;$(v_Start) &amp;lt;= $(v_End)"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Make sure that NDate is in the same format as v_Start and v_End.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;JV&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635791#M1091255</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-06-02T14:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635792#M1091256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({$&amp;lt;Metric_Type={'Meter_Read},NDate = {"&amp;gt;=$(v_Start)&amp;lt;=$(v_End)"}&amp;gt;}Data)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635792#M1091256</guid>
      <dc:creator />
      <dc:date>2014-06-02T14:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635793#M1091257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Mistake, sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Columns C and E I want equations that will display the meter readings that are available on the dates displayed in columns B and D respectivly. Column F is just column C- E. The dates in the headings are user selected, but does not mean that the data is available on the day the user has selected. hence I need to display what is availble within the date selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The equation I supplied as an example will be used in Column C, currently it just seeks for user selected date rather than possible selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/635793#M1091257</guid>
      <dc:creator />
      <dc:date>2014-06-02T14:45:57Z</dc:date>
    </item>
  </channel>
</rss>

