<?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 Calculated Column and Filter Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Column-and-Filter-Issue/m-p/1579620#M442744</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a question about a issue in a calculated column and filter.&lt;/P&gt;&lt;P&gt;I've created a formula that return the values correctly.&lt;/P&gt;&lt;P&gt;When I put this same formula in a calculated column in the pivot, it returns the correct values.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But when I have a filter with this same calculation and then filter the data, the pivot returns me the wrong values.&lt;/P&gt;&lt;P&gt;Can you help, please?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;The formula used for calculated column in pivot and filter is this one:&lt;/P&gt;&lt;P&gt;=if(not match([FIELD 1],'STRING 1','STRING 2') and [FIELD 2] = '*', 'RESULT 1',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 1','STRING 2') and not match([FIELD 2],'STRING 4','STRING 3','STRING 5'),'RESULT 1',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 1') and WildMatch([FIELD 2],'STRING 6'),'RESULT 2',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 1') and WildMatch([FIELD 2],'STRING 5'),'RESULT 2',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 2') and WildMatch([FIELD 2],'STRING 6'),'RESULT 2',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 2') and WildMatch([FIELD 2],'STRING 5'),'RESULT 2',&lt;/P&gt;&lt;P&gt;if(IsNull([FIELD 2])=1,'RESULT 1',&lt;/P&gt;&lt;P&gt;if(len([FIELD 2])=0, 'RESULT 1',&lt;BR /&gt;if([FIELD 1]='*' and [FIELD 2] ='*', 'RESULT 1','RESULT 1')))))))))&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:52:49 GMT</pubDate>
    <dc:creator>hs219</dc:creator>
    <dc:date>2024-11-16T20:52:49Z</dc:date>
    <item>
      <title>Calculated Column and Filter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Column-and-Filter-Issue/m-p/1579620#M442744</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a question about a issue in a calculated column and filter.&lt;/P&gt;&lt;P&gt;I've created a formula that return the values correctly.&lt;/P&gt;&lt;P&gt;When I put this same formula in a calculated column in the pivot, it returns the correct values.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But when I have a filter with this same calculation and then filter the data, the pivot returns me the wrong values.&lt;/P&gt;&lt;P&gt;Can you help, please?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;The formula used for calculated column in pivot and filter is this one:&lt;/P&gt;&lt;P&gt;=if(not match([FIELD 1],'STRING 1','STRING 2') and [FIELD 2] = '*', 'RESULT 1',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 1','STRING 2') and not match([FIELD 2],'STRING 4','STRING 3','STRING 5'),'RESULT 1',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 1') and WildMatch([FIELD 2],'STRING 6'),'RESULT 2',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 1') and WildMatch([FIELD 2],'STRING 5'),'RESULT 2',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 2') and WildMatch([FIELD 2],'STRING 6'),'RESULT 2',&lt;/P&gt;&lt;P&gt;if(WildMatch([FIELD 1],'STRING 2') and WildMatch([FIELD 2],'STRING 5'),'RESULT 2',&lt;/P&gt;&lt;P&gt;if(IsNull([FIELD 2])=1,'RESULT 1',&lt;/P&gt;&lt;P&gt;if(len([FIELD 2])=0, 'RESULT 1',&lt;BR /&gt;if([FIELD 1]='*' and [FIELD 2] ='*', 'RESULT 1','RESULT 1')))))))))&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Column-and-Filter-Issue/m-p/1579620#M442744</guid>
      <dc:creator>hs219</dc:creator>
      <dc:date>2024-11-16T20:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column and Filter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Column-and-Filter-Issue/m-p/1579637#M442745</link>
      <description>i would suggest doing this calculation in the load script and create a column. Use that column in your table and filter</description>
      <pubDate>Mon, 13 May 2019 16:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Column-and-Filter-Issue/m-p/1579637#M442745</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-13T16:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column and Filter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Column-and-Filter-Issue/m-p/1579642#M442746</link>
      <description>Is not possible to do in that way because the columns are from different tables and isn't possible to join them on script.</description>
      <pubDate>Mon, 13 May 2019 16:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Column-and-Filter-Issue/m-p/1579642#M442746</guid>
      <dc:creator>hs219</dc:creator>
      <dc:date>2019-05-13T16:29:53Z</dc:date>
    </item>
  </channel>
</rss>

