<?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: Straight table with values per year, delta values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-with-values-per-year-delta-values/m-p/957532#M467709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, the example you have provided is different then the question you have asked.&lt;/P&gt;&lt;P&gt;Kindly use below script..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tblExample:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year, Turnover, Tons&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2014, 100, 75&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2015, 150, 150&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use below in Straight or Pivot Table&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Use Calculated Dimension&lt;/P&gt;&lt;P&gt;=ValueList('TurnOver','Tons')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;Label &lt;/P&gt;&lt;P&gt;=Year(Today())-1&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;IF(ValueList('TurnOver','Tons') = 'TurnOver', SUM({&amp;lt;Year = {'$(=Year(Today())-1)'}&amp;gt;}Turnover),&lt;/P&gt;&lt;P&gt;IF(ValueList('TurnOver','Tons') = 'Tons', SUM({&amp;lt;Year = {'$(=Year(Today())-1)'}&amp;gt;}Tons)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;Label&lt;/P&gt;&lt;P&gt;=Year(Today())&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;IF(ValueList('TurnOver','Tons') = 'TurnOver', SUM({&amp;lt;Year = {'$(=Year(Today()))'}&amp;gt;}Turnover),&lt;/P&gt;&lt;P&gt;IF(ValueList('TurnOver','Tons') = 'Tons', SUM({&amp;lt;Year = {'$(=Year(Today()))'}&amp;gt;}Tons)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;/P&gt;&lt;P&gt;Label&lt;/P&gt;&lt;P&gt;Diff&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;Column(2)-Column(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)&lt;/P&gt;&lt;P&gt;Label&lt;/P&gt;&lt;P&gt;Diff%&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;(Column(2)-Column(1))/Column(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Number Tab&lt;/P&gt;&lt;P&gt;and Select last Expression Diff%&lt;/P&gt;&lt;P&gt;Fixed to 2 Decimals&lt;/P&gt;&lt;P&gt;Tick Show in Percent (%)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Oct 2015 08:14:41 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-10-25T08:14:41Z</dc:date>
    <item>
      <title>Straight table with values per year, delta values</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-with-values-per-year-delta-values/m-p/957531#M467708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am having trouble creating a table showing the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2014&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2015&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Δ&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Δ [%]&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Turnover&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Tons&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;75&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;75&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;....&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I'm using a horizontal straight table to show the first three columns which works fine. I am having trouble however adding the delta values to the table because they aren't dimensions but set analysis expressions. I also tried using a second table next to this one w/o luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also thought about pre-calculating all the different delta values in the load script but that's way too many dimensions I'd have to consider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever done or come across this? I'm not sure this will work at all because it's mixing up dimensions and expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2015 15:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-with-values-per-year-delta-values/m-p/957531#M467708</guid>
      <dc:creator>steeefan</dc:creator>
      <dc:date>2015-10-24T15:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table with values per year, delta values</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-with-values-per-year-delta-values/m-p/957532#M467709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, the example you have provided is different then the question you have asked.&lt;/P&gt;&lt;P&gt;Kindly use below script..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tblExample:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year, Turnover, Tons&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2014, 100, 75&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2015, 150, 150&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use below in Straight or Pivot Table&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Use Calculated Dimension&lt;/P&gt;&lt;P&gt;=ValueList('TurnOver','Tons')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;Label &lt;/P&gt;&lt;P&gt;=Year(Today())-1&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;IF(ValueList('TurnOver','Tons') = 'TurnOver', SUM({&amp;lt;Year = {'$(=Year(Today())-1)'}&amp;gt;}Turnover),&lt;/P&gt;&lt;P&gt;IF(ValueList('TurnOver','Tons') = 'Tons', SUM({&amp;lt;Year = {'$(=Year(Today())-1)'}&amp;gt;}Tons)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;Label&lt;/P&gt;&lt;P&gt;=Year(Today())&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;IF(ValueList('TurnOver','Tons') = 'TurnOver', SUM({&amp;lt;Year = {'$(=Year(Today()))'}&amp;gt;}Turnover),&lt;/P&gt;&lt;P&gt;IF(ValueList('TurnOver','Tons') = 'Tons', SUM({&amp;lt;Year = {'$(=Year(Today()))'}&amp;gt;}Tons)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;/P&gt;&lt;P&gt;Label&lt;/P&gt;&lt;P&gt;Diff&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;Column(2)-Column(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)&lt;/P&gt;&lt;P&gt;Label&lt;/P&gt;&lt;P&gt;Diff%&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;(Column(2)-Column(1))/Column(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Number Tab&lt;/P&gt;&lt;P&gt;and Select last Expression Diff%&lt;/P&gt;&lt;P&gt;Fixed to 2 Decimals&lt;/P&gt;&lt;P&gt;Tick Show in Percent (%)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Oct 2015 08:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-with-values-per-year-delta-values/m-p/957532#M467709</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-25T08:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table with values per year, delta values</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-with-values-per-year-delta-values/m-p/957533#M467710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! Exactly what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 07:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-with-values-per-year-delta-values/m-p/957533#M467710</guid>
      <dc:creator>steeefan</dc:creator>
      <dc:date>2015-10-26T07:05:32Z</dc:date>
    </item>
  </channel>
</rss>

