<?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 Average measure per row in pivot table (Background Color Expression) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-measure-per-row-in-pivot-table-Background-Color/m-p/1695416#M53172</link>
    <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The objective here is to color background depending on the average measure per row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My pivot table is the following:&lt;/P&gt;&lt;P&gt;row = [Activity L3]&lt;/P&gt;&lt;P&gt;Column= [Location (Site)]&lt;/P&gt;&lt;P&gt;Measure= Count(Workbook)/Count(distinct(User ID))&amp;nbsp;&lt;/P&gt;&lt;P&gt;*each activity has certain Workbooks assigned. Workbooks are visited by Users.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="torraroger_0-1587494063859.png" style="width: 821px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32220i7EB92F2F72EAC20E/image-dimensions/821x158?v=v2" width="821" height="158" role="button" title="torraroger_0-1587494063859.png" alt="torraroger_0-1587494063859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need an expression to do the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Per each row, color background Green() when the measure is bigger than the average total average of the row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following with no success:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Aggr(Count(Workbook)/Count(DISTINCT([User ID])), [Activity L3], [Location (site)])&amp;gt;=&lt;BR /&gt;Avg(Aggr(Count(Workbook)/Count(DISTINCT([User ID])),[Location (site)],)), Green(), Red())&lt;/P&gt;&lt;P&gt;Any help would be great!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:45:16 GMT</pubDate>
    <dc:creator>torraroger</dc:creator>
    <dc:date>2024-11-16T18:45:16Z</dc:date>
    <item>
      <title>Average measure per row in pivot table (Background Color Expression)</title>
      <link>https://community.qlik.com/t5/App-Development/Average-measure-per-row-in-pivot-table-Background-Color/m-p/1695416#M53172</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The objective here is to color background depending on the average measure per row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My pivot table is the following:&lt;/P&gt;&lt;P&gt;row = [Activity L3]&lt;/P&gt;&lt;P&gt;Column= [Location (Site)]&lt;/P&gt;&lt;P&gt;Measure= Count(Workbook)/Count(distinct(User ID))&amp;nbsp;&lt;/P&gt;&lt;P&gt;*each activity has certain Workbooks assigned. Workbooks are visited by Users.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="torraroger_0-1587494063859.png" style="width: 821px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32220i7EB92F2F72EAC20E/image-dimensions/821x158?v=v2" width="821" height="158" role="button" title="torraroger_0-1587494063859.png" alt="torraroger_0-1587494063859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need an expression to do the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Per each row, color background Green() when the measure is bigger than the average total average of the row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following with no success:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Aggr(Count(Workbook)/Count(DISTINCT([User ID])), [Activity L3], [Location (site)])&amp;gt;=&lt;BR /&gt;Avg(Aggr(Count(Workbook)/Count(DISTINCT([User ID])),[Location (site)],)), Green(), Red())&lt;/P&gt;&lt;P&gt;Any help would be great!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-measure-per-row-in-pivot-table-Background-Color/m-p/1695416#M53172</guid>
      <dc:creator>torraroger</dc:creator>
      <dc:date>2024-11-16T18:45:16Z</dc:date>
    </item>
  </channel>
</rss>

