<?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 Use subtraction between columns for Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006957#M974014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to use set analysis to create a bar chart with two bars.&amp;nbsp; One bar set will be for Orders that have a "lead time" of 7 days or less, and the other will be for Orders that have a "lead time" of more than 7 days.&amp;nbsp; "Lead Time" is calculated by taking the date the order was entered (OrderEnteredDate) and subtracting it from the promise/delivery date (PromiseDate).&amp;nbsp; So my two set discriminators would resemble (PromiseDate - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;OrderEnteredDate) &amp;gt; 7 and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;(PromiseDate - &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OrderEnteredDate) &amp;lt;= 7.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current issue is that I don't know how to create a SetAnalysis with subtraction in it.&amp;nbsp; I know how to do "7 days ago" SUM({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;PromiseDate &lt;/SPAN&gt;={"&amp;gt;=$(=Date(today()-7))"}&amp;gt;} NetSalesDOM), but I don't know how to have it dependent on a calculation between two columns in the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly apprecated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 20:14:05 GMT</pubDate>
    <dc:creator>JustinDallas</dc:creator>
    <dc:date>2015-09-09T20:14:05Z</dc:date>
    <item>
      <title>Use subtraction between columns for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006957#M974014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to use set analysis to create a bar chart with two bars.&amp;nbsp; One bar set will be for Orders that have a "lead time" of 7 days or less, and the other will be for Orders that have a "lead time" of more than 7 days.&amp;nbsp; "Lead Time" is calculated by taking the date the order was entered (OrderEnteredDate) and subtracting it from the promise/delivery date (PromiseDate).&amp;nbsp; So my two set discriminators would resemble (PromiseDate - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;OrderEnteredDate) &amp;gt; 7 and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;(PromiseDate - &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OrderEnteredDate) &amp;lt;= 7.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current issue is that I don't know how to create a SetAnalysis with subtraction in it.&amp;nbsp; I know how to do "7 days ago" SUM({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;PromiseDate &lt;/SPAN&gt;={"&amp;gt;=$(=Date(today()-7))"}&amp;gt;} NetSalesDOM), but I don't know how to have it dependent on a calculation between two columns in the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly apprecated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006957#M974014</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2015-09-09T20:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use subtraction between columns for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006958#M974015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you calculate the difference between the two dates in the script and then use the new field in your set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006958#M974015</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T20:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use subtraction between columns for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006959#M974016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have an orderid you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;OrderId={"=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;PromiseDate &lt;/SPAN&gt;-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;OrderEnteredDate&lt;/SPAN&gt;)&amp;gt;=7"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NetSalesDOM&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006959#M974016</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-09T20:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use subtraction between columns for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006960#M974017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was my first thought, but I was wondering if there was a way to do it in the presentation layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006960#M974017</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2015-09-09T20:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use subtraction between columns for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006961#M974018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm confused how this works.&amp;nbsp; It looks like it's saying "if the order id equals the result of this boolean test".&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Also, I threw it into my dashboard and it appears to work, but I'm not sure why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006961#M974018</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2015-09-09T20:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use subtraction between columns for Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006962#M974019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment, page 14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order id with date diffference &amp;gt;= 7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-subtraction-between-columns-for-Set-Analysis/m-p/1006962#M974019</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-09T20:41:27Z</dc:date>
    </item>
  </channel>
</rss>

