<?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: Date filtering in set analysis for chart not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687965#M52467</link>
    <description>&lt;P&gt;Is your Shop Date numeric?&lt;/P&gt;&lt;P&gt;How does a filterbox with the field look like? Is it left or right aligned?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 335px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30629i9CC49D5C036838F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What happens if you use greater than&amp;nbsp; (&amp;gt;) instead of less (&amp;lt;) than in your set expression?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 08:00:45 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-03-26T08:00:45Z</dc:date>
    <item>
      <title>Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687925#M52450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to filter the data in my bar chart to only show the data with the date earlier than a date that is set by a user input variable.&lt;/P&gt;&lt;P&gt;I've tried using the following formula but it just gives me 0 for everything and does not show me the desired data. Is there something wrong with my set analysis expression for the date portion?&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Group]={'7401'},[Shop Date]={'&amp;lt;($(vSelectedOPMthDate))'}&amp;gt;}[Hr Clocked])&lt;/P&gt;&lt;P&gt;The "Group" portion of the set analysis is working fine, when I remove the&amp;nbsp;&lt;STRONG&gt;[Shop Date]={'&amp;lt;($(vSelectedOPMthDate))'}&amp;nbsp;&lt;/STRONG&gt; from the expression the plot appears again. It just does not work for the Shop Date portion.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687925#M52450</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687936#M52453</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You'll need double quotes for &amp;lt; comparison ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;[Group]={'7401'},[Shop Date]={"&amp;lt;($(vSelectedOPMthDate))"}&amp;gt;}[Hr Clocked])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 05:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687936#M52453</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2020-03-26T05:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687940#M52454</link>
      <description>&lt;P&gt;Thank you for your advice!&lt;/P&gt;&lt;P&gt;I just tried it though and it still did not work. The plot completely disappeared even if I changed the single quote to double quotes.&lt;/P&gt;&lt;P&gt;Any other possibility of what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 06:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687940#M52454</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-26T06:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687945#M52457</link>
      <description>&lt;P&gt;What's the definition of your variable&amp;nbsp;&lt;EM&gt;vSelectedOPMthDate?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 06:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687945#M52457</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-26T06:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687946#M52458</link>
      <description>&lt;P&gt;try this:&lt;BR /&gt;&lt;SPAN&gt;sum({$&amp;lt;[Group]={'7401'},[Shop Date]={"&amp;lt;$(vSelectedOPMthDate)"}&amp;gt;}[Hr Clocked])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 06:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687946#M52458</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2020-03-26T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687950#M52461</link>
      <description>&lt;P&gt;(MonthEnd(AddMonths(today(2),$(vSelectedOutputMonth))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where $(vSelectedOutputMonth) is either 0,1,2,3,etc as input by the user. Its a input variable that's supposed to represent number of months from this month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I display $(vSelectedOPMthDtae) it would show as 31/3/2020 if $(vSelectedOutputMonth) =0, and 30/4/2020, if $(vSelectedOutputMonth)=1, and so on.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 06:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687950#M52461</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-26T06:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687951#M52462</link>
      <description>&lt;P&gt;Thanks Lisa_P,&amp;nbsp; but still did not work:(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could it be due to my [Shop Date] being in numeric form when I display it, versus my $(vSelectedOPMthDate) being in DD/M/YYYY?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried &lt;FONT color="#800080"&gt;sum({$&amp;lt;[Group]={'7401'},[Shop Date]={"&amp;lt;&lt;STRONG&gt;date#(&lt;/STRONG&gt;$(vSelectedOPMthDate)&lt;STRONG&gt;)&lt;/STRONG&gt;"}&amp;gt;}[Hr Clocked])&lt;/FONT&gt;, but it did not work either.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 06:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687951#M52462</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-26T06:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687956#M52463</link>
      <description>&lt;P&gt;It could be that your vSelectedOutputMonth is intepreted as a double fraction 31/3/2020 = 0.00516.&lt;/P&gt;&lt;P&gt;Try adjusting your expression to the following (assuming DD/MM/YYYY is you default date format in the application).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;=sum({$&amp;lt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [Group]={'7401'},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [Shop Date]={&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&amp;lt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/FONT&gt;$(vSelectedOPMthDate)&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;'"&lt;/STRONG&gt;&lt;/FONT&gt;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;gt;}[Hr Clocked])&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 07:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687956#M52463</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-26T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687959#M52464</link>
      <description>&lt;P&gt;really appreciate your help and quick response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately it still does not work. Once I add in the portion to do with the [Shop Date] in the set analysis, the entire data set goes missing for that Group. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 07:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687959#M52464</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-26T07:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687960#M52465</link>
      <description>&lt;P&gt;can you change your load script to format the [Shop Date] by loading this way:&lt;/P&gt;&lt;P&gt;Load Date([Shop Date]) as [Shop Date],&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;It does seem a mismatch of data format&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 07:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687960#M52465</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2020-03-26T07:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687962#M52466</link>
      <description>&lt;P&gt;Just tried that but it did not work either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For troubleshooting purposes I tried to just substitute the variable with a fixed value of (today(2)+100), and even this made the bars on the chart disappear.&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Group]={'7401'},[Shop Date]={"&amp;lt;&lt;STRONG&gt;(today(2)+100)&lt;/STRONG&gt;"}&amp;gt;}[Hr Clocked])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which makes me believe something is wrong with the whole&amp;nbsp;&lt;FONT color="#0000FF"&gt;,[Shop Date]={"&amp;lt;&lt;STRONG&gt;(today(2)+100)&lt;/STRONG&gt;"}&amp;nbsp; &lt;FONT color="#000000"&gt;or&lt;/FONT&gt;&amp;nbsp;[Shop Date]={"&amp;lt;&lt;STRONG&gt;$(vSelectedOPMthDate)&lt;/STRONG&gt;"}&amp;nbsp;&lt;FONT color="#000000"&gt;expression that I add in, since&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;sum({$&amp;lt;[Group]={'7401'}&amp;gt;}[Hr Clocked]) &lt;/FONT&gt;&lt;FONT color="#000000"&gt;alone works fine.&lt;/FONT&gt;&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>Thu, 26 Mar 2020 07:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687962#M52466</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-26T07:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687965#M52467</link>
      <description>&lt;P&gt;Is your Shop Date numeric?&lt;/P&gt;&lt;P&gt;How does a filterbox with the field look like? Is it left or right aligned?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 335px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30629i9CC49D5C036838F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What happens if you use greater than&amp;nbsp; (&amp;gt;) instead of less (&amp;lt;) than in your set expression?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 08:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687965#M52467</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-26T08:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687973#M52468</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik help 2.PNG" style="width: 329px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30631i5F006C99726EDD08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Qlik help 2.PNG" alt="Qlik help 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's right handed but shows up in date format. I did the load with the date([Shop Date]) as [Shop Date] per a previous recommendation above.&lt;/P&gt;&lt;P&gt;Same thing happens when I use &amp;gt; greater than instead of &amp;lt; smaller than - the bars on the chart disappear and go to zero.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 08:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687973#M52468</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-26T08:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687981#M52471</link>
      <description>&lt;P&gt;Try this, notice the&amp;nbsp;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [Group]={'7401'},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [Shop Date]={"&amp;lt;'$(&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;=&lt;/FONT&gt;&lt;/STRONG&gt;vSelectedOPMthDate)'"}&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;gt;}[Hr Clocked])&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 08:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687981#M52471</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-26T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687987#M52474</link>
      <description>&lt;P&gt;I've just tried that as well, but it still fails to work and the entire series goes down to zero. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 08:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1687987#M52474</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-26T08:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1688340#M52495</link>
      <description>&lt;P&gt;If you can share a .qvf file with us, it would be easier to troubleshoot&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 00:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1688340#M52495</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2020-03-27T00:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1688341#M52496</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Lisa_P,&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, I'm still trying to get my administrator to pull the file out for me as it is currently on the hub server which I don't have direct access to at the moment.&lt;/P&gt;&lt;P&gt;However, just wanted to share that if I replaced the variable with a hard code date such as "30/06/2020", it works and the bar shows. But once I change it to "today(2)+100" or the variable "$(vSelectedOPMthDate)", it no longer works.&lt;/P&gt;&lt;P&gt;Is there an issue with Qliksense reading variables or date functions within set analysis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime, will work on getting the qvf file out and sharing it if possible!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 00:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1688341#M52496</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-27T00:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering in set analysis for chart not working</title>
      <link>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1688343#M52497</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Just wanted to update that I've finally solved it!!!!! So this was what was needed for the function to work. Read in another forum thread that we'd need another "$(=" for a function to be calculated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;sum({$&amp;lt;[Group]={'7401'}, [Shop Date]={"&amp;lt;$(=$(vSelectedOPMthDate))"}&amp;gt;}[Hr Clocked])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you for helping me to think through and troubleshoot this!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 00:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-filtering-in-set-analysis-for-chart-not-working/m-p/1688343#M52497</guid>
      <dc:creator>Sellls</dc:creator>
      <dc:date>2020-03-27T00:49:44Z</dc:date>
    </item>
  </channel>
</rss>

