<?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: Associate Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144509#M889942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to do almost anything you want with your data in the front end. But you might also like to think doing some of the calculations as part of your script, probably during the LOAD. In this case, perhaps calculate a new field such as ExcessOvertime for hours over 75. This will make the front end design more intuitive for you and others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2016 15:40:38 GMT</pubDate>
    <dc:creator>richard_chilvers</dc:creator>
    <dc:date>2016-09-05T15:40:38Z</dc:date>
    <item>
      <title>Associate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144507#M889939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Qlikview and building just a basic understanding using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a challenge summing up some time Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking at the following information. A location, a username, a date and daily timesums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to see the sum of the hours for all hours a user is over 75 hours a month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hrs&lt;/P&gt;&lt;P&gt;Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 83&lt;/P&gt;&lt;P&gt;Sammy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 81&lt;/P&gt;&lt;P&gt;Goofy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 61&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should Result in 14 hrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a new table box and select the month, location und username&amp;nbsp; username as dimensions and create expression that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(sum([015_Hours]) &amp;gt;75, Sum([&lt;SPAN style="font-size: 13.3333px;"&gt;015_Hours&lt;/SPAN&gt;]))-75&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get a list with all usernames and the correctly calculated "overtime" But I finally need the sum of all users of one location as an expression in another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I simply add the same expression from above in a table which doesn't include the username as a dimension it will simply return the Sum of 015_hours as it will always be over 75 without the username correlation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this with a well formulated expression or do I need to calculate some sums already on the import to be able to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144507#M889939</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Associate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144508#M889941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the aggr function, like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=sum(aggr(&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;If(sum([015_Hours]) &amp;gt;75, Sum([&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #3d3d3d;"&gt;015_Hours&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;]))-75, username, month, location&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr will create a virtual table of the same expression results by username, month, location, to be used in another table context.&lt;/P&gt;&lt;P&gt;You may have to add further dimensions if they are used in your new object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 15:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144508#M889941</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-09-05T15:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Associate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144509#M889942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to do almost anything you want with your data in the front end. But you might also like to think doing some of the calculations as part of your script, probably during the LOAD. In this case, perhaps calculate a new field such as ExcessOvertime for hours over 75. This will make the front end design more intuitive for you and others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 15:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144509#M889942</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2016-09-05T15:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Associate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144510#M889944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;worked like a charm. Thx a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 12:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Associate-Data/m-p/1144510#M889944</guid>
      <dc:creator />
      <dc:date>2016-09-07T12:16:54Z</dc:date>
    </item>
  </channel>
</rss>

