<?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 week problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-week-problem/m-p/689353#M474009</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'd like to know how can i compare inventory vs sales&amp;nbsp; within a period of time. Stock income every Saturday and i have to compare last 9 days of sales (starting every saturday) against stock, red() if the stock is lower than that selection, green if it isnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the solution if the income is on one day of the month, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Day 9 of every month and last 45 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_COMETA=DATE(DATE#(DATE(MAX(Fecha),'YYYYMM')&amp;amp;'29','YYYYMMDD'),'YYYY/MM/DD')&lt;/P&gt;&lt;P&gt;V_COMETA_in=DATE(V_COMETA-45,'YYYY/MM/DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set in the chart is = if(Marca='COMETA', SUM({$&amp;lt;Mes=,Año=, Fecha={&lt;STRONG&gt;'&amp;gt;=$(V_COMETA_in)&amp;lt;=$(V_COMETA)'&lt;/STRONG&gt;}&amp;gt;} CANT_SERVIDA_1 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This calculates between two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is when you have the Stock Income every saturday, not a day of the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 08:26:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-09T08:26:48Z</dc:date>
    <item>
      <title>Set analysis week problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-week-problem/m-p/689353#M474009</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'd like to know how can i compare inventory vs sales&amp;nbsp; within a period of time. Stock income every Saturday and i have to compare last 9 days of sales (starting every saturday) against stock, red() if the stock is lower than that selection, green if it isnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the solution if the income is on one day of the month, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Day 9 of every month and last 45 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_COMETA=DATE(DATE#(DATE(MAX(Fecha),'YYYYMM')&amp;amp;'29','YYYYMMDD'),'YYYY/MM/DD')&lt;/P&gt;&lt;P&gt;V_COMETA_in=DATE(V_COMETA-45,'YYYY/MM/DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set in the chart is = if(Marca='COMETA', SUM({$&amp;lt;Mes=,Año=, Fecha={&lt;STRONG&gt;'&amp;gt;=$(V_COMETA_in)&amp;lt;=$(V_COMETA)'&lt;/STRONG&gt;}&amp;gt;} CANT_SERVIDA_1 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This calculates between two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is when you have the Stock Income every saturday, not a day of the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 08:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-week-problem/m-p/689353#M474009</guid>
      <dc:creator />
      <dc:date>2014-10-09T08:26:48Z</dc:date>
    </item>
  </channel>
</rss>

