<?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 Filter barchart depending on selection on date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-barchart-depending-on-selection-on-date/m-p/1563137#M742717</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can anyone in here help me figure out how to make a bar chart&amp;nbsp;show the last 24 hours, last week (and so on) depending on the date selected?&lt;/P&gt;&lt;P&gt;Right now I am just using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if(created&amp;gt;=today()-1, values)   //For the last 24 hours&lt;BR /&gt;if(created&amp;gt;=today()-7, values)   //AGGR daily sum of values &lt;/PRE&gt;&lt;P&gt;But this is only works for that specific date range.&amp;nbsp;&lt;BR /&gt;So if I am to view something that is not within the 24 hour and 7 day selection the bar chart is blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need, is to write something that is dynamically and adapts to the selected date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i choose 01-03-2019. I would like to show the 24 hours of that date in the barchart.&amp;nbsp;&lt;BR /&gt;If i choose 01-03-2019. I would like to show the week Monday-Sunday this date is a part of..&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//something like

If created day 01-03-2019 is selected (show created&amp;gt;=today()-1)
if created day 01-03-2019 is selected (show Monday-Sunday of created&amp;gt;=today()-7)&lt;/PRE&gt;&lt;P&gt;Have no idea on how to incorporate&amp;nbsp;my selection in the expression..&amp;nbsp;??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:00:20 GMT</pubDate>
    <dc:creator>varmekontrol</dc:creator>
    <dc:date>2024-11-16T04:00:20Z</dc:date>
    <item>
      <title>Filter barchart depending on selection on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-barchart-depending-on-selection-on-date/m-p/1563137#M742717</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can anyone in here help me figure out how to make a bar chart&amp;nbsp;show the last 24 hours, last week (and so on) depending on the date selected?&lt;/P&gt;&lt;P&gt;Right now I am just using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if(created&amp;gt;=today()-1, values)   //For the last 24 hours&lt;BR /&gt;if(created&amp;gt;=today()-7, values)   //AGGR daily sum of values &lt;/PRE&gt;&lt;P&gt;But this is only works for that specific date range.&amp;nbsp;&lt;BR /&gt;So if I am to view something that is not within the 24 hour and 7 day selection the bar chart is blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need, is to write something that is dynamically and adapts to the selected date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i choose 01-03-2019. I would like to show the 24 hours of that date in the barchart.&amp;nbsp;&lt;BR /&gt;If i choose 01-03-2019. I would like to show the week Monday-Sunday this date is a part of..&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//something like

If created day 01-03-2019 is selected (show created&amp;gt;=today()-1)
if created day 01-03-2019 is selected (show Monday-Sunday of created&amp;gt;=today()-7)&lt;/PRE&gt;&lt;P&gt;Have no idea on how to incorporate&amp;nbsp;my selection in the expression..&amp;nbsp;??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-barchart-depending-on-selection-on-date/m-p/1563137#M742717</guid>
      <dc:creator>varmekontrol</dc:creator>
      <dc:date>2024-11-16T04:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter barchart depending on selection on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-barchart-depending-on-selection-on-date/m-p/1563157#M742718</link>
      <description>/*sales of previous day*/&lt;BR /&gt;sum({&amp;lt;[created]={"$(=date(max([created]-1)))"}&amp;gt;} Amount)&lt;BR /&gt;&lt;BR /&gt;/*sales of selected week*/&lt;BR /&gt;sum({&amp;lt;created={"&amp;gt;=$(=WeekStart(max(created)))&amp;lt;$(=dayname(WeekEnd(max(created))))"}&amp;gt;} Amount</description>
      <pubDate>Sun, 31 Mar 2019 05:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-barchart-depending-on-selection-on-date/m-p/1563157#M742718</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-31T05:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter barchart depending on selection on date</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-barchart-depending-on-selection-on-date/m-p/1563158#M742719</link>
      <description>If you want to include the current date to previous date value in example above you can do this&lt;BR /&gt;sales of previous day and current day*/&lt;BR /&gt;=sum({&amp;lt;[created]={"$(=date(max([created]-1)))","$(=date(max([created])))"}&amp;gt;} Amount)&lt;BR /&gt;</description>
      <pubDate>Sun, 31 Mar 2019 06:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-barchart-depending-on-selection-on-date/m-p/1563158#M742719</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-31T06:02:24Z</dc:date>
    </item>
  </channel>
</rss>

