<?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 Measure expressions that calc using select dim ranges in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Measure-expressions-that-calc-using-select-dim-ranges/m-p/1057102#M16854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got two tables that are joined by a key.&amp;nbsp; One table has events the other dates.&amp;nbsp; The dates table is the dimension and the events table is used to calculate the measure.&amp;nbsp; The measure I want to calculate is events per day.&amp;nbsp; Such that, if the user selects 7 days and 7 events happened during that 7 day period the measure would be 1 event / day.&amp;nbsp; The problem that I've run into is that if no events occurred until the 7th and final day my metric calculates out to 7 events per day because only one day had a corresponding record in the dates table.&amp;nbsp; The first 6 days had no events and were excluded from the denominator.&amp;nbsp; Here's the expression I was trying to use.&amp;nbsp; &lt;STRONG&gt; max([Event Date]) - min([Event Date]) What I really need is &lt;/STRONG&gt;&lt;STRONG&gt;the max(&lt;EM&gt;selected value from date table&lt;/EM&gt;) - min(&lt;EM&gt;selected value from date table&lt;/EM&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any help here would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 17:59:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-17T17:59:34Z</dc:date>
    <item>
      <title>Measure expressions that calc using select dim ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-expressions-that-calc-using-select-dim-ranges/m-p/1057102#M16854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got two tables that are joined by a key.&amp;nbsp; One table has events the other dates.&amp;nbsp; The dates table is the dimension and the events table is used to calculate the measure.&amp;nbsp; The measure I want to calculate is events per day.&amp;nbsp; Such that, if the user selects 7 days and 7 events happened during that 7 day period the measure would be 1 event / day.&amp;nbsp; The problem that I've run into is that if no events occurred until the 7th and final day my metric calculates out to 7 events per day because only one day had a corresponding record in the dates table.&amp;nbsp; The first 6 days had no events and were excluded from the denominator.&amp;nbsp; Here's the expression I was trying to use.&amp;nbsp; &lt;STRONG&gt; max([Event Date]) - min([Event Date]) What I really need is &lt;/STRONG&gt;&lt;STRONG&gt;the max(&lt;EM&gt;selected value from date table&lt;/EM&gt;) - min(&lt;EM&gt;selected value from date table&lt;/EM&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any help here would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 17:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-expressions-that-calc-using-select-dim-ranges/m-p/1057102#M16854</guid>
      <dc:creator />
      <dc:date>2016-02-17T17:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Measure expressions that calc using select dim ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-expressions-that-calc-using-select-dim-ranges/m-p/1057103#M16855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is event date not equal to date from date table? I am not sure I am understanding your question. Can you elaborate and if possible share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 18:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-expressions-that-calc-using-select-dim-ranges/m-p/1057103#M16855</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-17T18:34:18Z</dc:date>
    </item>
  </channel>
</rss>

