<?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: Disregarding date selection does not work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276522#M400877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, one follow-up question: I have a text file where I define the variable and I load the text file during reload. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET eAnzahlAnzeigen31TageOhneZeitDimension = (Count({$&amp;lt;AdPublished={"&amp;gt;=$(=Date(Today()-31))"},Jahr=,Monat=&amp;gt;}DISTINCT AdID)); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reload the variable appears like this:&lt;/P&gt;&lt;P&gt;(Count({$&amp;lt;AdPublished={"&amp;gt;="},Jahr=,Monat=&amp;gt;}DISTINCT AdID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how I can overcome this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 09:41:34 GMT</pubDate>
    <dc:creator>nigel987</dc:creator>
    <dc:date>2017-01-19T09:41:34Z</dc:date>
    <item>
      <title>Disregarding date selection does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276519#M400874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date field called AdPublished, and two filters on the Jahr (=Year(AdPublished)) and Monat (=Month(AdPublished)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count all AdIDs of the user in the last 31 days (Anzahl Anzeigen 31 Tage) !, disregarding any data selection. For that I use the variable =$(eAnzahlAnzeigen31TageOhneZeitDimension) which is actually:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Count({$&amp;lt;AdPublished={"=AdPublished&amp;gt;=Date(Today()-31)"},Jahr=,Monat=&amp;gt;}DISTINCT AdID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Problem: &lt;/P&gt;&lt;P&gt;When I make a selection in the field Jahr or Monat, the value changes and I do not understand why. Appreciate any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR, Nigel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 09:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276519#M400874</guid>
      <dc:creator>nigel987</dc:creator>
      <dc:date>2017-01-19T09:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding date selection does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276520#M400875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;AdPublished={"&amp;gt;=$(=Date(Today()-31))"},Jahr=,Monat=&amp;gt;}DISTINCT AdID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;selections on Jahr and Monat were still being applied to your set modifier &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"=AdPublished&amp;gt;=Date(Today()-31)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 09:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276520#M400875</guid>
      <dc:creator>adamwilson</dc:creator>
      <dc:date>2017-01-19T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding date selection does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276521#M400876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Adam! That's exactly what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 09:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276521#M400876</guid>
      <dc:creator>nigel987</dc:creator>
      <dc:date>2017-01-19T09:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding date selection does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276522#M400877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, one follow-up question: I have a text file where I define the variable and I load the text file during reload. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET eAnzahlAnzeigen31TageOhneZeitDimension = (Count({$&amp;lt;AdPublished={"&amp;gt;=$(=Date(Today()-31))"},Jahr=,Monat=&amp;gt;}DISTINCT AdID)); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reload the variable appears like this:&lt;/P&gt;&lt;P&gt;(Count({$&amp;lt;AdPublished={"&amp;gt;="},Jahr=,Monat=&amp;gt;}DISTINCT AdID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how I can overcome this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 09:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276522#M400877</guid>
      <dc:creator>nigel987</dc:creator>
      <dc:date>2017-01-19T09:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding date selection does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276523#M400878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because of the dollar expansion $() expanding in the script rather than keeping it in the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer to load variables from a spreadsheet with 2 columns Name and Expression eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;eAnzahlAnzeigen31TageOhneZeitDimension&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Count({$&amp;lt;AdPublished={"=AdPublished&amp;gt;=Date(Today()-31)"},Jahr=,Monat=&amp;gt;}DISTINCT AdID)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and use the below script to load them in which overcomes the expanding of $() in the script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14848194924017192" jivemacro_uid="_14848194924017192" modifiedtitle="true"&gt;
&lt;P&gt;Variables: &lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression &lt;/P&gt;
&lt;P&gt;FROM &lt;/P&gt;
&lt;P&gt;Variables.xlsx &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;(ooxml, embedded labels, table is Sheet1); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For i = 0 to NoOfRows('Variables')-1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vVariableName = Peek('Name',i,'Variables'); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET $(vVariableName) = Peek('Expression',i,'Variables');&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;NEXT &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Tables Variables; &lt;/P&gt;
&lt;P&gt;i=NULL(); &lt;/P&gt;
&lt;P&gt;vVariableName=NULL();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 09:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Disregarding-date-selection-does-not-work/m-p/1276523#M400878</guid>
      <dc:creator>adamwilson</dc:creator>
      <dc:date>2017-01-19T09:57:13Z</dc:date>
    </item>
  </channel>
</rss>

