<?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 Find Average in Bar Chart that uses Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-Average-in-Bar-Chart-that-uses-Expression/m-p/1957280#M1219957</link>
    <description>&lt;P&gt;I have the following measure that is used in a bar chart to show a monthly efficiency percentage:&lt;/P&gt;
&lt;P&gt;//sum all running core resources&lt;BR /&gt;Sum( {&amp;lt; [Resource Code]={'Running / Iterations'}&lt;BR /&gt;, [Resource Category]={'Core'}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Quantity_Adj&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;(( Count(Distinct Day([Previous Date Time]))&lt;BR /&gt;* 24 //multiply by 24, hours per day in the mongh&lt;BR /&gt;* Count( {&amp;lt;[Resource Category]={'Core'}&amp;gt;}&lt;BR /&gt;Distinct Resource&lt;BR /&gt;) //for core resources only&lt;BR /&gt;)&lt;BR /&gt;-&lt;BR /&gt;Sum( {&amp;lt; [Resource Code]={ 'No Samples / Support Parts'&lt;BR /&gt;, 'No Project'&lt;BR /&gt;, 'Holiday'&lt;BR /&gt;, 'Calibration Parts / Project'&lt;BR /&gt;, 'No Power'&lt;BR /&gt;, 'Development'&lt;BR /&gt;, 'Maintenance Parts / Project'&lt;BR /&gt;} //subtract all codes that are out of our control&lt;BR /&gt;, [Resource Category]={'Core'} //for core resources only&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Quantity_Adj&lt;BR /&gt;))&lt;/P&gt;
&lt;P&gt;I need to display the YTD average of this expression output, but it will not work because of this part of the expression:&lt;/P&gt;
&lt;P&gt;(( Count(Distinct Day([Previous Date Time]))&lt;BR /&gt;* 24 //multiply by 24, hours per day in the month&lt;BR /&gt;* Count( {&amp;lt;[Resource Category]={'Core'}&amp;gt;}&lt;BR /&gt;Distinct Resource&lt;BR /&gt;) //for core resources only&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;How can I calculate the average?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2022 18:01:21 GMT</pubDate>
    <dc:creator>CTait</dc:creator>
    <dc:date>2022-07-18T18:01:21Z</dc:date>
    <item>
      <title>Find Average in Bar Chart that uses Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Average-in-Bar-Chart-that-uses-Expression/m-p/1957280#M1219957</link>
      <description>&lt;P&gt;I have the following measure that is used in a bar chart to show a monthly efficiency percentage:&lt;/P&gt;
&lt;P&gt;//sum all running core resources&lt;BR /&gt;Sum( {&amp;lt; [Resource Code]={'Running / Iterations'}&lt;BR /&gt;, [Resource Category]={'Core'}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Quantity_Adj&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;(( Count(Distinct Day([Previous Date Time]))&lt;BR /&gt;* 24 //multiply by 24, hours per day in the mongh&lt;BR /&gt;* Count( {&amp;lt;[Resource Category]={'Core'}&amp;gt;}&lt;BR /&gt;Distinct Resource&lt;BR /&gt;) //for core resources only&lt;BR /&gt;)&lt;BR /&gt;-&lt;BR /&gt;Sum( {&amp;lt; [Resource Code]={ 'No Samples / Support Parts'&lt;BR /&gt;, 'No Project'&lt;BR /&gt;, 'Holiday'&lt;BR /&gt;, 'Calibration Parts / Project'&lt;BR /&gt;, 'No Power'&lt;BR /&gt;, 'Development'&lt;BR /&gt;, 'Maintenance Parts / Project'&lt;BR /&gt;} //subtract all codes that are out of our control&lt;BR /&gt;, [Resource Category]={'Core'} //for core resources only&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Quantity_Adj&lt;BR /&gt;))&lt;/P&gt;
&lt;P&gt;I need to display the YTD average of this expression output, but it will not work because of this part of the expression:&lt;/P&gt;
&lt;P&gt;(( Count(Distinct Day([Previous Date Time]))&lt;BR /&gt;* 24 //multiply by 24, hours per day in the month&lt;BR /&gt;* Count( {&amp;lt;[Resource Category]={'Core'}&amp;gt;}&lt;BR /&gt;Distinct Resource&lt;BR /&gt;) //for core resources only&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;How can I calculate the average?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 18:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Average-in-Bar-Chart-that-uses-Expression/m-p/1957280#M1219957</guid>
      <dc:creator>CTait</dc:creator>
      <dc:date>2022-07-18T18:01:21Z</dc:date>
    </item>
  </channel>
</rss>

