<?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: How do you filter a calculated field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427561#M159330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;see the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Apr 2013 05:37:39 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-04-06T05:37:39Z</dc:date>
    <item>
      <title>How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427554#M159323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I'm new to QlikView... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, how do you filter a calcuated field?&amp;nbsp; I have the following scenio:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When posting payments, the "Payment Facility" should match the "Claim Facilty".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following straight table was created:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Claim Facility&amp;nbsp; |&amp;nbsp; Payment Facility&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility A&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility A&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility B&lt;/P&gt;&lt;P&gt;Facility B&amp;nbsp; |&amp;nbsp; Facility B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a calculated field to show when the Claim Facility did not equal the Payment Facility:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Claim Facility&amp;nbsp; |&amp;nbsp; Payment Facility&amp;nbsp; |&amp;nbsp; FacilityMatch?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility A&amp;nbsp; |&amp;nbsp; Yes&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility A&amp;nbsp; |&amp;nbsp; Yes&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility B&amp;nbsp; |&amp;nbsp; No&lt;/P&gt;&lt;P&gt;Facility B&amp;nbsp; |&amp;nbsp; Facility B&amp;nbsp; |&amp;nbsp; Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I need QlikView to do, is to allow the user to have the option to filter (listbox):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;FacilityMatch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And... allow the user to view either all the Yes rows:&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility A&amp;nbsp; |&amp;nbsp; Yes&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility A&amp;nbsp; |&amp;nbsp; Yes&lt;/P&gt;&lt;P&gt;Facility B&amp;nbsp; |&amp;nbsp; Facility B&amp;nbsp; |&amp;nbsp; Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or... all the No rows:&lt;/P&gt;&lt;P&gt;Facility A&amp;nbsp; |&amp;nbsp; Facility B&amp;nbsp; |&amp;nbsp; No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; This is a simple task in Excel.&amp;nbsp; As soon as I export the list to excel and turn on filters... there it is... Yes/No filter options.&amp;nbsp; So how does this same functionality work in QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance on this would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 16:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427554#M159323</guid>
      <dc:creator />
      <dc:date>2013-04-05T16:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427555#M159324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to calculate the field in the script. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;load *,&lt;STRONG&gt; if([Claim Facility]=[Payment Facility],'Yes','No') as FacilityMatch&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;Row, Claim Facility&amp;nbsp; ,&amp;nbsp; Payment Facility&lt;/P&gt;&lt;P&gt;1,Facility A&amp;nbsp; ,&amp;nbsp; Facility A&lt;/P&gt;&lt;P&gt;2,Facility A&amp;nbsp; ,&amp;nbsp; Facility A&lt;/P&gt;&lt;P&gt;3,Facility A&amp;nbsp; ,&amp;nbsp; Facility B&lt;/P&gt;&lt;P&gt;4,Facility B&amp;nbsp; ,&amp;nbsp; Facility B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because FacilityMatch is a field you can select a value in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do this in a chart you can use &lt;EM&gt;if([Claim Facility]=[Payment Facility],'Yes') &lt;/EM&gt;to show only the matching records or&lt;EM&gt; if([Claim Facility]&amp;lt;&amp;gt;[Payment Facility],'No')&lt;/EM&gt; to show the non-matching records. Clicking on a value in an expression won't select the value of the expression, but the values of the dimension values in the same row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 16:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427555#M159324</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-05T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427556#M159325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the fast reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My only question is, I don’t understand how the row:&amp;nbsp; 1 , 2, 3, and 4 would apply in my situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We currently have ~30 facilities, the combinations are endless (and the table source data can be updated/changed at any time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;Does Claim Facility = Payment Facility in each row listed?&amp;nbsp; Then allow the user to view:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; All rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Only the ones that matched (Yes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Only the ones that didn’t match (No)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I still use the below recommendation… but not have to key in all of the possible combinations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 17:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427556#M159325</guid>
      <dc:creator />
      <dc:date>2013-04-05T17:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427557#M159326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your attached QV example worked perfectly.&amp;nbsp; I was able to add a list box and choose No’s only.&lt;/P&gt;&lt;P&gt;So how can your Load Script be changed to work for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, if([Claim Facility]=[Payment Facility],'Yes','No') as FacilityMatch …?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You added row data, but mine creates rows from loaded table fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loaded field name:&amp;nbsp; ClaimFacilityName;&amp;nbsp; Column renamed in QV:&amp;nbsp; Claim Facility&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loaded field name:&amp;nbsp; FacilityName;&amp;nbsp; Column renamed in QV:&amp;nbsp; Payment Facility&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried too many combinations of your script… and I still can’t get it to work in my script.&amp;nbsp; It loads 0 lines or errors on the reload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 19:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427557#M159326</guid>
      <dc:creator />
      <dc:date>2013-04-05T19:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427558#M159327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please correct me .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am,providing the solution as per my understanding .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have expression in&amp;nbsp; the ListBox as &lt;/P&gt;&lt;P&gt;=if([ClaimFacility] = [PaymentFacility], 'Yes', 'No')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you select 'Yes' in ListBox ,&amp;nbsp; the Matched Rows get selected .&lt;/P&gt;&lt;P&gt;and when you select 'No' in ListBox&amp;nbsp; , the Non Matched Rows get selected .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 19:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427558#M159327</guid>
      <dc:creator />
      <dc:date>2013-04-05T19:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427559#M159328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried an expression list box… it seemed like it was going to work, then when I choose “No”, my Yes’s and No’s were still there and the current selections box displayed:&lt;/P&gt;&lt;P&gt;Claim Facility:  All&lt;/P&gt;&lt;P&gt;Payment Facility:  19 of 44&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like it to display:&lt;/P&gt;&lt;P&gt;FacilityMatch:  No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And just show me the “No” rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried the load inline statement recommended above… and I don’t know how to apply it to my QV.  ie… The row data included in the example script, doesn’t apply to my QV.  The rows were keyed in.  My rows comes from fields from loaded tables.  I don’t know how to take the Row lines and change the script to meet my needs.  The attached QV example is working just like how I would like my QV to work.  How to I apply the same script to loaded tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further assistance would be GREATLY appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 20:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427559#M159328</guid>
      <dc:creator />
      <dc:date>2013-04-05T20:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427560#M159329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;As you said After selecting the 'Yes' in Listbox still it is sowing all values even though you have used the Expression &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800002098083496px; background-color: #ffffff;"&gt;=if([ClaimFacility] = [PaymentFacility], 'Yes', 'No')&lt;/SPAN&gt; in the List Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide the Screen Shot .&lt;/P&gt;&lt;P&gt;So that i can be helpful to resolve your issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 21:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427560#M159329</guid>
      <dc:creator />
      <dc:date>2013-04-05T21:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427561#M159330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;see the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 05:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427561#M159330</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-04-06T05:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter a calculated field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427562#M159331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I also came across this problem, I did two calculate field in straight table and the drill-down button &lt;/P&gt;&lt;P&gt;didn't work well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a would like to know if someone have any idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 08:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-filter-a-calculated-field/m-p/427562#M159331</guid>
      <dc:creator />
      <dc:date>2013-08-12T08:29:25Z</dc:date>
    </item>
  </channel>
</rss>

