<?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 Set_expression blocks regular user_selection in spite of $? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488961#M182727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart with the date as dimension and a COUNT(DISTINCT) as expression.&lt;/P&gt;&lt;P&gt;=&amp;gt; The tricky thing is, I need to display two values and a quota out of these two&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - One of those values is available every day (so it is there for today)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - The other is available only up to yesterday&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =&amp;gt; That would give me a quota of 100% for "today" which is false.&lt;/P&gt;&lt;P&gt;=&amp;gt; To avoid that, I have to block the display for "today"&lt;/P&gt;&lt;P&gt;=&amp;gt; To that end, I have a set_expression in my formula that looks something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;gt;&amp;gt; {$&amp;lt;%Date &amp;lt; TODAY&amp;gt;} &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; That set_expression works fine - but, what I didn't realize until now just because I never tested it - is that it seems to block regular user_selections on that same date_field &amp;gt;&amp;gt; %Date &amp;lt;&amp;lt; - when I select only one day on that field, the expression where I have that set_expression does not react, only the other one where I don't have it - which is again wrong &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me here?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2013 10:00:33 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-12-16T10:00:33Z</dc:date>
    <item>
      <title>Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488961#M182727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart with the date as dimension and a COUNT(DISTINCT) as expression.&lt;/P&gt;&lt;P&gt;=&amp;gt; The tricky thing is, I need to display two values and a quota out of these two&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - One of those values is available every day (so it is there for today)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - The other is available only up to yesterday&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =&amp;gt; That would give me a quota of 100% for "today" which is false.&lt;/P&gt;&lt;P&gt;=&amp;gt; To avoid that, I have to block the display for "today"&lt;/P&gt;&lt;P&gt;=&amp;gt; To that end, I have a set_expression in my formula that looks something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;gt;&amp;gt; {$&amp;lt;%Date &amp;lt; TODAY&amp;gt;} &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; That set_expression works fine - but, what I didn't realize until now just because I never tested it - is that it seems to block regular user_selections on that same date_field &amp;gt;&amp;gt; %Date &amp;lt;&amp;lt; - when I select only one day on that field, the expression where I have that set_expression does not react, only the other one where I don't have it - which is again wrong &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me here?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488961#M182727</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-16T10:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488962#M182728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can try like:&lt;/P&gt;&lt;P&gt; %Date={"&amp;lt;$(=TODAY())"}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488962#M182728</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-16T10:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488963#M182729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, unfortunately that doesn't work.&lt;/P&gt;&lt;P&gt;I had that set_expression slightly bigger, but yours works just the same - in this case, though, the result is the same:&lt;/P&gt;&lt;P&gt;- The formula works and the value for "today" is not displayed.&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; When I select CW 50 and then I select just Dec13 (Fri), still the whole week is displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488963#M182729</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-16T10:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488964#M182730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could please post a sample with expected output described?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488964#M182730</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-16T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488965#M182731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;{$&amp;lt;%Date &amp;lt; TODAY&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is not a valid set expression. You can't use a comparison operator like &amp;lt; in a field modifier.&lt;/P&gt;&lt;P&gt;Besides this, what is TODAY? A field? A variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488965#M182731</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-16T10:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488966#M182732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that set_expression in my first post was just an example. As I said, the real one does work insofar as the value for "today" (a variable) is not displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ tresesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to put together a sample - for some reason, now I get a value for every day of this week - there should be no values for the rest of the week, though...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488966#M182732</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-16T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488967#M182733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think now I've made it. I'll attach&lt;/P&gt;&lt;P&gt;- an Excel file with some fake personell_data&lt;/P&gt;&lt;P&gt;- a qvw to display the&amp;nbsp; presence_quota&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see, sickness_data is not available for "today", only presence_data is available -&amp;gt; so I get a presence_quota of 100% for "today" which would be wrong&lt;/P&gt;&lt;P&gt;=&amp;gt;´To avoid that, I introduced that set_expression to display the values only up to "yesterday"&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; That now seems to block any regular user_selections on that date_field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 11:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488967#M182733</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-16T11:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488968#M182734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems I've made it.&lt;/P&gt;&lt;P&gt;Reading up on "set operators", I realized what I should be using: The "-=" operator.&lt;/P&gt;&lt;P&gt;I ended up with this formula (irritatingly, it is nearly all underlined in the editor, but it says "Expression ok", and it seems to be working:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%Datum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'16.12.2013'}&amp;gt;} DISTINCT Pers_Nr5) &amp;lt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I only now have to dynamize today's date. But the effect is what I wished for: The user can select any one day from the week before - but the value is not displayed for today.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DataNibbler&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 12:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488968#M182734</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-16T12:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488969#M182735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you already tried using a dollar sign expansion similar to what tresesco suggested above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%Datum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'$(=today())'}&amp;gt;} DISTINCT Pers_Nr5) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 12:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488969#M182735</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-16T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488970#M182736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I have.&lt;/P&gt;&lt;P&gt;It seems to be working now.&lt;/P&gt;&lt;P&gt;Thank you all!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 13:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488970#M182736</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-16T13:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set_expression blocks regular user_selection in spite of $?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488971#M182737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works now all right - I just find it very confusing that the expression_editor underlines nearly the entire expression - and says "Expression OK" at the same time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think that has already been entered as an "idea" at least once. Do you think that the editor is ever going to be up to all the functions QlikView can perform?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 08:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-blocks-regular-user-selection-in-spite-of/m-p/488971#M182737</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-17T08:22:07Z</dc:date>
    </item>
  </channel>
</rss>

