<?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: Set Analysis with If Statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-If-Statements/m-p/129384#M457676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to me that your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vMaxMonth variable is only being evaluated when you select a value on the Sale_Month field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Can you share a screenshot or the app to see what's going on?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;If you have named the expression, remove the name and hover the mouse over the expression to check what's the outcome of your expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2018 11:58:17 GMT</pubDate>
    <dc:creator>felipedl</dc:creator>
    <dc:date>2018-09-17T11:58:17Z</dc:date>
    <item>
      <title>Set Analysis with If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-If-Statements/m-p/129383#M457675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikkers I am struggling with this situation and I was hoping if you can help me out.&lt;/P&gt;&lt;P&gt;I have a pivot table that I want to pull those records with below conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) if the sales by Region &amp;gt;= 1 mil or if Q_sold &amp;gt;=50K&lt;/P&gt;&lt;P&gt;2) if the Rate for max month is &amp;gt;=1% at merchandise level &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the hierarchy of data:&lt;/P&gt;&lt;P&gt;Region, Country, Sale_Month, State, Merchandise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condition 1) is to be fullfilled at Region level and 2) at Merchandise level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have it somewhat working by having 5 dim:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dim1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; calc. dimension as-----&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="font-size: 10pt;"&gt;(aggr(sum(Sales)&amp;gt;=1000000,Region)or(aggr(sum(Q_Sold)&amp;gt;=50000,Region)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)),aggr( if(sum({$&amp;lt;Sale_Month={'$(vMaxMonth)'}&amp;gt;}Sales_per)/sum({$&amp;lt;Sale_Month={'$(vMaxMonth)'}&amp;gt;}Sales_Total)&lt;/P&gt;&lt;P&gt;&amp;gt;=0.01,Region), Region))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dim2)&lt;/STRONG&gt;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dim3)&lt;/STRONG&gt; Sale_Month&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dim4)&lt;/STRONG&gt; State&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dim5)&lt;/STRONG&gt; Merchandise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression I have:&lt;/P&gt;&lt;P&gt;if(sum({$&amp;lt;Sale_Month={'$(vMaxMonth)'}&amp;gt;}Sales_per)/sum({$&amp;lt;Sale_Month={'$(vMaxMonth)'}&amp;gt;}Sales_Total)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;=0.01,sum({$&amp;lt;Sale_Month={'$(vMaxMonth)'}&amp;gt;}Sales_per)/sum({$&amp;lt;Sale_Month={'$(vMaxMonth)'}&amp;gt;}Sales_Total))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;all is well &lt;STRONG&gt;but the problem is this pivot table only works whne I select values in my Sale_Month List Box&lt;/STRONG&gt;. if I clear all, the table is blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;how to fix this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 21:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-If-Statements/m-p/129383#M457675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-14T21:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-If-Statements/m-p/129384#M457676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to me that your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vMaxMonth variable is only being evaluated when you select a value on the Sale_Month field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Can you share a screenshot or the app to see what's going on?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;If you have named the expression, remove the name and hover the mouse over the expression to check what's the outcome of your expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 11:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-If-Statements/m-p/129384#M457676</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-09-17T11:58:17Z</dc:date>
    </item>
  </channel>
</rss>

