<?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: How do I script this? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296511#M404636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 17:01:17 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-29T17:01:17Z</dc:date>
    <item>
      <title>How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296502#M404627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to create two expressions in a line chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If(severity = 'Critical' AND closed_date &amp;lt;&amp;gt; ' ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(severity = 'High' AND closed_date &amp;lt;&amp;gt; ' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if severity equals critical/high and the closed date is not empty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 18:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296502#M404627</guid>
      <dc:creator />
      <dc:date>2017-03-28T18:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296503#M404628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a flag in the script for empty closed date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD If(Len(Trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;closed_date)) = 0, 0, 1) as Flag_Closed_Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Flag_Closed_Date&lt;/SPAN&gt; = {1}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;severity &lt;/SPAN&gt;= {'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Critical&lt;/SPAN&gt;'}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Flag_Closed_Date&lt;/SPAN&gt; = {1}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;severity &lt;/SPAN&gt;= {'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;High&lt;/SPAN&gt;'}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: Just realized with Nicole's response that you want to exclude null here... I have updated the above, but you can also use this (in addition to Nicole's provided option)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;closed_date&lt;/SPAN&gt;= {"=Len(Trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;closed_date&lt;/SPAN&gt;)) &amp;gt; 0"}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;severity &lt;/SPAN&gt;= {'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Critical&lt;/SPAN&gt;'}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;closed_date&lt;/SPAN&gt;= {"&lt;STRONG style="font-size: 13.3333px;"&gt;=Len(Trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;closed_date&lt;/SPAN&gt;)) &amp;gt; 0&lt;/STRONG&gt;"}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;severity &lt;/SPAN&gt;= {'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;High&lt;/SPAN&gt;'}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 18:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296503#M404628</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T18:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296504#M404629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option besides &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;'s that will work as long as QlikView already knows that your closed_date is a date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;severity &lt;/SPAN&gt;= {'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Critical&lt;/SPAN&gt;'}, closed_date={'&amp;gt;0'}&amp;gt;}Measure)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;severity &lt;/SPAN&gt;= {'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;High&lt;/SPAN&gt;'}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, closed_date={'&amp;gt;0'}&lt;/SPAN&gt;&amp;gt;}Measure)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 18:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296504#M404629</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-03-28T18:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296505#M404630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, measure doesn't seem to be working for me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 14:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296505#M404630</guid>
      <dc:creator />
      <dc:date>2017-03-29T14:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296506#M404631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What they meant by Measure is that your Fieldname you use to sum. Like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; ..... &amp;gt;} YourFieldName). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 15:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296506#M404631</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-29T15:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296507#M404632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what i'm getting when using MonthYear as my measure. High is showing, but critical is not, any ideas? &lt;IMG alt="Trend.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/158124_Trend.png" style="height: 159px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 15:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296507#M404632</guid>
      <dc:creator />
      <dc:date>2017-03-29T15:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296508#M404633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Convert this chart into a straight table and see if Critical shows up with any value or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 15:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296508#M404633</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-29T15:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296509#M404634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Straight table shows no values but a list box does. see pic&lt;IMG alt="severity.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/158138_severity.png" style="height: 132px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 16:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296509#M404634</guid>
      <dc:creator />
      <dc:date>2017-03-29T16:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296510#M404635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;closed_date&lt;/SPAN&gt;= {"=Len(Trim(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;closed_date&lt;/SPAN&gt;)) &amp;gt; 0"}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;severity &lt;/SPAN&gt;= {'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;Critical&lt;/SPAN&gt;'}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;changed sum to count and this worked, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 16:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296510#M404635</guid>
      <dc:creator />
      <dc:date>2017-03-29T16:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296511#M404636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 17:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-script-this/m-p/1296511#M404636</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-29T17:01:17Z</dc:date>
    </item>
  </channel>
</rss>

