<?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: Restrictions in SUM / IF functions in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588943#M1120413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Philippe for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 16:24:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-30T16:24:42Z</dc:date>
    <item>
      <title>Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588935#M1120405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add two new columns in a table by using the script, but unfortunately, I don't manage to rise it. My situation is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main table is:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 308px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;ID USER&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="104"&gt;CHANNEL&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="124"&gt;NUMBER OF LOGIN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;INTERNET&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;MOBILE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script:&lt;/P&gt;&lt;P&gt;LOGIN:&lt;/P&gt;&lt;P&gt;LOAD [ID USER], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANNEL, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NUMBER OF LOGIN]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[PRUEBA_1.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTALLOGIN:&lt;/P&gt;&lt;P&gt;LOAD [ID USER],&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM([NUMBER OF LOGIN]) AS TOTAL_LOGINS&lt;/P&gt;&lt;P&gt;Resident LOGIN&lt;/P&gt;&lt;P&gt;Group by [ID USER];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to obtain:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 414px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;ID USER&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;TOTAL_LOGINS&lt;/TD&gt;&lt;TD class="xl66" width="116"&gt;LOGINS_INTERNET&lt;/TD&gt;&lt;TD class="xl66" width="102"&gt;LOGINS_MOBILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl66"&gt;4&lt;/TD&gt;&lt;TD class="xl66"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl66"&gt;3&lt;/TD&gt;&lt;TD class="xl66"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl66"&gt;6&lt;/TD&gt;&lt;TD class="xl66"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl66"&gt;5&lt;/TD&gt;&lt;TD class="xl66"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;14&lt;/TD&gt;&lt;TD class="xl66"&gt;6&lt;/TD&gt;&lt;TD class="xl66"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl66"&gt;9&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl66"&gt;8&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl66"&gt;8&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl66"&gt;3&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl66"&gt;4&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;TD class="xl66"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;TD class="xl66"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl66"&gt;0&lt;/TD&gt;&lt;TD class="xl66"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already managed to get the first column thanks to the Qlik Community. However, to get the columns LOGINS_INTERNET and LOGINS_MOBILE, the following sentences haven't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(CHANNEL='INTERNET', [NUMBER OF LOGIN], '0') AS LOGINS_INTERNET,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(CHANNEL='MOBILE', [NUMBER OF LOGIN], '0') AS LOGINS_MOBILE&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SUM({&amp;lt;CHANNEL={'INTERNET'}&amp;gt;}[NUMBER OF LOGIN]) AS LOGINS_INTERNET,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SUM({&amp;lt;CHANNEL={'MOBILE'}&amp;gt;}[NUMBER OF LOGIN]) AS LOGINS_MOBILE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me where I'm mistaking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588935#M1120405</guid>
      <dc:creator />
      <dc:date>2014-01-30T15:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588936#M1120406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588936#M1120406</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-30T16:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588937#M1120407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOGIN:&lt;/P&gt;&lt;P&gt;LOAD [ID USER], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANNEL, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NUMBER OF LOGIN]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[PRUEBA_1.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTALLOGIN:&lt;/P&gt;&lt;P&gt;LOAD [ID USER],&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM([NUMBER OF LOGIN]) AS TOTAL_LOGINS&lt;/P&gt;&lt;P&gt;Resident LOGIN&lt;/P&gt;&lt;P&gt;Group by [ID USER];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTERNET:&lt;/P&gt;&lt;P&gt;LOAD [ID USER],&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM([NUMBER OF LOGIN]) AS TOTAL_LOGINS_INTERNET&lt;/P&gt;&lt;P&gt;Resident LOGIN&lt;/P&gt;&lt;P&gt;Where CHANNEL = 'INTERNET'&lt;/P&gt;&lt;P&gt;Group by [ID USER];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOBILE:&lt;/P&gt;&lt;P&gt;LOAD [ID USER],&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM([NUMBER OF LOGIN]) AS TOTAL_LOGINS_MOBILE&lt;/P&gt;&lt;P&gt;Resident LOGIN&lt;/P&gt;&lt;P&gt;Where CHANNEL = 'MOBILE'&lt;/P&gt;&lt;P&gt;Group by [ID USER];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588937#M1120407</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-30T16:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588938#M1120408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, the same can be achieved without creating an extra field in script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension = ID USER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1 = SUM([NUMBER OF LOGIN]) //This will give you total number of LOGIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2 = SUM({&amp;lt;CHANNEL = {'INTERNET'}&amp;gt;}[NUMBER OF LOGIN]) // This will give you total login where channel is Internet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 3 = SUM({&amp;lt;CHANNEL = {'MOBILE'}&amp;gt;}[NUMBER OF LOGIN])&amp;nbsp; // This will give you total login where channel is Mobile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588938#M1120408</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-30T16:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588939#M1120409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help. However, I've just one more question: is it possible to have one single table instead of 3? (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TOTALLOGIN&lt;/SPAN&gt;, INTERNET, MOBILE). I need to create one single table through the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot again and sorry for inconveniences.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588939#M1120409</guid>
      <dc:creator />
      <dc:date>2014-01-30T16:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588940#M1120410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOGIN:&lt;/P&gt;&lt;P&gt;LOAD [ID USER], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANNEL, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NUMBER OF LOGIN]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[PRUEBA_1.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTALLOGIN:&lt;/P&gt;&lt;P&gt;LOAD [ID USER],&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM([NUMBER OF LOGIN]) AS TOTAL_LOGINS&lt;/P&gt;&lt;P&gt;Resident LOGIN&lt;/P&gt;&lt;P&gt;Group by [ID USER];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTERNET:&lt;/P&gt;&lt;P&gt;LOAD [ID USER],&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM([NUMBER OF LOGIN]) AS TOTAL_LOGINS_INTERNET&lt;/P&gt;&lt;P&gt;Resident LOGIN&lt;/P&gt;&lt;P&gt;Where CHANNEL = 'INTERNET'&lt;/P&gt;&lt;P&gt;Group by [ID USER];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOBILE:&lt;/P&gt;&lt;P&gt;LOAD [ID USER],&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM([NUMBER OF LOGIN]) AS TOTAL_LOGINS_MOBILE&lt;/P&gt;&lt;P&gt;Resident LOGIN&lt;/P&gt;&lt;P&gt;Where CHANNEL = 'MOBILE'&lt;/P&gt;&lt;P&gt;Group by [ID USER];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (LOGIN) Load * Resident TOTALLOGIN;&lt;/P&gt;&lt;P&gt;LEFT JOIN (LOGIN) Load * Resident INTERNET;&lt;/P&gt;&lt;P&gt;LEFT JOIN (LOGIN) Load * Resident MOBILE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Tables TOTALLOGIN, INTERNET, MOBILE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588940#M1120410</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-30T16:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588941#M1120411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vincent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't actually need to precalculate the totals in your load script, as you can obtain the result in your Straight Table chart quite easily using the following three expressions:&lt;/P&gt;&lt;P&gt;Internet Logins: Sum({&amp;lt;CHANNEL={"INTERNET"}&amp;gt;} [NUMBER OF LOGIN])&lt;/P&gt;&lt;P&gt;Mobile Logins: Sum({&amp;lt;CHANNEL={"MOBILE"}&amp;gt;} [NUMBER OF LOGIN])&lt;/P&gt;&lt;P&gt;Total Logins: Sum([NUMBER OF LOGIN])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. See the attached PRUEBA_1a.qvw file with the integrated example expressions, and the script limited to &lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOGIN:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD [ID USER], CHANNEL, [NUMBER OF LOGIN]&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [PRUEBA_1.xlsx] (ooxml, embedded labels);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588941#M1120411</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2014-01-30T16:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588942#M1120412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's perfect ! Thanks a lot Manish &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588942#M1120412</guid>
      <dc:creator />
      <dc:date>2014-01-30T16:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions in SUM / IF functions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588943#M1120413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Philippe for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrictions-in-SUM-IF-functions-in-Script/m-p/588943#M1120413</guid>
      <dc:creator />
      <dc:date>2014-01-30T16:24:42Z</dc:date>
    </item>
  </channel>
</rss>

