<?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: Create Index values in time series chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066030#M523717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a good idea, but the TOTAL makes QV take the sum over all departments, while I would actually need the sum for each department separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you happen to know if I can apply the TOTAL only to the year and still let the expression &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {$&amp;lt;year = {$(=Min([year]))}&amp;gt;} Sales)&lt;/STRONG&gt; differentiate by department?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2016 16:33:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-24T16:33:36Z</dc:date>
    <item>
      <title>Create Index values in time series chart</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066027#M523714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to find answers to this questions, but haven't come far yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For simplicity let's assume that my data has the following columns: year, department and sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a time-series line chart showing the sales developement over years with separate lines for each department. &lt;/P&gt;&lt;P&gt;However, the sales values should be indexed to/divided by the earliest time-series value per department, so that the time series starts with value 1 for each department. If the end user changes the displayed years, the chart should always update so that the values are indexed to the minimum years' sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that the following would do the job&lt;/P&gt;&lt;P&gt;=SUM(sales) / &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;year = {$(=Min([year]))}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, this only displays a value at the minimum year in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea how I could achieve the desired result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 14:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066027#M523714</guid>
      <dc:creator />
      <dc:date>2016-03-24T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create Index values in time series chart</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066028#M523715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=SUM(sales) / &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {$&amp;lt;year = {$(=Min([year]))}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 15:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066028#M523715</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-24T15:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Index values in time series chart</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066029#M523716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also use chart inter record function for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Sales) / Top(Sum(Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably use two dimensions, Year and Department, but want to use the inter record functions in a virtual table with dimensions in order Department and Year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr( Sum(Sales) / Top(Sum(Sales)) , Department, Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work with Year values in chronologic load order, even when a Department does not show same initial year than another one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 15:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066029#M523716</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T15:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Index values in time series chart</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066030#M523717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a good idea, but the TOTAL makes QV take the sum over all departments, while I would actually need the sum for each department separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you happen to know if I can apply the TOTAL only to the year and still let the expression &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {$&amp;lt;year = {$(=Min([year]))}&amp;gt;} Sales)&lt;/STRONG&gt; differentiate by department?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066030#M523717</guid>
      <dc:creator />
      <dc:date>2016-03-24T16:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create Index values in time series chart</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066031#M523718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this solution is working really well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, it is also a bit cumbersome, since the load order has to be chronological. What if I had differently sorted dimensions and wanted to use them in different charts. What I am still trying to figure out is how to make the value&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;Sum({$&amp;lt;year = {$(=Min([year]))&amp;gt;} Sales)&lt;/EM&gt; constant (i.e. not depend the year dimension in the chart) while &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Sales) depends on the year dimension.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Index-values-in-time-series-chart/m-p/1066031#M523718</guid>
      <dc:creator />
      <dc:date>2016-03-24T16:43:22Z</dc:date>
    </item>
  </channel>
</rss>

