<?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: Ignore selections in calculated dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86027#M752663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for the swift assistance! All solutions worked, If I could I would mark all answers as correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2018 12:51:29 GMT</pubDate>
    <dc:creator>joeallen</dc:creator>
    <dc:date>2018-10-29T12:51:29Z</dc:date>
    <item>
      <title>Ignore selections in calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86023#M752656</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 the following expression:&lt;/P&gt;&lt;P&gt;=Avg(Aggr(Sum({&amp;lt;DAYDIFF={"&amp;gt;$(=$(DelivCreationDays))"} &amp;gt;} ValueEUR), Date, Country))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which gives me the average daily (date) summarized value per country in my graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on above expression I want to see the top 5 countries for the max(date) (i.e yesterdays date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I did a calculated dimension with just a sum() since I only look at a date value, which seem to work with no filters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=IF(Aggr(Rank(SUM({&amp;lt;DAYDIFF={"&amp;gt;$(=$(DelivCreationDays))"},Date = {'$(=max(Date))'}&amp;gt;}ValueEUR)),Country)&amp;lt;=5,Country)&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Which gives me TR, IN, TH, UA, ET as result for date = 20181028. Which is correct.&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;However, I now need this to ignore all time selections in the calculated dimension e.g. Date, YearWeek, YearMonth because I always want to show above countries as top 5 countries no matter what period I look at. So if I select for example filter YearMonth=201801 it should show the January values for the countries above and thus have the calculated dimension still look at 20181028, and NOT look at max(date) = 20180131, which gives me other countries (EG, AR, IN, AE , IR).&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried using Date=, YearWeek=, YearMonth= in above expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=IF(Aggr(Rank(SUM({&amp;lt;DAYDIFF={"&amp;gt;$(=$(DelivCreationDays))"}, YearMonth=, YearWeek=, Date=, Date = {'$(=max(Date))'}&amp;gt;}ValueEUR)),Country)&amp;lt;=5,Country)&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but it doesn't work, it still gives me the top 5 countries of 20180131 if I select YearMonth=201801. Also not sure how Date= interacts when I also have Date = max (date) in same expression.&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;P&gt;Does somebody know what I do wrong and how to solve it? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86023#M752656</guid>
      <dc:creator>joeallen</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections in calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86024#M752658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe to use&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;Today() instead of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;max(Date)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;=IF(Aggr(Rank(SUM({&amp;lt;DAYDIFF={"&amp;gt;$(=$(DelivCreationDays))"},Date = {'$(=Today())'}&amp;gt;}ValueEUR)),Country)&amp;lt;=5,Country)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86024#M752658</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-29T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections in calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86025#M752660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is to ignore selection for Max(Date) using {1}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Aggr(Rank(Sum({&amp;lt;DAYDIFF = {"&amp;gt;$(=$(DelivCreationDays))"}, YearMonth, YearWeek, Date = {'$(=Max(&lt;SPAN style="color: #ff0000;"&gt;{1}&lt;/SPAN&gt;Date))'}&amp;gt;} ValueEUR)), Country) &amp;lt;= 5, Country)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86025#M752660</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-29T12:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections in calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86026#M752662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you select a date, max(Date) changes (it is no longer "yesterday"). Thus, the set statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Date = {'$(=max(Date))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;in your set analysis is not working properly. You have to use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date = {'$(=max({1} Date))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Or, if you prefer, just replace your calculated dimension by:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DAYDIFF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;$(=$(DelivCreationDays))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;YearWeek&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {'$(=max({1} Date))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ValueEUR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;BR /&gt; )&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;BR /&gt; &amp;lt;=5, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Bests,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jaime.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86026#M752662</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2018-10-29T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections in calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86027#M752663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for the swift assistance! All solutions worked, If I could I would mark all answers as correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/86027#M752663</guid>
      <dc:creator>joeallen</dc:creator>
      <dc:date>2018-10-29T12:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selections in calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/2012128#M1221795</link>
      <description>&lt;P&gt;Hi, recently , I met a same question. I need create a new dimension that 'OR Growth' and 'OR decrease' till now based on measure. The first pic is dimension, and for OR type is CY till OR- PY till OR which  is the second pic. When I select month, it's not show all the customers instead of  customers  have OR value  till that month. How to solve it?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StacyCui_0-1669988374816.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95288i3A6BC3A251A40B56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StacyCui_0-1669988374816.png" alt="StacyCui_0-1669988374816.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StacyCui_2-1669988429774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95290i7B800B2BB515A625/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StacyCui_2-1669988429774.png" alt="StacyCui_2-1669988429774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 13:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-selections-in-calculated-dimension/m-p/2012128#M1221795</guid>
      <dc:creator>StacyCui</dc:creator>
      <dc:date>2022-12-02T13:43:48Z</dc:date>
    </item>
  </channel>
</rss>

