<?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: Linking two dates in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-two-dates-in-Set-Analysis/m-p/1033215#M348626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there's only one FleetDate - FlightDate combination per _UtilizationKey value then it should work. If not, then you'll need an if statement. See this document for more information: &lt;A href="https://community.qlik.com/docs/DOC-4563"&gt;set_analysis_intra-record.qvw&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2016 08:06:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-21T08:06:16Z</dc:date>
    <item>
      <title>Linking two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-dates-in-Set-Analysis/m-p/1033214#M348625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to link two dates in a Set Analysis. When I do it using an If-statement, it works just fine. But I understand that If-statements are not the ideal solution as they are slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve that with a Set-Analysis instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression currently looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=1/Avg(If(FleetDate=FlightDate, MXRatio))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=1/Avg({$&amp;lt; _UtilizationKey = {"=(FleetDate=FlightDate)"} &amp;gt;} MXRatio)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The utilizationkey is just a numeric key field (rowno()) in the same table as the MXRatio, as I read, that it's not possible to use the searched dimension cannot be in the boolean condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 04:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-dates-in-Set-Analysis/m-p/1033214#M348625</guid>
      <dc:creator />
      <dc:date>2016-03-21T04:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Linking two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-dates-in-Set-Analysis/m-p/1033215#M348626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there's only one FleetDate - FlightDate combination per _UtilizationKey value then it should work. If not, then you'll need an if statement. See this document for more information: &lt;A href="https://community.qlik.com/docs/DOC-4563"&gt;set_analysis_intra-record.qvw&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 08:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-dates-in-Set-Analysis/m-p/1033215#M348626</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-21T08:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Linking two dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-dates-in-Set-Analysis/m-p/1033216#M348627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one _UtilizationKey per records, as I create it during the load with a RowNo() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FleetDate field is currently holding only one date (today's) and in the FlightDate there are multiple dates, ranging from 8.3. - 21.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So yes, there should be a combination of FleetDate to FlightDate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 08:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-dates-in-Set-Analysis/m-p/1033216#M348627</guid>
      <dc:creator />
      <dc:date>2016-03-21T08:27:41Z</dc:date>
    </item>
  </channel>
</rss>

