<?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 Subscription to a dashboard with dynamic date ranges in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Subscription-to-a-dashboard-with-dynamic-date-ranges/m-p/2485065#M101220</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have an application with ticket stats data spread across a few sheets.&lt;BR /&gt;I want to create two subscriptions to the same set of sheets, one with a date range of the previous month and the second with a date range of the previous quarter.&lt;BR /&gt;&lt;BR /&gt;How can this be achieved in general so the date is dynamic and Is there a way to achieve this without duplicating the app to get two different dynamic date ranges?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 08:29:30 GMT</pubDate>
    <dc:creator>fhana</dc:creator>
    <dc:date>2024-10-03T08:29:30Z</dc:date>
    <item>
      <title>Subscription to a dashboard with dynamic date ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Subscription-to-a-dashboard-with-dynamic-date-ranges/m-p/2485065#M101220</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have an application with ticket stats data spread across a few sheets.&lt;BR /&gt;I want to create two subscriptions to the same set of sheets, one with a date range of the previous month and the second with a date range of the previous quarter.&lt;BR /&gt;&lt;BR /&gt;How can this be achieved in general so the date is dynamic and Is there a way to achieve this without duplicating the app to get two different dynamic date ranges?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 08:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subscription-to-a-dashboard-with-dynamic-date-ranges/m-p/2485065#M101220</guid>
      <dc:creator>fhana</dc:creator>
      <dc:date>2024-10-03T08:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Subscription to a dashboard with dynamic date ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Subscription-to-a-dashboard-with-dynamic-date-ranges/m-p/2487279#M101497</link>
      <description>&lt;P&gt;I found a way to approach this and most charts work well beside one based on a particular measure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is what I did&lt;BR /&gt;I created two dimensions and two filters based on these dimensions then selected each filter and created separate subscriptions.&lt;BR /&gt;First thing I don't understand is that the filters show values -1 and 0 when -1 is selected the filter is active and charts are adjusted to proper values.&lt;BR /&gt;&lt;BR /&gt;Dimensions&lt;BR /&gt;Last Month&lt;BR /&gt;=([sd.created] &amp;gt;= MonthStart(AddMonths(Today(), -1)) AND [sd.created] &amp;lt;=&lt;BR /&gt;MonthEnd(AddMonths(Today(), -1)))&lt;BR /&gt;&lt;BR /&gt;Last Quarter&amp;nbsp;&lt;BR /&gt;=[sd.created] &amp;gt;= QuarterStart(AddMonths(Today(), -3)) AND [sd.created] &amp;lt;= QuarterEnd(AddMonths(Today(), -3))&lt;BR /&gt;&lt;BR /&gt;Second thing I don't understand is that one measure doesn't follow the conditions or I'm missing something.&lt;BR /&gt;&lt;BR /&gt;The measure expression is&lt;BR /&gt;count(distinct{&amp;lt;resolved = {"&amp;gt;=$(=Min(sd.created)) &amp;lt;=$(=Max(sd.created))"},[sd.created]= &amp;gt;} key)&lt;BR /&gt;&lt;BR /&gt;seems like the&amp;nbsp;[sd.created]= is not taken in to consideration cause this measure&amp;nbsp;&lt;BR /&gt;count(distinct{&amp;lt;resolved = {"&amp;gt;=$(=Min(sd.created)) &amp;lt;=$(=Max(sd.created))"} &amp;gt;} key)&lt;BR /&gt;&lt;BR /&gt;shows exactly the same amount and I know there should be more based on SQL's that I run on the source.&lt;BR /&gt;&lt;BR /&gt;When I ignore all the filters with 1 like this&amp;nbsp;&lt;BR /&gt;count(distinct{1&amp;lt;resolved = {"&amp;gt;=$(=Min(sd.created)) &amp;lt;=$(=Max(sd.created))"},[sd.created]= &amp;gt;} key)&lt;BR /&gt;&lt;BR /&gt;it starts to work&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 07:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subscription-to-a-dashboard-with-dynamic-date-ranges/m-p/2487279#M101497</guid>
      <dc:creator>fhana</dc:creator>
      <dc:date>2024-10-16T07:14:41Z</dc:date>
    </item>
  </channel>
</rss>

