<?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: Help Getting Even Number For Result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82722#M13545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;'=' in the middle might be giving syntax error - &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Odd&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CPU2&lt;/SPAN&gt;) / &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Host Name]&lt;/SPAN&gt;)), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CPU2&lt;/SPAN&gt;) / &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Host Name]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;) +1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2018 21:03:55 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2018-02-23T21:03:55Z</dc:date>
    <item>
      <title>Help Getting Even Number For Result</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82721#M13544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a little bit of help with an expression I'm trying to create that will return an Even number when the result is odd by simply adding 1 (one) to the result, otherwise, leave the result as is if it's already an even number.&amp;nbsp; For example, if the result is 3, I want to add 1 to it in order to make it 4, if result is 7 add 1 to make it 8, if result is 10, leave it as 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I'm trying but which has some type of error (guessing a syntax error) is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Odd&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;CPU2&lt;/SPAN&gt;) / &lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Host Name]&lt;/SPAN&gt;)), =&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;CPU2&lt;/SPAN&gt;) / &lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Host Name]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) +1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I think I'm close, and just missing something simple or so I hope.&amp;nbsp; As always, thanks in advance for any and all help and responses.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 21:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82721#M13544</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-02-23T21:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help Getting Even Number For Result</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82722#M13545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;'=' in the middle might be giving syntax error - &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Odd&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CPU2&lt;/SPAN&gt;) / &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Host Name]&lt;/SPAN&gt;)), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CPU2&lt;/SPAN&gt;) / &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Host Name]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;) +1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 21:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82722#M13545</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-23T21:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help Getting Even Number For Result</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82723#M13546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-font-family: 'Times New Roman'; color: #1f497d; font-size: 10pt; font-family: 'Arial',sans-serif; mso-bidi-theme-font: minor-bidi;"&gt;Hello Digvijay:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Arial',sans-serif; font-size: 10pt; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;Thanks for the response. You’re right.&amp;nbsp; Removing the “=” in the middle did indeed fix the syntax error. Thanks for that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-font-family: 'Times New Roman'; color: #1f497d; font-size: 10pt; font-family: 'Arial',sans-serif; mso-bidi-theme-font: minor-bidi;"&gt;When the expression executes though after saving the update, I get no results.&amp;nbsp; I get an empty table like the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194414_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;If I change the expression to Sum(CPU2) / Count([Host Name]), I get the following table.&amp;nbsp; I'm not worried about the N/A's at the moment.&amp;nbsp; I'll clean them up later.&amp;nbsp; I'm wanting the 3's to be 4's and the 21's to be 22's.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/194415_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;As an FYI, I won't be able to look at this again, most likely, until tomorrow.&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 22:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82723#M13546</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-02-23T22:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Getting Even Number For Result</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82724#M13547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To change your expression so it always returns an even number, wrap it in Round(x, 2):&lt;/P&gt;&lt;P&gt;Round(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(CPU2) / Count([Host Name]), 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 22:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82724#M13547</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2018-02-23T22:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help Getting Even Number For Result</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82725#M13548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nicole:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow.&amp;nbsp; So simple.&amp;nbsp; I was obviously thinking I needed to use the Odd function and another Sum expression, but your solution is so much more simple.&amp;nbsp; I was over-complicating it.&amp;nbsp; One of these days, I'll know the correct functions to use.&amp;nbsp; There's a lot of them, but that's part of the power of Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&amp;nbsp; It is appreciated.&amp;nbsp; I will mark your answer as correct.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Feb 2018 01:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Getting-Even-Number-For-Result/m-p/82725#M13548</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-02-24T01:52:57Z</dc:date>
    </item>
  </channel>
</rss>

