<?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 Issue with set analysis expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-set-analysis-expression/m-p/1629012#M46820</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table chart in one of the dashboard, and data is as below:-&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;TD&gt;Invoice&lt;/TD&gt;&lt;TD&gt;usage&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;level&lt;/TD&gt;&lt;TD&gt;Qty On Hand&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xyz1&lt;/TD&gt;&lt;TD&gt;Daniel&lt;/TD&gt;&lt;TD&gt;abcd0847&lt;/TD&gt;&lt;TD&gt;Normal&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xyz1&lt;/TD&gt;&lt;TD&gt;Daniel&lt;/TD&gt;&lt;TD&gt;abcd1454&lt;/TD&gt;&lt;TD&gt;Normal&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xyz1&lt;/TD&gt;&lt;TD&gt;Daniel&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have to colour code the measure column(Qty On Hand), based on the condition and codition is as below:-&lt;/P&gt;&lt;P&gt;I need to sum Qty on Hand for product / Customer and if the total is greater than the Level column&lt;/P&gt;&lt;P&gt;then it is Blue.Here the level&amp;nbsp; column is on the per&amp;nbsp; invoice line so we would need to AVG the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for ex:- if sum(Qty on Hand )&amp;gt; Level, it means&amp;nbsp; (2&amp;gt;1) so it should be blue&lt;/P&gt;&lt;P&gt;Plesae suggest, how to write expression for this.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 20:43:45 GMT</pubDate>
    <dc:creator>abc_18</dc:creator>
    <dc:date>2021-12-21T20:43:45Z</dc:date>
    <item>
      <title>Issue with set analysis expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-set-analysis-expression/m-p/1629012#M46820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table chart in one of the dashboard, and data is as below:-&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;TD&gt;Invoice&lt;/TD&gt;&lt;TD&gt;usage&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;level&lt;/TD&gt;&lt;TD&gt;Qty On Hand&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xyz1&lt;/TD&gt;&lt;TD&gt;Daniel&lt;/TD&gt;&lt;TD&gt;abcd0847&lt;/TD&gt;&lt;TD&gt;Normal&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xyz1&lt;/TD&gt;&lt;TD&gt;Daniel&lt;/TD&gt;&lt;TD&gt;abcd1454&lt;/TD&gt;&lt;TD&gt;Normal&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xyz1&lt;/TD&gt;&lt;TD&gt;Daniel&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have to colour code the measure column(Qty On Hand), based on the condition and codition is as below:-&lt;/P&gt;&lt;P&gt;I need to sum Qty on Hand for product / Customer and if the total is greater than the Level column&lt;/P&gt;&lt;P&gt;then it is Blue.Here the level&amp;nbsp; column is on the per&amp;nbsp; invoice line so we would need to AVG the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for ex:- if sum(Qty on Hand )&amp;gt; Level, it means&amp;nbsp; (2&amp;gt;1) so it should be blue&lt;/P&gt;&lt;P&gt;Plesae suggest, how to write expression for this.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 20:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-set-analysis-expression/m-p/1629012#M46820</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2021-12-21T20:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with set analysis expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-set-analysis-expression/m-p/1629063#M46824</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if( sum( TOTAL &amp;lt;Customer&amp;gt; [Qty on Hand] ) &amp;gt; only(level), Blue(), Red())&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 12:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-set-analysis-expression/m-p/1629063#M46824</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-27T12:47:06Z</dc:date>
    </item>
  </channel>
</rss>

