<?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 expression to ignore dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672036#M1057965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an expression that will ignore the dimensions on the graph but will apply the same amount to each dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of names and the hours which they have worked. I would like to apply a share of 2 hours to each employee that has worked. This share should be applied daily and the number of employees working might change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example - I have Date, Name Fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Day1&lt;/P&gt;&lt;P&gt;Person 1 - works 5 hours + share of 1 hour&lt;/P&gt;&lt;P&gt;Person 2 - works 6 hours + share of 1 hour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Day 2&lt;/P&gt;&lt;P&gt;Person 1 - works 4 hours + share of 30mins&lt;/P&gt;&lt;P&gt;Person 2 - works 6 hours + share of 30mins&lt;/P&gt;&lt;P&gt;Person 3 - works 4 hours + share of 30mins&lt;/P&gt;&lt;P&gt;Person 4 - works 5 hours + share of 30mins&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I write this formula, either in the script or as part of the expression? Remembering that the user may decide to filter on day 1 and day 2 at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A graph selecting day 1 and 2 would show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Person 1 - worked 9 hours + share of 1 hour 30 mins&lt;/P&gt;&lt;P&gt;Person 2 - worked 12 hours + share of 1 hour 30 mins&lt;/P&gt;&lt;P&gt;Person 3 - worked 4 hours + share of 30 mins&lt;/P&gt;&lt;P&gt;Person 4 - worked 5 hours + share of 30 mins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 12:24:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-07T12:24:49Z</dc:date>
    <item>
      <title>expression to ignore dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672036#M1057965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an expression that will ignore the dimensions on the graph but will apply the same amount to each dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of names and the hours which they have worked. I would like to apply a share of 2 hours to each employee that has worked. This share should be applied daily and the number of employees working might change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example - I have Date, Name Fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Day1&lt;/P&gt;&lt;P&gt;Person 1 - works 5 hours + share of 1 hour&lt;/P&gt;&lt;P&gt;Person 2 - works 6 hours + share of 1 hour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Day 2&lt;/P&gt;&lt;P&gt;Person 1 - works 4 hours + share of 30mins&lt;/P&gt;&lt;P&gt;Person 2 - works 6 hours + share of 30mins&lt;/P&gt;&lt;P&gt;Person 3 - works 4 hours + share of 30mins&lt;/P&gt;&lt;P&gt;Person 4 - works 5 hours + share of 30mins&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I write this formula, either in the script or as part of the expression? Remembering that the user may decide to filter on day 1 and day 2 at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A graph selecting day 1 and 2 would show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Person 1 - worked 9 hours + share of 1 hour 30 mins&lt;/P&gt;&lt;P&gt;Person 2 - worked 12 hours + share of 1 hour 30 mins&lt;/P&gt;&lt;P&gt;Person 3 - worked 4 hours + share of 30 mins&lt;/P&gt;&lt;P&gt;Person 4 - worked 5 hours + share of 30 mins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 12:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672036#M1057965</guid>
      <dc:creator />
      <dc:date>2014-10-07T12:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: expression to ignore dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672037#M1057966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be easier if you post some data or qvw as example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 17:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672037#M1057966</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-10-07T17:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: expression to ignore dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672038#M1057967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_136719_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68459_QlikCommunity_Thread_136719_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14127205530755308" jivemacro_uid="_14127205530755308"&gt;
&lt;P&gt;SET vTotalShare = Interval#('02', 'hh');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabData:&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;Day, Person, Work&lt;/P&gt;
&lt;P&gt;1,1,05:00&lt;/P&gt;
&lt;P&gt;1,2,06:00&lt;/P&gt;
&lt;P&gt;2,1,04:00&lt;/P&gt;
&lt;P&gt;2,2,06:00&lt;/P&gt;
&lt;P&gt;2,3,04:00&lt;/P&gt;
&lt;P&gt;2,4,05:00&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join&lt;/P&gt;
&lt;P&gt;LOAD Day,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval($(vTotalShare)/Count(DISTINCT Person)) as Share&lt;/P&gt;
&lt;P&gt;Resident tabData&lt;/P&gt;
&lt;P&gt;Group By Day;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 22:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672038#M1057967</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-07T22:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: expression to ignore dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672039#M1057968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some test data here - sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would want to add a share of 2 hours to the people that worked on the 5 days given on the graph. The share would be depended upon who has worked on which day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 07:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-ignore-dimensions/m-p/672039#M1057968</guid>
      <dc:creator />
      <dc:date>2014-10-08T07:46:12Z</dc:date>
    </item>
  </channel>
</rss>

