<?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 Combine two measures with conditions in AGGR function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Combine-two-measures-with-conditions-in-AGGR-function/m-p/1907225#M74771</link>
    <description>&lt;P&gt;This does not work&lt;/P&gt;
&lt;P&gt;Aggr(RangeAvg([Debit SE Score],({&amp;lt;[Debit-IHC IND]={'1'}&amp;gt;} [Credit SE Score])), Segment)&lt;/P&gt;
&lt;P&gt;I need to aggregate all [Debit SE Score] and only&amp;nbsp; [Credit SE Score] where&amp;nbsp;[Debit-IHC IND] is true.&amp;nbsp; The value of the 2 measures should sum and display by "Segment"&lt;/P&gt;
&lt;P&gt;These 2 lines of code work separately, but I need to combine the aggregated average&lt;/P&gt;
&lt;P&gt;Aggr(Avg([Debit SE Score]), Segment)&lt;/P&gt;
&lt;P&gt;Aggr(Avg({&amp;lt;[Debit-IHC IND]={'1'}&amp;gt;} [Credit SE Score]), Segment)&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 23:43:15 GMT</pubDate>
    <dc:creator>msshawn3019</dc:creator>
    <dc:date>2022-03-18T23:43:15Z</dc:date>
    <item>
      <title>Combine two measures with conditions in AGGR function</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-two-measures-with-conditions-in-AGGR-function/m-p/1907225#M74771</link>
      <description>&lt;P&gt;This does not work&lt;/P&gt;
&lt;P&gt;Aggr(RangeAvg([Debit SE Score],({&amp;lt;[Debit-IHC IND]={'1'}&amp;gt;} [Credit SE Score])), Segment)&lt;/P&gt;
&lt;P&gt;I need to aggregate all [Debit SE Score] and only&amp;nbsp; [Credit SE Score] where&amp;nbsp;[Debit-IHC IND] is true.&amp;nbsp; The value of the 2 measures should sum and display by "Segment"&lt;/P&gt;
&lt;P&gt;These 2 lines of code work separately, but I need to combine the aggregated average&lt;/P&gt;
&lt;P&gt;Aggr(Avg([Debit SE Score]), Segment)&lt;/P&gt;
&lt;P&gt;Aggr(Avg({&amp;lt;[Debit-IHC IND]={'1'}&amp;gt;} [Credit SE Score]), Segment)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 23:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-two-measures-with-conditions-in-AGGR-function/m-p/1907225#M74771</guid>
      <dc:creator>msshawn3019</dc:creator>
      <dc:date>2022-03-18T23:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two measures with conditions in AGGR function</title>
      <link>https://community.qlik.com/t5/App-Development/Combine-two-measures-with-conditions-in-AGGR-function/m-p/1907228#M74772</link>
      <description>&lt;P&gt;I've self-resolved this... hope it helps someone.&amp;nbsp; Place RangeAvg around the 2 Aggr functions.&lt;/P&gt;
&lt;P&gt;RangeAvg(&lt;/P&gt;
&lt;P&gt;Aggr(Avg({&amp;lt;[Debit-IHC IND]={'1'}&amp;gt;} [Credit SE Score]), Segment),&lt;/P&gt;
&lt;P&gt;Aggr(Avg([Debit SE Score]), Segment))&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 00:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combine-two-measures-with-conditions-in-AGGR-function/m-p/1907228#M74772</guid>
      <dc:creator>msshawn3019</dc:creator>
      <dc:date>2022-03-19T00:40:55Z</dc:date>
    </item>
  </channel>
</rss>

