<?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: checking syntax for my expression given a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550031#M744195</link>
    <description>Try this and let us know&lt;BR /&gt;if($(vSourceFund)= 1, count({&amp;lt;Bucket = {"Source"}&amp;gt;} STATUSES),&lt;BR /&gt;if($(vSourceFund )= 2, count({&amp;lt;Bucket = {"Fund"}&amp;gt;} STATUSES),&lt;BR /&gt;count( TOTAL &amp;lt;Bucket&amp;gt; count))</description>
    <pubDate>Wed, 27 Feb 2019 17:56:46 GMT</pubDate>
    <dc:creator>sivakumar1994</dc:creator>
    <dc:date>2019-02-27T17:56:46Z</dc:date>
    <item>
      <title>checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550021#M744189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a variable with 3 buttons that should change my 2 charts based on these buttons.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Button 1: Source&lt;/P&gt;&lt;P&gt;Button 2: Fund&lt;/P&gt;&lt;P&gt;Button 3: ALL&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Chart 1:&amp;nbsp; bar graph to show me the count of statuses pending given the selection of a button&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if(vSourceFund = 1, count({&amp;lt;Bucket = {"Source"}&amp;gt;} STATUSES),&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;if(vSourceFund = 2, count({&amp;lt;Bucket = {"Fund"}&amp;gt;} STATUSES),&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;count({&amp;lt;Bucket&amp;gt; count))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I know my syntax is incorrect but I am trying to achieve the count given the buckets of Source or Fund. And if "ALL" button is selected I want it to count all the buckets. Any thoughts? Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550021#M744189</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2024-11-16T04:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550022#M744190</link>
      <description>&lt;P&gt;Do you want the graphic to make the graphics according to the selections of those buttons?&lt;BR /&gt;have you tried with an adhoc analysis?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550022#M744190</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-27T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550023#M744191</link>
      <description>&lt;P&gt;Yes, I'd like to render my charts based on my expression/syntax. Not looking for ad-hoc analysis as I am trying to make this dashboard interactive as possible.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550023#M744191</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2019-02-27T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550025#M744192</link>
      <description>Is that exactly what adhoc analysis does is to give interactivity to the graphics given that it can be assembled according to the selections made by the user both in the dimensions and in the expressions. I know how to achieve it with selectors but not with buttons</description>
      <pubDate>Wed, 27 Feb 2019 17:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550025#M744192</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-27T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550026#M744193</link>
      <description>&lt;P&gt;I see. I think more or less they both function the same but just a different way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550026#M744193</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2019-02-27T17:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550029#M744194</link>
      <description>With selectors you do not have to make modifications in the expression, you solve it with show conditional</description>
      <pubDate>Wed, 27 Feb 2019 17:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550029#M744194</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-27T17:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550031#M744195</link>
      <description>Try this and let us know&lt;BR /&gt;if($(vSourceFund)= 1, count({&amp;lt;Bucket = {"Source"}&amp;gt;} STATUSES),&lt;BR /&gt;if($(vSourceFund )= 2, count({&amp;lt;Bucket = {"Fund"}&amp;gt;} STATUSES),&lt;BR /&gt;count( TOTAL &amp;lt;Bucket&amp;gt; count))</description>
      <pubDate>Wed, 27 Feb 2019 17:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550031#M744195</guid>
      <dc:creator>sivakumar1994</dc:creator>
      <dc:date>2019-02-27T17:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550042#M744196</link>
      <description>&lt;P&gt;Thank you, I have tried but no success. My chart is not showing any data. This syntax should be working because it is exactly what I want to do. I want the count of the status for the bucket - SOURCE when it is selected on button and count of the status for the bucket - FUND when that button is selected and if else show me all - which would be the total.. This really should be working and cannot think what is the issue with this syntax..&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550042#M744196</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2019-02-27T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550049#M744197</link>
      <description>&lt;P&gt;Ok -- i figured it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if($(vSourceRequestor)= 1, count({&amp;lt;Bucket = {"Source"}&amp;gt;} STATUS),&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;count({&amp;lt;Bucket = {"FUND"}&amp;gt;} STATUS))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;When I configured my expression like this it works fine. But how do I incorporate the if else "show me all" part?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550049#M744197</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2019-02-27T18:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550057#M744198</link>
      <description>&lt;P&gt;Ok, so to update I was able to incorporate the if else part to show me 'all' which is essentially the sum of my 2 buckets of source and fund.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if($(vSourceRequestor)= 1, count({&amp;lt;Bucket = {"Source"}&amp;gt;} STATUS),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if($(vSourceRequestor)= 2, count({&amp;lt;Bucket = {"Fund"}&amp;gt;} STATUS),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count(STATUS)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;New problem that I cannot for the love of god figure out.. the if else statement of giving me the count of all the status are not matching up correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALL = bucket(Source) + bucket(Fund)&lt;/P&gt;&lt;P&gt;the status numbers are matching up except for one value 'Complete' where it is somehow adding an additional 10. The total should be 250 but it is showing as 260 when I select the 'ALL' button. I have tried excluding the null values and everything. Anyone have have idea?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550057#M744198</guid>
      <dc:creator>dreweezy</dc:creator>
      <dc:date>2019-02-27T18:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: checking syntax for my expression given a variable</title>
      <link>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550704#M744199</link>
      <description>Try this&lt;BR /&gt;&lt;BR /&gt;if($(vSourceFund)= 1, count({&amp;lt;Bucket = {"Source"}&amp;gt;} STATUSES),&lt;BR /&gt;if($(vSourceFund )= 2, count({&amp;lt;Bucket = {"Fund"}&amp;gt;} STATUSES),&lt;BR /&gt;count( {1} Bucket))</description>
      <pubDate>Thu, 28 Feb 2019 18:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/checking-syntax-for-my-expression-given-a-variable/m-p/1550704#M744199</guid>
      <dc:creator>sivakumar1994</dc:creator>
      <dc:date>2019-02-28T18:44:19Z</dc:date>
    </item>
  </channel>
</rss>

