<?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: Creating a chart that uses different data in the same field. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838237#M1016554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 16:16:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-01T16:16:55Z</dc:date>
    <item>
      <title>Creating a chart that uses different data in the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838235#M1016551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fields. One is the SalesDate and the other is the SalesAmount. I want to create a Line or Bar chart that shows for each week the sum of SalesAmount divided by the previous week's sum of SalesAmount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 15:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838235#M1016551</guid>
      <dc:creator />
      <dc:date>2015-04-01T15:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart that uses different data in the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838236#M1016552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do this by using set analysis &lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 16:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838236#M1016552</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-01T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart that uses different data in the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838237#M1016554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 16:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838237#M1016554</guid>
      <dc:creator />
      <dc:date>2015-04-01T16:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart that uses different data in the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838238#M1016556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes u can do, and show ur &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SalesAmount. on y- axis and date as ur x-axis.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 16:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838238#M1016556</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-04-01T16:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart that uses different data in the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838239#M1016559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try using set analysis was hoping for another solution. Set analysis worked well when I needed things like dashboards. As for charts like line or bar when I use set analysis Qlikview doesn't know what x value to assign to the calculated y value I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have something similar to this right now.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sum({$&amp;lt;SalesDateID = {"&amp;lt;=$(=Max(SalesDateID))"}, WeekID = {$(=Max(WeekID))}&amp;gt;} SalesAmount)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;SalesDateID = {"&amp;lt;=$(=Max(SalesDateID)-7)"}, WeekID = {$(=Max(WeekID)-1)&amp;gt;} SalesAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 18:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838239#M1016559</guid>
      <dc:creator />
      <dc:date>2015-04-01T18:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart that uses different data in the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838240#M1016561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your set analysis wouldn't work because you are limiting the week that are being considered, I am trying to think on how to do this on with set analysis&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Though this could be done at the script level by summing all sales and then left joining them back into you fact table&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 19:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838240#M1016561</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-01T19:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart that uses different data in the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838241#M1016563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;isnull&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;above&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;LineSalesAmount&lt;/SPAN&gt;)))=-1,1,&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;LineSalesAmount&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;above&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;LineSalesAmount&lt;/SPAN&gt;))) &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/82763_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/82764_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 07:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838241#M1016563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-02T07:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart that uses different data in the same field.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838242#M1016565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I was looking for. Just curious do you happen to know what is the difference between TOP and ABOVE? It seems like it is very small.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 13:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-chart-that-uses-different-data-in-the-same-field/m-p/838242#M1016565</guid>
      <dc:creator />
      <dc:date>2015-04-02T13:17:48Z</dc:date>
    </item>
  </channel>
</rss>

