<?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 Totalling various columns from within concatenated link tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314363#M1197471</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 hope someone can make sense of this.&lt;/P&gt;&lt;P&gt;I have &lt;STRONG&gt;expression 1&lt;/STRONG&gt; which is totalling various numbers from our ODBC database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(IF(Week_Class ='Current Week',(basichours+nextdayhours+othours+nextdayot+salaryhours)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This works fine . I want to be able to add some columns to this grand total from table files. I have manually entered these table files and concatenated into a link table.&lt;/P&gt;&lt;P&gt;These are also working fine on their own:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;expression 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(IF(Week_Class ='Current Week',(MitchPerm+MitchBank+MitchAgy+GarPerm+GarBank+GarAgy+HomeCarePerm+HomeCareBank+HomeCareAgy)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I try to add the above two sets of columns together in 1 sum if expression, I get 0.&lt;/P&gt;&lt;P&gt;The columns in expression 2 do not have corresponding values in the columns in expression 1 so I think this is where its falling down.&lt;/P&gt;&lt;P&gt;Is there something I can state in the expression such a distinct command which will sum the applicable columns together.&lt;/P&gt;&lt;P&gt;Unfortunately, I cannot post sample data due to the vastness of this database. There are a lot of linked tables but I 'think' this is a syntax issue rather than relationship (?) as the 2 expressions are working seperately.&lt;/P&gt;&lt;P&gt;Any help would be gratefully appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2011 12:45:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-17T12:45:15Z</dc:date>
    <item>
      <title>Totalling various columns from within concatenated link tables</title>
      <link>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314363#M1197471</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 hope someone can make sense of this.&lt;/P&gt;&lt;P&gt;I have &lt;STRONG&gt;expression 1&lt;/STRONG&gt; which is totalling various numbers from our ODBC database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(IF(Week_Class ='Current Week',(basichours+nextdayhours+othours+nextdayot+salaryhours)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This works fine . I want to be able to add some columns to this grand total from table files. I have manually entered these table files and concatenated into a link table.&lt;/P&gt;&lt;P&gt;These are also working fine on their own:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;expression 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(IF(Week_Class ='Current Week',(MitchPerm+MitchBank+MitchAgy+GarPerm+GarBank+GarAgy+HomeCarePerm+HomeCareBank+HomeCareAgy)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I try to add the above two sets of columns together in 1 sum if expression, I get 0.&lt;/P&gt;&lt;P&gt;The columns in expression 2 do not have corresponding values in the columns in expression 1 so I think this is where its falling down.&lt;/P&gt;&lt;P&gt;Is there something I can state in the expression such a distinct command which will sum the applicable columns together.&lt;/P&gt;&lt;P&gt;Unfortunately, I cannot post sample data due to the vastness of this database. There are a lot of linked tables but I 'think' this is a syntax issue rather than relationship (?) as the 2 expressions are working seperately.&lt;/P&gt;&lt;P&gt;Any help would be gratefully appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 12:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314363#M1197471</guid>
      <dc:creator />
      <dc:date>2011-03-17T12:45:15Z</dc:date>
    </item>
    <item>
      <title>Totalling various columns from within concatenated link tables</title>
      <link>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314364#M1197472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;I'd translate your expression 1 into set analysis to get something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM({&amp;lt; Week_Class = {'Current Week'} &amp;gt;} basichours + nextdayhours + othours + nextdayot + salaryhours)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;And likewise with expression 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM({&amp;lt; Week_Class = {'Current Week'} &amp;gt;} MitchPerm + MitchBank + MitchAgy + GarPerm + GarBank + GarAgy + HomeCarePerm + HomeCareBank + HomeCareAgy)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If these are the only columns in your chart, you can use a new expression to get the sum of both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ColumnNo(1) + ColumnNo(2)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 12:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314364#M1197472</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-17T12:59:30Z</dc:date>
    </item>
    <item>
      <title>Totalling various columns from within concatenated link tables</title>
      <link>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314365#M1197475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Miguel.&lt;/P&gt;&lt;P&gt;Your suggestions do work seperately as stand alone expressions but I need to combine the 2 sets of totals to display in 1 LED chart box so I dont think it will work in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 13:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314365#M1197475</guid>
      <dc:creator />
      <dc:date>2011-03-17T13:49:23Z</dc:date>
    </item>
    <item>
      <title>Totalling various columns from within concatenated link tables</title>
      <link>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314366#M1197477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;Ok, so both in one look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM({&amp;lt; Week_Class = {'Current Week'} &amp;gt;} basichours + nextdayhours + othours + nextdayot + salaryhours + MitchPerm + MitchBank + MitchAgy + GarPerm + GarBank + GarAgy + HomeCarePerm + HomeCareBank + HomeCareAgy)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 14:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314366#M1197477</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-17T14:06:15Z</dc:date>
    </item>
    <item>
      <title>Totalling various columns from within concatenated link tables</title>
      <link>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314367#M1197478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel again but I wish it was that easy .&lt;/P&gt;&lt;P&gt;When I combine the two sets of columns in 1 Sum expression, the total is zero. I have tried to attach a sample from a table exported to Excel:&lt;/P&gt;&lt;P&gt;the first column is where the Week Class is current or week-1 etc,&lt;/P&gt;&lt;P&gt;the second column is a sample column MitchPerm (picked from expression 2 as example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the third column is sample from expression 1&lt;/P&gt;&lt;P&gt;the fourth column is sum of Mitch Perm + expression 1 sample but this is where it shows zero!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm close to giving this job up and becoming a hermit lumberjack or something &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 14:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314367#M1197478</guid>
      <dc:creator />
      <dc:date>2011-03-17T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Totalling various columns from within concatenated link tables</title>
      <link>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314368#M1197479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;If possible, some sample data would be better so we can check how the document is associating fields and why aren't you getting the values you want. My guess is that the table that stores Mitch Perm is not related to the one that stores basic hours and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;cayfmatt wrote:I'm close to giving this job up and becoming a hermit lumberjack or something &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You're not the first I've heard of this before. Anyway don't give up!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 15:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314368#M1197479</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-17T15:07:11Z</dc:date>
    </item>
    <item>
      <title>Totalling various columns from within concatenated link tables</title>
      <link>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314369#M1197480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel. Unfortunately I am accessing the very large Qlikview file through a Terminal Server and am unable to post any sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 16:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Totalling-various-columns-from-within-concatenated-link-tables/m-p/314369#M1197480</guid>
      <dc:creator />
      <dc:date>2011-03-17T16:37:56Z</dc:date>
    </item>
  </channel>
</rss>

