<?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 Workaround to evaluate condition at row level in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Workaround-to-evaluate-condition-at-row-level/m-p/2128873#M91819</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have to calculate in a table the total amount of purchases made by customers who have placed an order for at least 2 different types of product.&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;YearMonth&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;# Customers multi product type&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;STRONG&gt;Sum of purchases&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2023-01&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;50&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;300€&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2023-02&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;45&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;400€&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2023-03&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;70&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;290€&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I know that Set Analysis is evaluated only once when calculating the chart values and as a workaround for the number f customers I used:&lt;/P&gt;
&lt;P&gt;Count( distinct {&amp;lt;[Flag Buyer] = {'1'}&amp;gt;}&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;IF(&lt;BR /&gt;aggr(count(distinct {&amp;lt;[Flag Buyer] = {'1'}&amp;gt;} [Product Type])&lt;BR /&gt;,[Customer ID],YearMonth)&lt;BR /&gt;&amp;gt;1&lt;BR /&gt;,[Customer ID])&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;I can't find a way to obtain the Sum of purchases of only these customers.&lt;/P&gt;
&lt;P&gt;How can I obtain the result?&lt;/P&gt;
&lt;P&gt;Thanks in advance for any advice&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Davide&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 14:55:31 GMT</pubDate>
    <dc:creator>Defo</dc:creator>
    <dc:date>2023-10-16T14:55:31Z</dc:date>
    <item>
      <title>Workaround to evaluate condition at row level</title>
      <link>https://community.qlik.com/t5/App-Development/Workaround-to-evaluate-condition-at-row-level/m-p/2128873#M91819</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have to calculate in a table the total amount of purchases made by customers who have placed an order for at least 2 different types of product.&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;YearMonth&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;# Customers multi product type&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;STRONG&gt;Sum of purchases&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2023-01&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;50&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;300€&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2023-02&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;45&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;400€&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2023-03&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;70&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;290€&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I know that Set Analysis is evaluated only once when calculating the chart values and as a workaround for the number f customers I used:&lt;/P&gt;
&lt;P&gt;Count( distinct {&amp;lt;[Flag Buyer] = {'1'}&amp;gt;}&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;IF(&lt;BR /&gt;aggr(count(distinct {&amp;lt;[Flag Buyer] = {'1'}&amp;gt;} [Product Type])&lt;BR /&gt;,[Customer ID],YearMonth)&lt;BR /&gt;&amp;gt;1&lt;BR /&gt;,[Customer ID])&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;I can't find a way to obtain the Sum of purchases of only these customers.&lt;/P&gt;
&lt;P&gt;How can I obtain the result?&lt;/P&gt;
&lt;P&gt;Thanks in advance for any advice&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Davide&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 14:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Workaround-to-evaluate-condition-at-row-level/m-p/2128873#M91819</guid>
      <dc:creator>Defo</dc:creator>
      <dc:date>2023-10-16T14:55:31Z</dc:date>
    </item>
  </channel>
</rss>

