<?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: Variables and IF statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414864#M816113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with both scripting of the variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2017 10:30:07 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2017-09-14T10:30:07Z</dc:date>
    <item>
      <title>Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414857#M816102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, Firstly I apologize, for not being able to provide sample data, because its sensitive, but i have a screenshot &lt;BR /&gt;I have a variable, which&amp;nbsp; controls the NetAmount: for example&lt;BR /&gt;IF vZweek = 500 it will show me all vendors with NetAmount below the value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My straight table is working great, but as you can see my bar chart doesn't show all values, &lt;BR /&gt;We have values in 2016 month 01, but the bar chart doesn't visualize it.&lt;/P&gt;&lt;P&gt;My dimensions in the bar chart are Month and Year.&lt;BR /&gt;My expression is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vZMonth&amp;gt;0 and vZWeek=0,&lt;/P&gt;&lt;P&gt;count(distinct if(aggr(sum(NetAmount_V),Year,Month,Vendor_Name)&amp;lt;vZMonth,aggr(sum(NetAmount_V),Year,Month,Vendor_Name))),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vZMonth=0 and vZWeek&amp;gt;0,&lt;/P&gt;&lt;P&gt;count(if(aggr(sum(NetAmount_V),Year,Month,Week,Vendor_Name)&amp;lt;=vZWeek,aggr(sum(NetAmount_V),Vendor_Name)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176519_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414857#M816102</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414858#M816103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of your formula?&lt;/P&gt;&lt;P&gt;Am not sure, whether you may combined different AGGR-sets in one formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 07:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414858#M816103</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-14T07:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414859#M816104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Dimensions tab, just check the "Show All Values" checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176527_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 07:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414859#M816104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-14T07:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414860#M816107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My purpose is to count all Vendors, who have higher NetAmount then the variable, for example if my variable is set to 1000 per month, I want my bar chart to count All Vendors who have higher than 1000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 07:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414860#M816107</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-09-14T07:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414861#M816108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is checked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 07:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414861#M816108</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-09-14T07:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414862#M816110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggest to go step by step:&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT IF(AGGR(SUM(NetAmount_V), Year, Month, Vendor_Name) &amp;gt; $(vZWeek), Vendor_Name)&lt;/P&gt;&lt;P&gt;should do in the first instance (not 100% sure, if the variable needs to be enclosed by $(..), though)&lt;/P&gt;&lt;P&gt;and check, if it works&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414862#M816110</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-14T08:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414863#M816112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope, this gives me all vendors in the chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414863#M816112</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-09-14T09:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414864#M816113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with both scripting of the variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 10:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414864#M816113</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-14T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414865#M816115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the formula, you want to count all amounts per year, month, week, vendor LOWER than vZWeek. And if they fulfill this condition, you want to count how many. Why don't you replace the last part of your formula with just '1'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vZMonth=0 and vZWeek&amp;gt;0,&lt;/P&gt;&lt;P&gt;count(if(aggr(sum(NetAmount_V),Year,Month,Week,Vendor_Name)&amp;lt;=vZWeek, 1 )).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to count all vendors with a higher amount, that it should be &amp;gt; instead of &amp;lt;=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414865#M816115</guid>
      <dc:creator>heij1421</dc:creator>
      <dc:date>2017-09-14T11:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414866#M816117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, Your solution works &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; &lt;BR /&gt;I found out how to make it work with another type of formula, but i will use yours, Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-IF-statements/m-p/1414866#M816117</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-09-14T13:28:25Z</dc:date>
    </item>
  </channel>
</rss>

