<?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 Aggregation in a If statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregation-in-a-If-statement/m-p/2425846#M96135</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am having trouble when trying to create a measure in a pivot table. It has three demensions being PU, RR_constraint then material_no.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This formula works for me when looking at the material_no layer in the pivot table but when i collaspe it .to view at the RR_constraint level the values dont add up as i beileve the if is being performed at that level.&lt;BR /&gt;if(&lt;BR /&gt;sum(Finish_Plan) = 0, sum(Finish_Plan),sum(Actuals_Countable)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried aggregating it like below at a material_no level and even include the RR_constraint field but again it showing correct values at material_no but when trying to view at the next level 0 is showing. Any idea how i could go about adjusting. I have tried multiple different ways but cant get to work. Data is basic with material_no being a varchar and others fields being decimals.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(&lt;BR /&gt;aggr(sum(Finish_Plan),material_no) = 0, aggr(sum(Finish_Plan),material_no),aggr(sum(Actuals_Countable),material_no)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 11:43:46 GMT</pubDate>
    <dc:creator>tomf122</dc:creator>
    <dc:date>2024-03-01T11:43:46Z</dc:date>
    <item>
      <title>Aggregation in a If statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-in-a-If-statement/m-p/2425846#M96135</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am having trouble when trying to create a measure in a pivot table. It has three demensions being PU, RR_constraint then material_no.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This formula works for me when looking at the material_no layer in the pivot table but when i collaspe it .to view at the RR_constraint level the values dont add up as i beileve the if is being performed at that level.&lt;BR /&gt;if(&lt;BR /&gt;sum(Finish_Plan) = 0, sum(Finish_Plan),sum(Actuals_Countable)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried aggregating it like below at a material_no level and even include the RR_constraint field but again it showing correct values at material_no but when trying to view at the next level 0 is showing. Any idea how i could go about adjusting. I have tried multiple different ways but cant get to work. Data is basic with material_no being a varchar and others fields being decimals.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(&lt;BR /&gt;aggr(sum(Finish_Plan),material_no) = 0, aggr(sum(Finish_Plan),material_no),aggr(sum(Actuals_Countable),material_no)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 11:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-in-a-If-statement/m-p/2425846#M96135</guid>
      <dc:creator>tomf122</dc:creator>
      <dc:date>2024-03-01T11:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in a If statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-in-a-If-statement/m-p/2425953#M96144</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Try to add all the fields in your aggr. formula, maybe something like :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;aggr(sum(Finish_Plan),PU, RR_constraint, material_no)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Could you share a screen of your exemple ? That would help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Antoine&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 14:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-in-a-If-statement/m-p/2425953#M96144</guid>
      <dc:creator>Antoine04</dc:creator>
      <dc:date>2024-03-01T14:13:36Z</dc:date>
    </item>
  </channel>
</rss>

