<?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: Can a set expression be filtered, before and after calculation? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108975#M7463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inter-record functions in Qlik can give you something similar to table calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2018 00:04:56 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-07-20T00:04:56Z</dc:date>
    <item>
      <title>Can a set expression be filtered, before and after calculation?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108974#M7462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Let's say I have a set expression to calculate Sales Percent Share by month, by year:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Sum(Sales)/Sum(Total &amp;lt;Year, Month&amp;gt; Units)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;I want to calculate the percentage for my Top 5 Accounts - i.e. filter before the calculation, this is the default way a filter behaves.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;But in addition to that, I only want to show one Account at a time, without the percentages recalculating. If I filter to one Account right now, all the percentages go to 100%, because the data is being filtered pre-set expression calculation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;I'm more familiar with Tableau, and it's easy to do this using the LOOKUP function, to force the filter after the set expression (in Tableau you would call it a table calculation)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 23:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108974#M7462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T23:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can a set expression be filtered, before and after calculation?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108975#M7463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inter-record functions in Qlik can give you something similar to table calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 00:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108975#M7463</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-20T00:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can a set expression be filtered, before and after calculation?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108976#M7464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which function would you suggest using, and do you have to do it in the data load phase? `LookUp` for instance, can't be called in the design views.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 00:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108976#M7464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T00:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can a set expression be filtered, before and after calculation?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108977#M7465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you may be looking for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: verdana, geneva; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Account = {"=Rank(Sum(Sales)) &amp;lt; 6"}&amp;gt;}Sales)/Sum(Total &amp;lt;Year, Month&amp;gt; {&amp;lt;Account&amp;gt;} Units)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: verdana, geneva; font-size: 13px;"&gt;Sum({&amp;lt;Account = {"=Rank(Sum(Sales)) &amp;lt; 6"}&amp;gt;}Sales)/Sum(Total &amp;lt;Year, Month&amp;gt; {&amp;lt;Account &lt;STRONG style="color: #3d3d3d; font-family: verdana, geneva; font-size: 13px;"&gt;= {"=Rank(Sum({1} Sales)) &amp;lt; 6"}&lt;/STRONG&gt;&amp;gt;} Units)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 02:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108977#M7465</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-20T02:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can a set expression be filtered, before and after calculation?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108978#M7466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum(Sales)/Sum(Total Units), In this formula, your numerator and denominator will change per selections. If you don't have to change the denominator part use below formula Sum({1} Total Units), &lt;STRONG&gt;{1}&lt;/STRONG&gt; will give u the total irrespective of selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 05:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108978#M7466</guid>
      <dc:creator>parimikittu</dc:creator>
      <dc:date>2018-07-20T05:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can a set expression be filtered, before and after calculation?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108979#M7467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{1} doesn't give me what I'm looking for, because I'm looking for a subset of a subset. Using SUM({1} TOTAL Units) in the denominator gives you percent of the grand total, and I'm looking for percent of 5 selected accounts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 20:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-a-set-expression-be-filtered-before-and-after-calculation/m-p/108979#M7467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-23T20:47:12Z</dc:date>
    </item>
  </channel>
</rss>

