<?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 Re: Using Set Analysis with If Condition based on Dimensional Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310354#M579049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; That worked perfectly - Thanks!&amp;nbsp; I didn't realize you can do an if statement inside of an aggregation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2012 15:18:03 GMT</pubDate>
    <dc:creator>marc_wintjen</dc:creator>
    <dc:date>2012-02-23T15:18:03Z</dc:date>
    <item>
      <title>Using Set Analysis with If Condition based on Dimensional Value</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310351#M579046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi,&amp;nbsp; I'm trying to build an Expression against a 2 dimensional Chart (Year and Category) and I want to use set analysis when the Category = "Budget vs Actual" but a normal expression like "=Sum([Gross Sales])"when the Category is anything else.&amp;nbsp; The Categories are "Budget, Actual, Variance" and when I try to calculate the Set Analysis of "&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Budget'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Total Discount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Budget'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gross Sales]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 23:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310351#M579046</guid>
      <dc:creator>marc_wintjen</dc:creator>
      <dc:date>2012-02-22T23:14:16Z</dc:date>
    </item>
    <item>
      <title>Using Set Analysis with If Condition based on Dimensional Value</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310352#M579047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try with this expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(Category='Budget vs Actual',Sum([Gross Sales]), &lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;[Total Discount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(TOTAL &amp;lt;Year,Category&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Gross Sales]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Celambarasan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 04:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310352#M579047</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-23T04:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with If Condition based on Dimensional Value</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310353#M579048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi check the attach file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the discount test expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cant use set analysis because it only selects a category as catgeory is in your dimension it cant work &lt;/P&gt;&lt;P&gt; the trick is to use total in your expresssion &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 04:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310353#M579048</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-02-23T04:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with If Condition based on Dimensional Value</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310354#M579049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; That worked perfectly - Thanks!&amp;nbsp; I didn't realize you can do an if statement inside of an aggregation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 15:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-If-Condition-based-on-Dimensional-Value/m-p/310354#M579049</guid>
      <dc:creator>marc_wintjen</dc:creator>
      <dc:date>2012-02-23T15:18:03Z</dc:date>
    </item>
  </channel>
</rss>

