<?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: Comparing Values with Different Calendars in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451012#M561888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for not being clear. I've solved my own problem by creating a link table to connect the two by combining keys with the date key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 17:23:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-18T17:23:03Z</dc:date>
    <item>
      <title>Comparing Values with Different Calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451008#M561884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fact tables, each with a separate date, and also joined by another dimension. I've got a date island built, and I use that for my filters without issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where my problem lies is when I need to use the measures in the same chart. For example, I need to divide the measure from one table (a count) by the measure in the other (hours). I can't seem to figure out how to get the measure to work in a chart with a date that it doesn't belong to. I've tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(Count_Calendar.MonthYearNum = Hours_Calendar.MonthYearNum, Count))&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Count_Calendar.MonthYearNum={Hours_Calendar.MonthYearNum}&amp;gt;}Count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and others. Anyway, how do I get a chart to work correctly in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 14:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451008#M561884</guid>
      <dc:creator />
      <dc:date>2013-03-18T14:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Values with Different Calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451009#M561885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is a measure, I assume that it is some kind of aggregation, e.g. Sum() or Count(). Then you can just divide one aggregation with the other:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Amount)/Sum(Hours)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Amount)/Count(distinct OrderID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would avoid if() inside the Sum() as far as possible. It's slow. Further, the Set analysis is just a way to make the chart make a calculation based on an other selection than the current. So that won't help you either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 14:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451009#M561885</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-03-18T14:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Values with Different Calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451010#M561886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I do that, and I put a single date on the axis, what happens is that one of the measures is always for all time (since its calendar isn't on the chart). Amount and Hours have two separate calendars. Giving them the same calendar ends up making the data wrong, due to there being Amounts when there aren't Hours, or vice versa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 14:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451010#M561886</guid>
      <dc:creator />
      <dc:date>2013-03-18T14:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Values with Different Calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451011#M561887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to see the data to understand...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 14:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451011#M561887</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-03-18T14:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Values with Different Calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451012#M561888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for not being clear. I've solved my own problem by creating a link table to connect the two by combining keys with the date key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 17:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-with-Different-Calendars/m-p/451012#M561888</guid>
      <dc:creator />
      <dc:date>2013-03-18T17:23:03Z</dc:date>
    </item>
  </channel>
</rss>

