<?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: Comparison Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19116#M3194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you do that within a script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 21:12:12 GMT</pubDate>
    <dc:creator>evansabres</dc:creator>
    <dc:date>2018-02-13T21:12:12Z</dc:date>
    <item>
      <title>Comparison Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19114#M3192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set of historical sales data that has a field called 'aggDAY'. Also in this set is a field called 'aggREV'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a data set of current data with a field called 'DAY' as well as a field called 'REV.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a table / chart that has 'DAY' as the dimension, with an expression for SUM(REV) that compares to the aggREV for the given day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, i want to create a bar chart that has day across the bottom, with columns showing the rev by day and and a marker showing where that falls in relation to the historical average.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 20:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19114#M3192</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2018-02-13T20:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19115#M3193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe create a concatenated single table made of your two tables, renaming the aggDay to Day and aggREV to REV and creating a new field that indicates 'agg' resp 'current' data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allows you to use DAY as dimension and filter your REV values by the new field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 21:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19115#M3193</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-02-13T21:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19116#M3194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you do that within a script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 21:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19116#M3194</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2018-02-13T21:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19117#M3195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD DAY, REV, 'current' as Source&lt;/P&gt;&lt;P&gt;FROM CurrentData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Fact)&lt;/P&gt;&lt;P&gt;LOAD aggDAY as DAY, aggREV as REV, 'agg' as Source&lt;/P&gt;&lt;P&gt;FROM AggData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your chart:&lt;/P&gt;&lt;P&gt;Dimension: DAY&lt;/P&gt;&lt;P&gt;two expressions:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Source = {'current'}&amp;gt;} REV)&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Source = {'agg'}&amp;gt;} REV)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 21:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-Expression/m-p/19117#M3195</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-02-13T21:17:24Z</dc:date>
    </item>
  </channel>
</rss>

