<?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: Chart Default 7 days unless dates are selected in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742404#M56841</link>
    <description>&lt;P&gt;Hi Mikeslade&lt;/P&gt;&lt;P&gt;if you Limit your Dimension with a formula like in the attached image&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Limit dimension" style="width: 903px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40297iF01AD22E4CD00A80/image-size/large?v=v2&amp;amp;px=999" role="button" title="TEST_FORMULA_LIMIT_DIMENSION.png" alt="Limit dimension" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Limit dimension&lt;/span&gt;&lt;/span&gt;, you should get, what you're looking for.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 09 Sep 2020 12:31:11 GMT</pubDate>
    <dc:creator>dirk_fischer</dc:creator>
    <dc:date>2020-09-09T12:31:11Z</dc:date>
    <item>
      <title>Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742354#M56829</link>
      <description>&lt;P&gt;Hi, hopefully someone can show me where I'm going wrong.&lt;/P&gt;&lt;P&gt;I have a chart that successfully shows only last 7 days based on a flag in the data using this set analysis:&amp;nbsp;&lt;BR /&gt;Num(Sum({&amp;lt; [%Last 7 Days Flag] = {"Y"}&amp;gt;}[Transaction Volume]), '#,##0')&lt;/P&gt;&lt;P&gt;What I want to do is if a date is selected, then ignore the default and display as per the selection.&lt;/P&gt;&lt;P&gt;I tried the below to get the evaluate selected count and then show volumes depending on the result&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(GetSelectedCount([Transaction Date]) &amp;gt;0,&lt;BR /&gt;Num(Sum([Transaction Volume]), '#,##0'),&lt;BR /&gt;Num(Sum({&amp;lt; [%Last 7 Days Flag] = {"Y"}&amp;gt;}[Transaction Volume]), '#,##0')&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;This works when a date is selected, however if no date is selected the set analysis that worked before now displays all dates, but only values for the last 7 days and all the non 7 day values are showing as 0 and are not nulls.&lt;/P&gt;&lt;P&gt;I'm confused why it would work outside of the if statement, but behave differently within it.&lt;/P&gt;&lt;P&gt;Here is how the chart looks with the set analysis on it's own out of the if condition&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7daysworking.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40284iB9D55BB239618BE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7daysworking.PNG" alt="7daysworking.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within the if condition, this now looks like this (The last 7 days are waaay over the right &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7daysnotworking.PNG" style="width: 395px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40286i1720C38DD3856D18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7daysnotworking.PNG" alt="7daysnotworking.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anybody have an idea?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742354#M56829</guid>
      <dc:creator>mikeslade</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742368#M56832</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you try to suppress null values in the measure?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 11:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742368#M56832</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2020-09-09T11:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742370#M56833</link>
      <description>&lt;P&gt;Thanks - I did try that, as I said in the post the strange thing is they are all showing 0 as values, and not nulls. (Interestingly, they are not actually 0, and if you select one of the dates then you it will work and show the true value.)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 11:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742370#M56833</guid>
      <dc:creator>mikeslade</dc:creator>
      <dc:date>2020-09-09T11:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742401#M56839</link>
      <description>&lt;P&gt;Just so we get this right, you are unchecking 'Include zero values' under Add-ons -&amp;gt; Data handling, correct?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 248px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40296iDF0F6AB5DC38E6D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 12:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742401#M56839</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-09T12:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742404#M56841</link>
      <description>&lt;P&gt;Hi Mikeslade&lt;/P&gt;&lt;P&gt;if you Limit your Dimension with a formula like in the attached image&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Limit dimension" style="width: 903px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40297iF01AD22E4CD00A80/image-size/large?v=v2&amp;amp;px=999" role="button" title="TEST_FORMULA_LIMIT_DIMENSION.png" alt="Limit dimension" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Limit dimension&lt;/span&gt;&lt;/span&gt;, you should get, what you're looking for.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 09 Sep 2020 12:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742404#M56841</guid>
      <dc:creator>dirk_fischer</dc:creator>
      <dc:date>2020-09-09T12:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742655#M56873</link>
      <description>&lt;P&gt;Just so I get this right, that would exclude genuine zero values?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 06:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742655#M56873</guid>
      <dc:creator>mikeslade</dc:creator>
      <dc:date>2020-09-10T06:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742663#M56875</link>
      <description>&lt;P&gt;Gah! Should have thought of that! Thanks.&lt;/P&gt;&lt;P&gt;I still don't quite understand why it doesn't work the way I tried originally, but thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 06:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742663#M56875</guid>
      <dc:creator>mikeslade</dc:creator>
      <dc:date>2020-09-10T06:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742664#M56876</link>
      <description>&lt;P&gt;Arggh how do I unaccept this as solution!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 06:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742664#M56876</guid>
      <dc:creator>mikeslade</dc:creator>
      <dc:date>2020-09-10T06:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742710#M56884</link>
      <description>&lt;P&gt;Hi Mikeslade&lt;/P&gt;&lt;P&gt;does your last post mean, your problem is still not solved?&lt;/P&gt;&lt;P&gt;If you click on the 3 vertical dots, it gives you a context menu, where you can remove the solution flag.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 09:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742710#M56884</guid>
      <dc:creator>dirk_fischer</dc:creator>
      <dc:date>2020-09-10T09:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Default 7 days unless dates are selected</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742875#M56905</link>
      <description>&lt;P&gt;Oh No... you resolved, but I somehow managed to mark my own reply as a solution!! Figured it out and removed the solution against my response!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 14:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Default-7-days-unless-dates-are-selected/m-p/1742875#M56905</guid>
      <dc:creator>mikeslade</dc:creator>
      <dc:date>2020-09-10T14:16:08Z</dc:date>
    </item>
  </channel>
</rss>

