<?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: Trigger to Filter data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196298#M875832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adil,&lt;/P&gt;&lt;P&gt;It really sounds like you're looking for different expression calculation based on what dimensions are expanded in a pivot table.&lt;/P&gt;&lt;P&gt;If that's the case, as I thought about it the only other thing I could suggest is to use Dimensionality().&lt;/P&gt;&lt;P&gt;Dimensionality will tell you how many dimensions are expanded in a pivot table row.&lt;/P&gt;&lt;P&gt;So then in your expression you could do something like if(Dimensionality()=5, Expression1,Expression2).&lt;/P&gt;&lt;P&gt;I've never implemented something like that so but it should work.&lt;/P&gt;&lt;P&gt;That said, I have no idea what performance on something like that would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2016 20:36:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-04T20:36:57Z</dc:date>
    <item>
      <title>Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196289#M875823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I have been trying to find a solution to this problem but to no avail! Anyone with ideas?Or is this not possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Year&amp;nbsp; Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;2014 1/1/2014&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2014 1/3/2014&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2015 1/4/2015&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2015 1/6/2015&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2014 1/2/2014&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2015 1/8/2014&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2014 1/1/2014&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2014 1/3/2014&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2015 1/4/2015&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2015 1/6/2015&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2014 1/2/2014&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2015 1/8/2014&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&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;When I pick a Year, I want data to filter to only show latest dates per store, and sum sales for this.&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;For ex: Pick Year in list box= 2014 , Data should filter to this:&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 style="font-size: 13.3333px;"&gt;Year&amp;nbsp; Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store&amp;nbsp; Sales&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2014 1/3/2014&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2014 1/3/2014&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have tried triggers and aggr, but no success!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Please help!Thanks in advance!&lt;BR /&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196289#M875823</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196290#M875824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the attached will help...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MaxDate.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142237_MaxDate.jpg" style="height: 331px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196290#M875824</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-10-27T16:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196291#M875825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the Sales, use the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(FirstSortedValue(Sales,-Date), Store, Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show the corresponding Date in the chart, use&lt;/P&gt;&lt;P&gt;Date(Max(Date))&lt;/P&gt;&lt;P&gt;as either an expression or a calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196291#M875825</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-10-27T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196292#M875826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for ur response! I tried this and its not working in my application.I have attached my qvw and the data.As you will see, it is returning sales 0 in the table.Any ideas please? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance! !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 07:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196292#M875826</guid>
      <dc:creator />
      <dc:date>2016-10-28T07:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196293#M875827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also create a (1 or 0) flag in your load script to identify which record by store and year is the most recent one. Then your expression because simple sum(Sales*Flag) .&lt;/P&gt;&lt;P&gt;Whichever way you do it,I think you want the aggregate to the lowest level of granularity that you're going to display in your chart.&amp;nbsp; &lt;/P&gt;&lt;P&gt;In the qvw you attached, your lowest level of granualarity displayed in the pivot table where you're using Rob's formula is actually [Store No] not [Store].&amp;nbsp; I believe that is why you're having problems utilizing it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 21:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196293#M875827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-28T21:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196294#M875828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guilibaldo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you response.Yes, I did notice that it is working only at the lowest level of hierarchy.However, my requirement is that it needs to work on an intermediate level as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding using a flag, I did try this but i ran into an issue.My application should work such that if I select 2 out of 3 years, data should filter out such that only the latest dates for each Store No should be present and the sales should reflect the same.Also another situation: a Store No might not have a sale in 2016, but might have in 2015.So I felt the Flag system would not work. Unless you have a slightly different approach in mind?Please do let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am starting to lose hope that this is even possible to implement in Qlikview!Any help is much appreciated! Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2016 03:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196294#M875828</guid>
      <dc:creator />
      <dc:date>2016-10-29T03:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196295#M875829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adil, &lt;/P&gt;&lt;P&gt;It sounds like you want a different expression for each level you might display.&lt;/P&gt;&lt;P&gt;If you're going to show these different values and different levels of detail in different charts, you can do it.&amp;nbsp; Each one just becomes a separate expression with it's own calculation.&amp;nbsp; Again it's the lowest level of granualarity displayed within your chart.&amp;nbsp; If your lowest level in a chart is Store then you create your expression based on that.&amp;nbsp; If it is Store No, then you create your expression based on that.&amp;nbsp; &lt;/P&gt;&lt;P&gt;However, if you think the expression is going to change based on whether you have a field expanded in a pivot table or not, then I'd have to agree with you that I don't think that's possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 14:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196295#M875829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-31T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196296#M875830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using your example chart, the expression qould be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(FirstSortedValue(Sales,-VisitDate), [Store No]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll want to aggregate over [Store no].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 21:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196296#M875830</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-10-31T21:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196297#M875831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find the latest dates by store and not Store No...Is there anyway to do this?Any help is much appreciated!Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 02:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196297#M875831</guid>
      <dc:creator />
      <dc:date>2016-11-01T02:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to Filter data</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196298#M875832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adil,&lt;/P&gt;&lt;P&gt;It really sounds like you're looking for different expression calculation based on what dimensions are expanded in a pivot table.&lt;/P&gt;&lt;P&gt;If that's the case, as I thought about it the only other thing I could suggest is to use Dimensionality().&lt;/P&gt;&lt;P&gt;Dimensionality will tell you how many dimensions are expanded in a pivot table row.&lt;/P&gt;&lt;P&gt;So then in your expression you could do something like if(Dimensionality()=5, Expression1,Expression2).&lt;/P&gt;&lt;P&gt;I've never implemented something like that so but it should work.&lt;/P&gt;&lt;P&gt;That said, I have no idea what performance on something like that would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 20:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-Filter-data/m-p/1196298#M875832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-04T20:36:57Z</dc:date>
    </item>
  </channel>
</rss>

