<?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: need help with straight table calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418790#M155790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/swuehl" id="jive-1582320883165235213496" onmouseout="" onmouseover=""&gt;swuehl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I updated with qvw. &lt;/P&gt;&lt;P&gt;Thanks for looking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2013 14:03:07 GMT</pubDate>
    <dc:creator>alexpanjhc</dc:creator>
    <dc:date>2013-05-02T14:03:07Z</dc:date>
    <item>
      <title>need help with straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418787#M155787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to calculate the average utilization rate for each level.&lt;/P&gt;&lt;P&gt;I calculated the worked hours, and standard hours, However, in the standard hours I calculated if worked hours is 0, then the standard hour is zero too,&lt;/P&gt;&lt;P&gt;work and standard hours are Ok so is utilization rate.&lt;/P&gt;&lt;P&gt;The problem is the Average utilization &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my expression under average utilzation for level:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(total &amp;lt;level&amp;gt; worked_hours)&lt;/P&gt;&lt;P&gt;/sum( total &amp;lt;level&amp;gt; if (column(1)=0,0, std_hrs))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;standar hour is:(the reason I use column(1) is because the worked hour has a big calculation, I do not want to bring in)&lt;/P&gt;&lt;P&gt;if (column(1)=0,0, std_hrs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I am expecting to get the correct average rate, but it is not correct. It is still adding up standard hours for those whose working hours are zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe someone can tell me what I am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS, I do not want to suppress these employees in the chart. I updated&amp;nbsp; with my qvw. &lt;/P&gt;&lt;P&gt;Thanks for helping!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 22:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418787#M155787</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2013-05-01T22:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: need help with straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418788#M155788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can reference column(1) like this in your context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume (and it would make things much easier if you could post a small sample or describe your chart settings a bit more complete (how many / what dimensions and definition of your expressions) ) you are using one dimension level, so try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum(total&amp;lt;level&amp;gt; worked_hours)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;/ sum({&amp;lt;level = {"=sum(worked_hours)&amp;gt;0"}&amp;gt;} total&amp;lt;level&amp;gt; std_hrs)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 22:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418788#M155788</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-01T22:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: need help with straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418789#M155789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks for looking at his!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a bigger picture of what I am doing.&lt;/P&gt;&lt;P&gt;Let me think of how to get a smaller sample to get a qvw.But here are some of the key components&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;Level, Employee, Hire Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;worked hours:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Module&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'FEE'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Client Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Billable','Other Billing'},&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Trans Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'&amp;gt;=$(=vStart)&amp;lt;$(=Addmonths( date(vStart), num(Interval)))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;W_Hours&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Standard hours:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1)=0,0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StartSelection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'&amp;gt;=$(=vStart)&amp;lt;$(=Addmonths( date(vStart), num(Interval)))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STD_Hrs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Utilzation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Module&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'FEE'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Client Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Billable','Other Billing'},&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Trans Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'&amp;gt;=$(=vStart)&amp;lt;$(=Addmonths( date(vStart), num(Interval)))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;W_Hours&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1)=0,0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StartSelection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'&amp;gt;=$(=vStart)&amp;lt;$(=Addmonths( date(vStart), num(Interval)))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STD_Hrs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 23:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418789#M155789</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2013-05-01T23:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: need help with straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418790#M155790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/swuehl" id="jive-1582320883165235213496" onmouseout="" onmouseover=""&gt;swuehl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I updated with qvw. &lt;/P&gt;&lt;P&gt;Thanks for looking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 14:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-straight-table-calculation/m-p/418790#M155790</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2013-05-02T14:03:07Z</dc:date>
    </item>
  </channel>
</rss>

