<?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: Filter on Calculated Variable in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1757054#M58415</link>
    <description>&lt;P&gt;Hi Kush,&lt;BR /&gt;&lt;BR /&gt;How would you u suggest to filter on the following measure&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Avg(Aggr( NoDistinct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fractile( {&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM)) &amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} ClientNormalizedPrice,0.75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,"Service SubCategory"))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 13:48:45 GMT</pubDate>
    <dc:creator>Yorick_Stevens</dc:creator>
    <dc:date>2020-10-29T13:48:45Z</dc:date>
    <item>
      <title>Filter on Calculated Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1757015#M58399</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I'm constructing a table for our travel team, analyzing the expense cities to where we travel.&lt;BR /&gt;One of the calculations i make is suggestion new expensive cities to be considered in our travel policy. (the result of the measure is a 1 or a 0, the variable is called&amp;nbsp;&lt;EM&gt;vNewExpensive&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Now i would like to filter on these in set analysis for my further calculations.&lt;BR /&gt;Currently I have something like this: [DestinationCity] = {"=$(=$(vNewExpensive))&amp;lt;1"} in my set analysis, but it doesn't seem to work&lt;BR /&gt;&lt;BR /&gt;vNewExpensive has the following expression:&lt;BR /&gt;if(&lt;BR /&gt;//Service Length has to be longer than 20&lt;BR /&gt;Sum({&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM))&amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} ServiceLength) &amp;gt;= 20&lt;BR /&gt;AND&lt;BR /&gt;//# Booking shas to be bigger than 0&lt;BR /&gt;Count({&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM)) &amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} Distinct ReservationNumber) &amp;gt;= 0&lt;BR /&gt;AND&lt;BR /&gt;//Difference between the Q3 of this destination and the 'Overall Q3' has to be bigger than 0&lt;BR /&gt;//Normal 3rd Quartile&lt;BR /&gt;Avg(Aggr( NoDistinct&lt;BR /&gt;Fractile( {&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM)) &amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} ClientNormalizedPrice,0.75)&lt;BR /&gt;,[DestinationCity]))&lt;BR /&gt;-&lt;BR /&gt;//Overall 3rd Quartile&lt;BR /&gt;Avg(Aggr( NoDistinct&lt;BR /&gt;Fractile( {&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM)) &amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} ClientNormalizedPrice,0.75)&lt;BR /&gt;,"Service SubCategory"))&amp;nbsp;&amp;gt; 0&lt;BR /&gt;,1,0)&lt;/P&gt;&lt;P&gt;Hoping anybody can help&lt;BR /&gt;Greetings Yorick&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 12:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1757015#M58399</guid>
      <dc:creator>Yorick_Stevens</dc:creator>
      <dc:date>2020-10-29T12:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on Calculated Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1757021#M58403</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/72510"&gt;@Yorick_Stevens&lt;/a&gt;&amp;nbsp; I don't think set analysis will work here but you can use expression like below&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;if(&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;//Service Length has to be longer than 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM))&amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} ServiceLength) &amp;gt;= 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//# Booking shas to be bigger than 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Count({&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM)) &amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} Distinct ReservationNumber) &amp;gt;= 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Difference between the Q3 of this destination and the 'Overall Q3' has to be bigger than 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Normal 3rd Quartile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Avg(Aggr( NoDistinct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fractile( {&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM)) &amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} ClientNormalizedPrice,0.75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,[DestinationCity]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Overall 3rd Quartile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Avg(Aggr( NoDistinct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fractile( {&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM)) &amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} ClientNormalizedPrice,0.75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,"Service SubCategory"))&amp;nbsp;&amp;gt; 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[DestinationCity]&amp;nbsp; &lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 12:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1757021#M58403</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-29T12:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on Calculated Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1757054#M58415</link>
      <description>&lt;P&gt;Hi Kush,&lt;BR /&gt;&lt;BR /&gt;How would you u suggest to filter on the following measure&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Avg(Aggr( NoDistinct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fractile( {&amp;lt; [ReferenceDate.Calendar.DateNum] = {"&amp;gt;=$(=$(SelectedDateMinYTM)) &amp;lt;$(=$(SelectedDateMaxYTM))"},ExpenseFlag={'0'}&amp;gt;} ClientNormalizedPrice,0.75)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,"Service SubCategory"))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 13:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1757054#M58415</guid>
      <dc:creator>Yorick_Stevens</dc:creator>
      <dc:date>2020-10-29T13:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on Calculated Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1760905#M58831</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;Any chance you can swing back by on this one to check the last update by the poster to see if you can add any further guidance?&amp;nbsp; Thanks in advance as always and sorry we are still having issues with notifications.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 22:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-on-Calculated-Variable-in-Set-Analysis/m-p/1760905#M58831</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-11-11T22:01:01Z</dc:date>
    </item>
  </channel>
</rss>

