<?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 Fixed count to use for formulas in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fixed-count-to-use-for-formulas/m-p/301034#M1189434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to use the count of employee by location as a fixed count.&lt;/P&gt;&lt;P&gt;For example if I use the frequency check box in the location list box I get a number I would like to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to look at Occupancy by day. But in order to do that I need to have a fixed count of employees by location. So I can use that number to calcualate daily access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make selections the number drops by the day and I cant get the % of daily visits compared to the count of employees for a certain region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought maybe I would need to build a variable. I am sure this a pretty basic question but any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Cassadi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2011 19:38:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-25T19:38:20Z</dc:date>
    <item>
      <title>Fixed count to use for formulas</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-count-to-use-for-formulas/m-p/301034#M1189434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to use the count of employee by location as a fixed count.&lt;/P&gt;&lt;P&gt;For example if I use the frequency check box in the location list box I get a number I would like to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to look at Occupancy by day. But in order to do that I need to have a fixed count of employees by location. So I can use that number to calcualate daily access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make selections the number drops by the day and I cant get the % of daily visits compared to the count of employees for a certain region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought maybe I would need to build a variable. I am sure this a pretty basic question but any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Cassadi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 19:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-count-to-use-for-formulas/m-p/301034#M1189434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-25T19:38:20Z</dc:date>
    </item>
    <item>
      <title>Fixed count to use for formulas</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-count-to-use-for-formulas/m-p/301035#M1189435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cassadi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure if I got your issue correctly, but I think you want to get a count independent from current selections.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You could do this with set analysis (have a look in the help file about set analysis or here:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://iqlik.wordpress.com/2010/09/11/the-magic-of-set-analysis-syntax-and-examples/"&gt;http://iqlik.wordpress.com/2010/09/11/the-magic-of-set-analysis-syntax-and-examples/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to count the percentage of employees in your selection compared to the number by location without limitation by selection, I would use a chart (e.g. straight table) with dimension Location and then as expression&lt;/P&gt;&lt;P&gt;= count(Employee) / count({1} Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the {1} will get the count() to disregard your current selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the share of Employees for a certain location compared to all Locations, you could use&lt;/P&gt;&lt;P&gt;= count(Employee) / count(total Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here, total will disregard the charts dimension (certain location).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 21:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-count-to-use-for-formulas/m-p/301035#M1189435</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-25T21:53:04Z</dc:date>
    </item>
  </channel>
</rss>

