<?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: Plot 2 different expressions to 2 different dimensions on same chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534122#M746440</link>
    <description>&lt;P&gt;The simplest way to show is like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;ClaimID&lt;/TD&gt;&lt;TD&gt;Current Date&lt;/TD&gt;&lt;TD&gt;Prior Date&lt;/TD&gt;&lt;TD&gt;Current Expense&lt;/TD&gt;&lt;TD&gt;Prior Expense&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;2015&lt;/TD&gt;&lt;TD&gt;$1000&lt;/TD&gt;&lt;TD&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;$2500&lt;/TD&gt;&lt;TD&gt;$1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;$3500&lt;/TD&gt;&lt;TD&gt;$2500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each claimID can have multiple records. Each record has current/prior values. When&amp;nbsp;a new record is created for a claimID, the current value moves into the prior position and the next year and expense value&amp;nbsp;are input. The solution I described above would be a workaround. But if you&amp;nbsp;have a better way to get the two "end values" (2015 and 2018)&amp;nbsp;to line up on the same chart I'd love to hear it.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 21:10:26 GMT</pubDate>
    <dc:creator>Brock</dc:creator>
    <dc:date>2019-01-23T21:10:26Z</dc:date>
    <item>
      <title>Plot 2 different expressions to 2 different dimensions on same chart</title>
      <link>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534068#M746436</link>
      <description>&lt;P&gt;I have 2 date fields and 2 dollar value fields in my data. Prior Date / Current Date, and Prior Dollars/ Current Dollars over 4 years. The date fields have similar values except for the min and max values. Prior date contains data for 2015-2017, and Current date contains data for 2016-2018. I want to be able to display both&amp;nbsp;on the same chart so that all dates are shown with their proper Prior or Current Dollar value. See in the pic below, the red line should be shifted to the left one year so that the two lines line up and create a line for the full 2015-2018 range. How do I disassociate the two expressions so they are plotted against the separate dimensions? Very new to qlikview. I hope this makes sense.&amp;nbsp;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/4344iD9EE50574540F17C/image-size/medium?v=1.0&amp;amp;px=-1" border="0" width="400" height="240" title="1-23-2019 1-22-17 PM.png" alt="1-23-2019 1-22-17 PM.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534068#M746436</guid>
      <dc:creator>Brock</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different expressions to 2 different dimensions on same chart</title>
      <link>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534095#M746437</link>
      <description>Can you share the expressions that you have used</description>
      <pubDate>Wed, 23 Jan 2019 20:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534095#M746437</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-01-23T20:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different expressions to 2 different dimensions on same chart</title>
      <link>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534102#M746438</link>
      <description>&lt;P&gt;First is Sum([Current Expense]), second is Sum([Prior Expense]), the dimensions are just the two date fields.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 20:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534102#M746438</guid>
      <dc:creator>Brock</dc:creator>
      <dc:date>2019-01-23T20:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different expressions to 2 different dimensions on same chart</title>
      <link>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534103#M746439</link>
      <description>How is the data structured?&lt;BR /&gt;can you share a sample</description>
      <pubDate>Wed, 23 Jan 2019 20:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534103#M746439</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-01-23T20:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different expressions to 2 different dimensions on same chart</title>
      <link>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534122#M746440</link>
      <description>&lt;P&gt;The simplest way to show is like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;ClaimID&lt;/TD&gt;&lt;TD&gt;Current Date&lt;/TD&gt;&lt;TD&gt;Prior Date&lt;/TD&gt;&lt;TD&gt;Current Expense&lt;/TD&gt;&lt;TD&gt;Prior Expense&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;2015&lt;/TD&gt;&lt;TD&gt;$1000&lt;/TD&gt;&lt;TD&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;$2500&lt;/TD&gt;&lt;TD&gt;$1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;$3500&lt;/TD&gt;&lt;TD&gt;$2500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each claimID can have multiple records. Each record has current/prior values. When&amp;nbsp;a new record is created for a claimID, the current value moves into the prior position and the next year and expense value&amp;nbsp;are input. The solution I described above would be a workaround. But if you&amp;nbsp;have a better way to get the two "end values" (2015 and 2018)&amp;nbsp;to line up on the same chart I'd love to hear it.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 21:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534122#M746440</guid>
      <dc:creator>Brock</dc:creator>
      <dc:date>2019-01-23T21:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Plot 2 different expressions to 2 different dimensions on same chart</title>
      <link>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534848#M746441</link>
      <description>&lt;P&gt;May be something like this&lt;/P&gt;&lt;P&gt;claims:&lt;BR /&gt;CrossTable(values,data,2)&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Current, Previous, Current$, Previous$&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015, 2014, 10, 12&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016, 2015, 22, 10&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017, 2016, 33, 22&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;load&lt;BR /&gt;if ( values='Previous$', Previous ,Current) as Dates,&lt;BR /&gt;Current,&lt;BR /&gt;Previous,&lt;BR /&gt;values,&lt;BR /&gt;data&lt;/P&gt;&lt;P&gt;Resident claims ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the chart use the below&lt;/P&gt;&lt;P&gt;Dimension:&amp;nbsp; Dates&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Previous:&amp;nbsp; aggr(sum({&amp;lt;values={'Previous$'}&amp;gt;}data) ,Current)&lt;/P&gt;&lt;P&gt;Current:&amp;nbsp; sum({&amp;lt;values={'Previous$'},Current={$(=min(Current))}&amp;gt;}data)+ sum({&amp;lt;values={'Current$'}&amp;gt;}data)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 04:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Plot-2-different-expressions-to-2-different-dimensions-on-same/m-p/1534848#M746441</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2019-01-25T04:57:13Z</dc:date>
    </item>
  </channel>
</rss>

