<?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 IF and Set Analysis expression problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-and-Set-Analysis-expression-problem/m-p/463468#M560921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of problems which I have broken down and created individual solutions but I am unable to apply them together with consistent results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I want to create a straight or pivot table that selects one field from a dimension. The Set Analysis express solution would be SUM ({$&amp;lt; [AR Group] = 'Points'}&amp;gt;} [AG Data]). Or the IF express solution would be IF([AG Group] = 'Points', 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I was trying to find a way to collapse or remove columns and rows in a pivot table. This does not seem doable.&amp;nbsp; But I can remove data by applying a conditional IF expression in a straight table and ticking 'Suppress When Value is Null':&amp;nbsp; IF (SUM ([AG Data]/[Target Data] &amp;lt; 0.6, [AG Data], IF (SUM ( [AG Data]/[Target Data] &amp;gt; 0.8, [AG Data], 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand Set Analysis does not allow conditional elements. Nor can I see how to use Add Calculated Expression in the Dimensions tab in this instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to join the two IF statements to get the desired results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 13:33:23 GMT</pubDate>
    <dc:creator>simongoodman</dc:creator>
    <dc:date>2013-04-17T13:33:23Z</dc:date>
    <item>
      <title>IF and Set Analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-Set-Analysis-expression-problem/m-p/463468#M560921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of problems which I have broken down and created individual solutions but I am unable to apply them together with consistent results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I want to create a straight or pivot table that selects one field from a dimension. The Set Analysis express solution would be SUM ({$&amp;lt; [AR Group] = 'Points'}&amp;gt;} [AG Data]). Or the IF express solution would be IF([AG Group] = 'Points', 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I was trying to find a way to collapse or remove columns and rows in a pivot table. This does not seem doable.&amp;nbsp; But I can remove data by applying a conditional IF expression in a straight table and ticking 'Suppress When Value is Null':&amp;nbsp; IF (SUM ([AG Data]/[Target Data] &amp;lt; 0.6, [AG Data], IF (SUM ( [AG Data]/[Target Data] &amp;gt; 0.8, [AG Data], 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand Set Analysis does not allow conditional elements. Nor can I see how to use Add Calculated Expression in the Dimensions tab in this instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to join the two IF statements to get the desired results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 13:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-Set-Analysis-expression-problem/m-p/463468#M560921</guid>
      <dc:creator>simongoodman</dc:creator>
      <dc:date>2013-04-17T13:33:23Z</dc:date>
    </item>
  </channel>
</rss>

