<?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: Custom Classification Filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719496#M54675</link>
    <description>&lt;P&gt;I'm sorry, you're right. I simplified the example a great deal compared to my real data so I expected it wouldn't show the -500 but I've now created a new app with just the example data used here and the -500 does show. The original post has been edited.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 07:18:02 GMT</pubDate>
    <dc:creator>TimmyCNHi</dc:creator>
    <dc:date>2020-06-17T07:18:02Z</dc:date>
    <item>
      <title>Custom Classification Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719278#M54657</link>
      <description>&lt;P&gt;Good day everyone&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have some kind of 'Savings overview' dashboard that allows people to filter all sorts of criteria. One of the Columns in the dashboard table has the following calculation:&lt;/P&gt;&lt;P&gt;=sum(if(CostOrSaving='S',&lt;BR /&gt;[Amount]))&lt;BR /&gt;-sum(if(CostOrSaving='C',&lt;BR /&gt;[Amount]))&lt;/P&gt;&lt;P&gt;In the Data manager I have created a Calculated field called Classes that does the following calculation:&lt;/P&gt;&lt;P&gt;If(Amount&amp;gt;=1000,'A',&lt;BR /&gt;If(Amount&amp;gt;=800,'B',&lt;BR /&gt;If(Amount&amp;gt;=500,'C',&lt;BR /&gt;If(Amount&amp;lt;500,'D'))))&lt;/P&gt;&lt;P&gt;This is pretty much how my source data looks like:&lt;/P&gt;&lt;TABLE width="363"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Project&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="82"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;STRONG&gt;CostOrSaving&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;STRONG&gt;Classes&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Donkey&lt;/TD&gt;&lt;TD&gt;14/01/2020&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;TD width="64"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Donkey&lt;/TD&gt;&lt;TD&gt;29/01/2020&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;700&lt;/TD&gt;&lt;TD width="64"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Donkey&lt;/TD&gt;&lt;TD&gt;07/02/2020&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;TD width="64"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Donkey&lt;/TD&gt;&lt;TD&gt;18/02/2020&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD width="64"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Giraffe&lt;/TD&gt;&lt;TD&gt;25/02/2020&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;TD width="64"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Giraffe&lt;/TD&gt;&lt;TD&gt;14/03/2020&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;1700&lt;/TD&gt;&lt;TD width="64"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When no filters are applied, the table in my dashboard shows something like:&lt;/P&gt;&lt;TABLE width="234px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="101px"&gt;&lt;STRONG&gt;Project&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="132px"&gt;&lt;STRONG&gt;Total Saving&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="101px"&gt;Donkey&lt;/TD&gt;&lt;TD width="132px"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="101px"&gt;Giraffe&lt;/TD&gt;&lt;TD width="132px"&gt;900&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I apply 'A' in the Classes filter, it shows something like this:&lt;/P&gt;&lt;TABLE width="234px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="101px" height="25px"&gt;&lt;STRONG&gt;Project&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="132px" height="25px"&gt;&lt;STRONG&gt;Total Saving&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Donkey&lt;/TD&gt;&lt;TD&gt;-500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="101px" height="25px"&gt;Giraffe&lt;/TD&gt;&lt;TD width="132px" height="25px"&gt;1700&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it's basically performing the filter first, then does the calculation in the table while it should work the other way around. This is the goal:&lt;/P&gt;&lt;TABLE width="234px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="101px"&gt;&lt;STRONG&gt;Project&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="132px"&gt;&lt;STRONG&gt;Total Saving&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="101px"&gt;Donkey&lt;/TD&gt;&lt;TD width="132px"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I achieve this? I'm using Qlik Sense Desktop April 2020 Patch 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Timmy&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719278#M54657</guid>
      <dc:creator>TimmyCNHi</dc:creator>
      <dc:date>2024-11-16T18:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Classification Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719289#M54659</link>
      <description>&lt;P&gt;I am not sure how you came up with the expected output? Can you share why would you see only Donkey and with 1000? Also, currently it is only showing Giraffe? It doesn't show Donkey with -500 when A is selected?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719289#M54659</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-06-16T13:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Classification Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719496#M54675</link>
      <description>&lt;P&gt;I'm sorry, you're right. I simplified the example a great deal compared to my real data so I expected it wouldn't show the -500 but I've now created a new app with just the example data used here and the -500 does show. The original post has been edited.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 07:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719496#M54675</guid>
      <dc:creator>TimmyCNHi</dc:creator>
      <dc:date>2020-06-17T07:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Classification Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719999#M54745</link>
      <description>&lt;P&gt;I guess if you have selected A, why are expecting to see 1000 for Donkey? Regardless of the order of operation, if A is selected there are only tow rows for Donkey which has A. I think you might need to elaborate a little more as to how you end up with the expected output&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 12:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1719999#M54745</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-06-18T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Classification Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1720291#M54779</link>
      <description>&lt;P&gt;Thank you for your feedback, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;. Good point! The logic I'm trying to achieve is that project 'Donkey' has a cost of 1500 and a combined saving of 2500, resulting in a total saving of 1000. So it should first perform the calculation (as it currently already does in the table) but then afterwards assign the 'A' classification. I understand this logic may be somewhat paradoxical and therefore impossible (?) but maybe there is a way to attack this. Perhaps I shouldn't classify the values in the data manager but rather add a measure column in the sheet's table.&lt;/P&gt;&lt;P&gt;Edit: adding this to the table was easy as Qlik allowed me to refer to the 'Saving' column but I can't seem to be able to refer to the 'ProjectClass' column from the filter.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35856i36ED33B2C4A2602E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 11:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1720291#M54779</guid>
      <dc:creator>TimmyCNHi</dc:creator>
      <dc:date>2020-06-19T11:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Classification Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1720378#M54793</link>
      <description>&lt;P&gt;But Giraffe was associated with class A once too.. why did we remove Giraffe and only kept Donkey?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 14:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1720378#M54793</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-06-19T14:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Classification Filter</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1720706#M54808</link>
      <description>&lt;P&gt;Good morning!&lt;/P&gt;&lt;P&gt;Ah but in project Giraffe there's a cost of 800 and a saving of 1700, meaning its total saving dunks below the required 1000 to attain the 'A' status. At 900 it should be appointed the B status (800-999).&lt;/P&gt;&lt;TABLE width="363"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Giraffe&lt;/TD&gt;&lt;TD&gt;25/02/2020&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;TD width="64"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Giraffe&lt;/TD&gt;&lt;TD&gt;14/03/2020&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;1700&lt;/TD&gt;&lt;TD width="64"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I'm on the right track with appointing the class in the table, I just need to be able to filter that column with a filter pane.&lt;/P&gt;&lt;TABLE border="1" width="42.79891304347825%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="10.326086956521738%" height="40px"&gt;Project&lt;/TD&gt;&lt;TD width="13.315217391304344%" height="40px"&gt;Saving&lt;/TD&gt;&lt;TD width="19.39850990385696%" height="40px"&gt;ProjectClass&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10.326086956521738%" height="19px"&gt;Donkey&lt;/TD&gt;&lt;TD width="13.315217391304344%" height="19px"&gt;1000&lt;/TD&gt;&lt;TD width="19.39850990385696%" height="19px"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10.326086956521738%" height="25px"&gt;Giraffe&lt;/TD&gt;&lt;TD width="13.315217391304344%" height="25px"&gt;900&lt;/TD&gt;&lt;TD width="19.39850990385696%" height="25px"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 22 Jun 2020 07:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Classification-Filter/m-p/1720706#M54808</guid>
      <dc:creator>TimmyCNHi</dc:creator>
      <dc:date>2020-06-22T07:03:02Z</dc:date>
    </item>
  </channel>
</rss>

