<?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: Evaluate Date Per Row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213401#M460995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, I would recommend using an if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DISTINCT &lt;/STRONG&gt;{&amp;lt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Upsell ARR (converted)] = {"&amp;gt;0"}&amp;gt;}&lt;/STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt;If([Close Date] &amp;gt; [Campaign Start Date],&lt;/SPAN&gt; [Opportunity ID]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Mar 2017 14:15:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-06T14:15:34Z</dc:date>
    <item>
      <title>Evaluate Date Per Row</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213397#M460991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set analysis below successfully calculates UPSELL ARR ($) closed AFTER a campaign date in Salesforce. There is one slight issue - This only works when I have ONE CAMPAIGN selected. When I have multiple campaigns selected, it calculates based on the aggregate campaign start date and I get inaccurate measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;[Close Date]={"= [Close Date] &amp;gt; [Campaign Start Date]"}, [Upsell ARR (converted)] = {"&amp;gt;0"}&amp;gt;}distinct([Opportunity ID]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOAL: I want to be able to evaluate this expression accurately with several campaigns chosen, so I need this expression to compare ALL close dates vs the specific campaign start date on each row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this makes sense. Thank you in advance for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 16:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213397#M460991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-01T16:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate Date Per Row</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213398#M460992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will need to use aggr function in that case. Set Analysis will only work if you can create a new field in the script. Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Close Date] &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CAMPAIGN&lt;/SPAN&gt; as NewField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count({&amp;lt;NewField={"= [Close Date] &amp;gt; [Campaign Start Date]"}, [Upsell ARR (converted)] = {"&amp;gt;0"}&amp;gt;} DISTINCT [Opportunity ID])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try this before making any change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Count({&amp;lt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Opportunity ID]&lt;/STRONG&gt; = {"=[Close Date] &amp;gt; [Campaign Start Date]"}, [Upsell ARR (converted)] = {"&amp;gt;0"}&amp;gt;} DISTINCT [Opportunity ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 16:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213398#M460992</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-01T16:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate Date Per Row</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213399#M460993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the help Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px;"&gt;Count({&amp;lt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px;"&gt;[Opportunity ID]&lt;/STRONG&gt; = {"=[Close Date] &amp;gt; [Campaign Start Date]"}, [Upsell ARR (converted)] = {"&amp;gt;0"}&amp;gt;} DISTINCT [Opportunity ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Did not work immediately, so it looks like I will need to create new field as suggested. I will revert with the findings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 16:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213399#M460993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-01T16:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate Date Per Row</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213400#M460994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny - There is an issue here. The field CAMPAIGN and CLOSE DATE are in two different tables, so concatenating them is impossible, i think? I have posted a picture of the data model below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture22.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155335_Capture22.PNG" style="height: 500px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213400#M460994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-06T14:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate Date Per Row</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213401#M460995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, I would recommend using an if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DISTINCT &lt;/STRONG&gt;{&amp;lt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Upsell ARR (converted)] = {"&amp;gt;0"}&amp;gt;}&lt;/STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt;If([Close Date] &amp;gt; [Campaign Start Date],&lt;/SPAN&gt; [Opportunity ID]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213401#M460995</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-06T14:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate Date Per Row</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213402#M460996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PERFECT. Amazing job again Sunny. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 15:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-Date-Per-Row/m-p/1213402#M460996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-06T15:40:13Z</dc:date>
    </item>
  </channel>
</rss>

