<?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 then else returning conflciting results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119658#M891585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in an expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2016 16:12:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-16T16:12:40Z</dc:date>
    <item>
      <title>if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119656#M891581</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;I have created an if then else statement as below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Template Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Revenue Target Value]&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;the stamenet looks at the first day of the month(01/08.2016) and picks the matching template date(there are lots) and should return the target value record.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However, it returns -&amp;nbsp; for all records that have template date records of 01/01/2016, 01/02/2016 etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If I change the if then else statement to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Template Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 1, 0) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;it display a 1 for all records were the month start = the max template date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hence it would sugges there is an issue around the revenue target value field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I'm lost&lt;/SPAN&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/if-then-else-returning-conflciting-results/m-p/1119656#M891581</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119657#M891583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where exactly are you using this if statement? Expression or dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119657#M891583</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-16T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119658#M891585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in an expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119658#M891585</guid>
      <dc:creator />
      <dc:date>2016-08-16T16:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119659#M891587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible there are multiple values per dimension? Try this and see if you get multiple values or just one value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(DISTINCT if (monthstart(today())= Max([Template Date]), [Revenue Target Value]), ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get multiple values, how do you want to view them? Sum them, Avg them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119659#M891587</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-16T16:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119660#M891589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did I add this as an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Adlard&lt;/P&gt;&lt;P&gt;Reporting Manager&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excelsior Technologies Ltd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DDI:    01244 833237&lt;/P&gt;&lt;P&gt;Main:   01244 833230&lt;/P&gt;&lt;P&gt;Fax:    01244 833231&lt;/P&gt;&lt;P&gt;Email:  DavidAdlard@exceltechuk.com&amp;lt;mailto:DavidAdlard@exceltechuk.com&amp;gt;&lt;/P&gt;&lt;P&gt;Twitter:        @exceltech_uk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;http://www.exceltechuk.com/images/excelsior-logo.gif&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Please consider the environment before printing this email message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disclaimer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This message contains confidential information and is intended only for the named recipients. If you are not a valid recipient you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.&lt;/P&gt;&lt;P&gt;Excelsior Technologies Ltd is a limited company registered in England and Wales. Registered number: 05188170. Registered office: Parkway, Deeside Industrial Park, Deeside, Flintshire, CH5 2NS, United Kingdom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119660#M891589</guid>
      <dc:creator />
      <dc:date>2016-08-16T16:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119661#M891591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119661#M891591</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-16T16:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119662#M891593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get an error saying&lt;/P&gt;&lt;P&gt;error in expression: nested aggregation not allowed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119662#M891593</guid>
      <dc:creator />
      <dc:date>2016-08-16T16:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119663#M891594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is right. You have a max in there. I totally overlooked that. What is your chart dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119663#M891594</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-16T16:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119664#M891595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;customer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119664#M891595</guid>
      <dc:creator />
      <dc:date>2016-08-16T16:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119665#M891596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Try this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(DISTINCT Aggr(I&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;f(MonthStart(Today()) = Max([Template Date]), [Revenue Target Value]), Customer), ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119665#M891596</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-16T16:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119666#M891597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119666#M891597</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2016-08-16T16:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119667#M891598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;getting the same results. Only the records with no historical data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119667#M891598</guid>
      <dc:creator />
      <dc:date>2016-08-16T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119668#M891599</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;thanks for getting in touch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What data do you want and how do I get I to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119668#M891599</guid>
      <dc:creator />
      <dc:date>2016-08-16T16:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119669#M891600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you put some sample data i an qvw with your expression and logic and atatch it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 19:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119669#M891600</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2016-08-16T19:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: if then else returning conflciting results</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119670#M891601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please excuse my ignorance but I don't know how to do that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 07:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-returning-conflciting-results/m-p/1119670#M891601</guid>
      <dc:creator />
      <dc:date>2016-08-17T07:11:44Z</dc:date>
    </item>
  </channel>
</rss>

