<?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: Compare two ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642898#M1085527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TargetMeasure:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[Target&lt;/P&gt;&lt;P&gt;5];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change 5 to whatever number you need, then you can use the Target field in your expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 14:22:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-06T14:22:53Z</dc:date>
    <item>
      <title>Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642896#M1085525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help.&lt;/P&gt;&lt;P&gt;I load from source a table called Measuring with 3 columns: Gauge, Measure and Target.&lt;/P&gt;&lt;P&gt;See attached file.&lt;/P&gt;&lt;P&gt;I want to know the amount of gauge's that's are under the target, On target and Over target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition:&lt;/P&gt;&lt;P&gt;Measure &amp;gt; Target = Over Target&lt;/P&gt;&lt;P&gt;Measure &amp;lt; Target = Under Target&lt;/P&gt;&lt;P&gt;Measure = Target = On Target&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the best solution to define "Under Target", "On Target" and "Over Target" based on the 3 columns in the script or in the expression where I need it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script I already used the formular: Right(Measure,1) as MeasureNumber&amp;nbsp; to get number instead of tekst. So it is easier to compare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.Please let me know what's the best solution script of expression and can you give me an example in QLV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ralph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 13:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642896#M1085525</guid>
      <dc:creator />
      <dc:date>2014-06-06T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642897#M1085526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raplh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you can set your "Target label" into the script&lt;/P&gt;&lt;P&gt;it will the give you a field you could use a dimension to count your target according dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 14:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642897#M1085526</guid>
      <dc:creator />
      <dc:date>2014-06-06T14:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642898#M1085527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TargetMeasure:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[Target&lt;/P&gt;&lt;P&gt;5];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change 5 to whatever number you need, then you can use the Target field in your expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 14:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642898#M1085527</guid>
      <dc:creator />
      <dc:date>2014-06-06T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642899#M1085528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's the right answer but I don't know how to do this in Qlikview!&lt;/P&gt;&lt;P&gt;I made this:&lt;/P&gt;&lt;P&gt;TagetMeasure:&lt;/P&gt;&lt;P&gt;Laod * Inline&lt;/P&gt;&lt;P&gt;[Target1,&lt;/P&gt;&lt;P&gt;Under Target,&lt;/P&gt;&lt;P&gt;On Target,&lt;/P&gt;&lt;P&gt;Over Target];&lt;/P&gt;&lt;P&gt;And now I have a field named Target1 with 3 items: Under target, On target and Over Target.&lt;/P&gt;&lt;P&gt;So far so good...&lt;/P&gt;&lt;P&gt;But how can I connect it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 14:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642899#M1085528</guid>
      <dc:creator />
      <dc:date>2014-06-06T14:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642900#M1085529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TargetMeasure:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[Target1, Under Target, On Target, Over Target,&lt;/P&gt;&lt;P&gt;1,2,3,4];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where 1 is Target1, 2 is Under Target, 3 is On Target, and 4 is Over Target.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642900#M1085529</guid>
      <dc:creator />
      <dc:date>2014-06-06T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642901#M1085530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then in your expressions you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({Measure = "&amp;gt;=[Over Target]"}Gauges)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Measure is your measure field, Over Target is what we defined above, and Gauges is your gauges field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 14:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642901#M1085530</guid>
      <dc:creator />
      <dc:date>2014-06-06T14:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642902#M1085531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to me, Script level is best for doing this comparison,once calculated we can directly pull the field from the table instead of writing an expression in the chart level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the test .qvw for the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 14:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642902#M1085531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-06T14:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642903#M1085532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the below expression:&lt;/P&gt;&lt;P&gt;if(Num(Right(Measure,1))&amp;gt; Num(Right(Target,1)), 'Over Target', if(Num(Right(Measure,1))&amp;lt; Num(Right(Target,1)),'under Target',if(Num(Right(Measure,1))= Num(Right(Target,1)),'On Target')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 14:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642903#M1085532</guid>
      <dc:creator />
      <dc:date>2014-06-06T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642904#M1085533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;It works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 19:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642904#M1085533</guid>
      <dc:creator />
      <dc:date>2014-06-06T19:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642905#M1085534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 19:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-ranges/m-p/642905#M1085534</guid>
      <dc:creator />
      <dc:date>2014-06-06T19:49:22Z</dc:date>
    </item>
  </channel>
</rss>

