<?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: If Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385683#M805896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you have only one value possible in the field epic_cf_estimated_aum based on your selections, I would use some aggregation function like Sum() or even Only() like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Money(If(&lt;STRONG&gt;Sum(&lt;/STRONG&gt;epic_cf_estimated_aum&lt;STRONG&gt;)&lt;/STRONG&gt; = 1000000000 AND epic_issue_type = 'Epic' AND project_name &amp;lt;&amp;gt; 'PMO Test' AND project_name &amp;lt;&amp;gt; 'PMO IMS Pipeline' AND epic_status &amp;lt;&amp;gt; 'Not Required' AND epic_status &amp;lt;&amp;gt; 'Done', Sum(epic_cf_estimated_aum), '$ #,##') / 1000000000 &amp;amp; 'B'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise there will be multiple values possible for epic_cf_estimated_aum and the condition will never be met. Additionally, must the value be identical, and not greater than or equal to 1000000000 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to add a set analysis right after the Sum( to further narrow down the query, or give a try at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Money(&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; epic_issue_type = {'Epic'}, project_name -= {'PMO Test','PMO IMS Pipeline'}, epic_status -= {'Note Required','Done'} epic_cf_estimated_aum = {"&amp;gt;=1000000000"} &amp;gt;} epic_cf_estimated_aum)&lt;/P&gt;&lt;P&gt;, '$#,##') / 1000000000 &amp;amp; 'B'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 13:49:13 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2017-10-31T13:49:13Z</dc:date>
    <item>
      <title>If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385682#M805895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General question: How do you incorporate ((epic_cf_estimated_aum)&amp;nbsp; = (a billion)) into my equation. Below is what i have tried to get it to work. I am trying to build a dynamic text box so I am going to eventually set &lt;SPAN style="font-size: 13.3333px;"&gt;epic_cf_estimated_aum equal to (a thousand, a million, and a trillion).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Money(if(epic_cf_estimated_aum = (a billion) and epic_issue_type='Epic' and project_name&amp;lt;&amp;gt;'PMO Test' and project_name&amp;lt;&amp;gt;'PMO IMS Pipeline' and epic_status&amp;lt;&amp;gt;'Not Required' and epic_status&amp;lt;&amp;gt;'Done', Sum(epic_cf_estimated_aum), '$ #,##')/1000000000 &amp;amp; 'B',&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/If-Statement/m-p/1385682#M805895</guid>
      <dc:creator>mparker123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385683#M805896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you have only one value possible in the field epic_cf_estimated_aum based on your selections, I would use some aggregation function like Sum() or even Only() like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Money(If(&lt;STRONG&gt;Sum(&lt;/STRONG&gt;epic_cf_estimated_aum&lt;STRONG&gt;)&lt;/STRONG&gt; = 1000000000 AND epic_issue_type = 'Epic' AND project_name &amp;lt;&amp;gt; 'PMO Test' AND project_name &amp;lt;&amp;gt; 'PMO IMS Pipeline' AND epic_status &amp;lt;&amp;gt; 'Not Required' AND epic_status &amp;lt;&amp;gt; 'Done', Sum(epic_cf_estimated_aum), '$ #,##') / 1000000000 &amp;amp; 'B'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise there will be multiple values possible for epic_cf_estimated_aum and the condition will never be met. Additionally, must the value be identical, and not greater than or equal to 1000000000 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to add a set analysis right after the Sum( to further narrow down the query, or give a try at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Money(&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; epic_issue_type = {'Epic'}, project_name -= {'PMO Test','PMO IMS Pipeline'}, epic_status -= {'Note Required','Done'} epic_cf_estimated_aum = {"&amp;gt;=1000000000"} &amp;gt;} epic_cf_estimated_aum)&lt;/P&gt;&lt;P&gt;, '$#,##') / 1000000000 &amp;amp; 'B'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 13:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385683#M805896</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-10-31T13:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385684#M805897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it would be a range. So &amp;gt;=1,000,000,000 and &amp;lt;=999,999,999,999 for billions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385684#M805897</guid>
      <dc:creator>mparker123</dc:creator>
      <dc:date>2017-10-31T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385685#M805898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then replace in the first expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Money(If(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;epic_cf_estimated_aum&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = 1000000000 &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: 13px;"&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: 13px;"&gt;by &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: 13px;"&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: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Money(If(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;epic_cf_estimated_aum&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &amp;gt;= 1000000000 AND &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;epic_cf_estimated_aum&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &amp;lt;= 9999999999&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And similarly in the second expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;epic_cf_estimated_aum = {"&amp;gt;=1000000000"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;by&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, epic_cf_estimated_aum = {"&amp;gt;=1000000000&amp;lt;=9999999999"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(missing comma before the name of the field)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385685#M805898</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-10-31T14:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385686#M805899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The equations don't seem to work. Am I suppose to use both the if statement and the set analysis in the expression or just one or the other?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 15:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385686#M805899</guid>
      <dc:creator>mparker123</dc:creator>
      <dc:date>2017-10-31T15:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385687#M805900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either or. I used the set analysis in case it simplifies (I avoid the use of If() statements in expressions unless it is technically not possible otherwise).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of your expression is correct, but depending on your datamodel, other expressions could work better, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(epic_cf_estimated_aum &amp;gt;= 1000000000 AND epic_cf_estimated_aum &amp;lt;= 9999999999, epic_cf_estimated_aum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, start with a simpler version of the expression, like the line above, and add more conditions once you see it works.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Perhaps if you upload an example QVW with some data to play with we can give you a more accurate reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 15:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385687#M805900</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-10-31T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385688#M805901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a mocked up Qlikview and excel file. So what I would like to see is if I update AUM on the excel file to equal thousands, millions, billions, or trillions it will automatically adjust and it will display the proper symbol (K, M, B, T). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 16:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385688#M805901</guid>
      <dc:creator>mparker123</dc:creator>
      <dc:date>2017-10-31T16:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385689#M805902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use the length of the value -or the value itself- as a flag for the symbol in the load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In charts you can do this using the Properties &amp;gt; Number tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a text object you would need anyway to use a dynamic expression using Pick() and Match(), for example, or a nested If(), see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 17:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1385689#M805902</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-10-31T17:30:52Z</dc:date>
    </item>
  </channel>
</rss>

