<?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: Modifier as initial filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633721#M446656</link>
    <description>&lt;P&gt;Kostas, any chance you can attach an example QVW file, I think in this case it may help you get what you want more quickly, as folks will be able to see everything they need in order to try to figure out why it is not working correctly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 14:27:56 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-10-10T14:27:56Z</dc:date>
    <item>
      <title>Modifier as initial filter</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633065#M446607</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Hi exprerts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have implemented a straight table and one of the expressions is the following&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;= Sum({&amp;nbsp; &amp;nbsp; &amp;lt; Year={$(=Year(Today())-1)},&amp;nbsp; &amp;nbsp; DayofYear={"&amp;lt;$(=DayNumberOfYear(Today()-2))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It calculates based on the&amp;nbsp;current selection ,&amp;nbsp; Last Year to Date ( LYTD)&amp;nbsp; sales.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However when I override the current selection of the dimension DayofYear ( e.g&amp;nbsp; select a specific day of year ) the modifier overrides values of current&amp;nbsp; selection&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any way to implement it ?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;In my point of view , I would like to represent a set of data where modifier works as an initial filter and then current selection &lt;SPAN&gt;overrides&amp;nbsp;&lt;/SPAN&gt;it .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633065#M446607</guid>
      <dc:creator>justwinebar</dc:creator>
      <dc:date>2024-11-16T19:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633071#M446609</link>
      <description>&lt;P&gt;couple of options. final answer depends on your data and use case.&lt;/P&gt;&lt;P&gt;1- you could replace today() with Max(DateField) or Max(&lt;SPAN&gt;DayofYear)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2- If above option is not possible. declare the expression with an if condition based on selection on&amp;nbsp;&lt;SPAN&gt;DayofYear i.e. if(GetSelectedCount(DayofYear)=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;,CurrentExpression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;,ExpressionWithoutDayofYear in set analysis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 13:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633071#M446609</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-10-09T13:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier as initial filter</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633095#M446613</link>
      <description>&lt;P&gt;Kostas, did Dilip's post help you get what you needed?&amp;nbsp; If so, please be sure to circle back and use the Accept as Solution button on his post to give him credit and let others know that worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other than that, about the best I have are the following links to try to help you find something that might work:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That one has some additional links to other posts in it as well, just FYI&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry I do not have anything better for you, but hopefully it may help if you are still working upon things.&amp;nbsp; Feel free to provide an update if you think someone may be able to still help with some additional details.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633095#M446613</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-09T14:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633105#M446615</link>
      <description>&lt;P&gt;Hi Dilip,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick update. I followed the second approach and it worked.&amp;nbsp; I ll mark it as solution .&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I would like to ask you&amp;nbsp; , what if I have in my expression many modifiers then I would end up with a huge "if then else statement" .&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess that it must be a "prettier" solution where selections of list boxes&amp;nbsp; will filter&amp;nbsp; the initial modified values by any expression .&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kostas&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>Wed, 09 Oct 2019 14:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633105#M446615</guid>
      <dc:creator>justwinebar</dc:creator>
      <dc:date>2019-10-09T14:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633107#M446617</link>
      <description>&lt;P&gt;set analysis mean value gets fixed to the one you give in it. (with some subtle tweaks possible)&lt;/P&gt;&lt;P&gt;if all you want is a default values you could use sheet level triggers and set the default ones.&lt;/P&gt;&lt;P&gt;Also want to add for set analysis in addition to bretts links.. also check out below document created by someone. its quite comprehensive&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633107#M446617</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-10-09T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier as initial filter</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633116#M446618</link>
      <description>&lt;P&gt;Another option using if statement can be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= Sum({&amp;lt;Year = {$(=Year(Today())-1)}, DayofYear = {"&amp;lt;$(=If(GetSelectedCount(DayOfYear) = 0, DayNumberOfYear(Today()-2), DayOfYear))"}&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;So, basically instead of doing the if statement at the expression level, you can do it at the set modifier level.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633116#M446618</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-09T14:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier as initial filter</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633712#M446655</link>
      <description>&lt;P&gt;Hi Sunny ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although it seems a better approach of constructing the exrpession , the result is not the expected. The&amp;nbsp;symbol of&amp;nbsp;inequality&amp;nbsp; (&amp;lt;) works the same in condition statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I need the following pseudo code to be represented in your equation&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; &amp;nbsp;(GetSelectedCount(DayOfYear) = 0&amp;nbsp; &amp;nbsp; &amp;nbsp; then&amp;nbsp; DayofYear&amp;nbsp; less or equal to&amp;nbsp;&amp;nbsp;DayNumberOfYear(Today()-2)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else&amp;nbsp; &amp;nbsp;DayofYear&amp;nbsp; equal to&amp;nbsp; DayofYear&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kostas&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633712#M446655</guid>
      <dc:creator>justwinebar</dc:creator>
      <dc:date>2019-10-10T14:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier as initial filter</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633721#M446656</link>
      <description>&lt;P&gt;Kostas, any chance you can attach an example QVW file, I think in this case it may help you get what you want more quickly, as folks will be able to see everything they need in order to try to figure out why it is not working correctly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633721#M446656</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-10T14:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier as initial filter</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633730#M446657</link>
      <description>&lt;P&gt;Isn't this what it is doing?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(GetSelectedCount(DayOfYear) = 0, DayNumberOfYear(Today()-2), DayOfYear)&lt;/LI-CODE&gt;&lt;P&gt;If nothing is selected use DayNumberOfYear(Today()-2), else use the DayOfYear selected&lt;/P&gt;&lt;P&gt;and we already have less than sign here....&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year = {$(=Year(Today())-1)}, DayofYear = {"&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;/FONT&gt;$(=If(GetSelectedCount(DayOfYear) = 0, DayNumberOfYear(Today()-2), DayOfYear))"}&amp;gt;} Sales)&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1633730#M446657</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-10T14:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier as initial filter</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1634106#M446675</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Sorry for being late in answering you, based on my knowledge&amp;nbsp; DayofYear will be always less than&amp;nbsp; &amp;nbsp;whatever is selected or not .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If nothing is selected use DayNumberOfYear(Today()-2), else use the DayOfYear selected

and we already have less than sign here....

=Sum({&amp;lt;Year = {$(=Year(Today())-1)}, DayofYear = {"&amp;lt;$(=If(GetSelectedCount(DayOfYear) = 0, DayNumberOfYear(Today()-2), DayOfYear))"}&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I have attached an example (I have translated the major components in english), and I have placed a button "Yesterday" and then both solutions (Sunny's and Dilip's)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.PNG" style="width: 748px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/21258i13DD5083B8B8B1CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.PNG" alt="example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kostas&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 08:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1634106#M446675</guid>
      <dc:creator>justwinebar</dc:creator>
      <dc:date>2019-10-11T08:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modifier as initial filter</title>
      <link>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1634196#M446678</link>
      <description>&lt;P&gt;There were few issues&lt;/P&gt;&lt;P&gt;1) Incorrect Parenthesis within the expression... might have been my mistake&lt;/P&gt;&lt;P&gt;2) The field name is Day&lt;FONT color="#FF0000"&gt;o&lt;/FONT&gt;fYear, but we were using Day&lt;FONT color="#FF0000"&gt;O&lt;/FONT&gt;fYear&lt;/P&gt;&lt;P&gt;3) The selection is taking place in the alternate state&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= Sum({&amp;lt;Year = {$(=Year(Today())-1)}, DayofYear = {"&amp;lt;$(=if(GetSelectedCount(DayofYear, ',', 100000, 'Main')= 0, DayNumberOfYear(Today()-1), DayofYear))"}&amp;gt;} AfterOrderDiscountValue)&lt;/LI-CODE&gt;&lt;P&gt;But remember this will only work if you directly make a selection in DayofYear field.... if you hope to make selection in other fields like day of month or day of week, then you might have change the expression based on the output you are looking to get&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 10:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modifier-as-initial-filter/m-p/1634196#M446678</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-11T10:58:32Z</dc:date>
    </item>
  </channel>
</rss>

