<?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 Where in expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327076#M1193739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You should be able to try;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(count({&amp;lt;IncidentType={'Injury'}&amp;gt;}IncidentType)/$(VarName))*1000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where VarName is replaced by the name of the variable holding the number of hours per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work as a standard expression which is calculated over the dimension Region, you shouldnt have any problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2011 15:50:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-28T15:50:29Z</dc:date>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327069#M1193732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm new to Qlikview so please be gentle&lt;/P&gt;&lt;P&gt;Basically I have loaded an excel spreadheet with the following columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Region&lt;/P&gt;&lt;P&gt;Incident Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Incident type I have things like RTA, Injury, Complaint etc.&lt;/P&gt;&lt;P&gt;Now I want to write an expression that counts the incident type but only where it equals Injury&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I trying this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count (IncidentType) &lt;/P&gt;&lt;P&gt;Where (IncidentType) Like '%Injury%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work?&lt;/P&gt;&lt;P&gt;Help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327069#M1193732</guid>
      <dc:creator />
      <dc:date>2011-06-28T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327070#M1193733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi there you would want an IF statment or Set Analysis, either options below should work for you;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(IncidentType='Injury',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;IncidentType={'Injury'}&amp;gt;}IncidentType)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327070#M1193733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-28T14:29:02Z</dc:date>
    </item>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327071#M1193734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant, the second one worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explain how that works and why I need the IncidentType at the end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327071#M1193734</guid>
      <dc:creator />
      <dc:date>2011-06-28T14:41:29Z</dc:date>
    </item>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327072#M1193735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yeah sure no problem, what the second option did was called set analysis, this basically tells qlikview that you want to filter the data as if the user had made a selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case it will count all of the instances of Incident Type as if you yourself had clicked on Injury within the IncidentType field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327072#M1193735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-28T14:45:13Z</dc:date>
    </item>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327073#M1193736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so now I need to add to the expression so it filters on certain regions&lt;/P&gt;&lt;P&gt;so something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;IncidentType={'Injury'}&amp;gt;}IncidentType) &lt;STRONG&gt;where region = North&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically I'm trying to work out the following for each region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No of injuries / Hours per month x 1,000,000&lt;/P&gt;&lt;P&gt;and present as a bar chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 15:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327073#M1193736</guid>
      <dc:creator />
      <dc:date>2011-06-28T15:20:40Z</dc:date>
    </item>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327074#M1193737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Mel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would want to update the code as follows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;IncidentType={'Injury'},Region={'North'}&amp;gt;}IncidentType)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that for each bar you would want showing you need to repeat this changing to the appropriate region as below for example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;IncidentType={'Injury'},Region={'North'}&amp;gt;}IncidentType) -North Bar&lt;/P&gt;&lt;P&gt;count({&amp;lt;IncidentType={'Injury'},Region={'South'}&amp;gt;}IncidentType)- South Bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However &lt;/STRONG&gt;you should be able to use the original code and set Region as a dimension as such each region will have the expression calculated anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(count({&amp;lt;IncidentType={'Injury'}&amp;gt;}IncidentType)/Hours per month)*1000000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 15:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327074#M1193737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-28T15:32:26Z</dc:date>
    </item>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327075#M1193738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks&lt;/P&gt;&lt;P&gt;I've got hours per month for each region as a variable as they change each month, so that why I was thinking that I needed to do this for each bar.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 15:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327075#M1193738</guid>
      <dc:creator />
      <dc:date>2011-06-28T15:45:57Z</dc:date>
    </item>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327076#M1193739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You should be able to try;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(count({&amp;lt;IncidentType={'Injury'}&amp;gt;}IncidentType)/$(VarName))*1000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where VarName is replaced by the name of the variable holding the number of hours per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work as a standard expression which is calculated over the dimension Region, you shouldnt have any problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 15:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327076#M1193739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-28T15:50:29Z</dc:date>
    </item>
    <item>
      <title>Where in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327077#M1193740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That has worked a treat &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;V. happy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 16:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-in-expressions/m-p/327077#M1193740</guid>
      <dc:creator />
      <dc:date>2011-06-28T16:06:26Z</dc:date>
    </item>
  </channel>
</rss>

