<?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: If match condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348506#M826637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't get your question, Better to provide the data set and result set may be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2017 15:54:39 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-07-07T15:54:39Z</dc:date>
    <item>
      <title>If match condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348505#M826636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a requirement to match 2 different fields and make it as one field.&lt;/P&gt;&lt;P&gt;One of the field is calculated based on MATCH condition&lt;/P&gt;&lt;P&gt;Cross Table (Field1, Class)&lt;/P&gt;&lt;P&gt;Load ID,&lt;/P&gt;&lt;P&gt;Match(Field1,'A','B','C') as ABC,&lt;/P&gt;&lt;P&gt;Match (&lt;SPAN style="font-size: 13.3333px;"&gt;Field1,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'A','B','C','D') as CDE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Match &lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;SPAN style="font-size: 13.3333px;"&gt;Field1,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'A','B','C','D') as Total&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've another field called Gender which has values Male/Female&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to match Gender to Field1&lt;/P&gt;&lt;P&gt;So if Gender is Male/Female they should match to ABC, CDE and Total based on Selection Cus Gender can be ABC or CDE and also they fall under Total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end I'm looking for Field1= ABC,CDE, Total and Female&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Gender is a different field and Field1 is a different field but gender can match to any value inside Field1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/210420" target="_blank"&gt;neelamsaroha1575&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/218859" target="_blank"&gt;loveisfail&lt;/A&gt;‌ &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348505#M826636</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If match condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348506#M826637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't get your question, Better to provide the data set and result set may be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 15:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348506#M826637</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-07T15:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: If match condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348507#M826638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I've 4 values in a Field, I want to match it with other values in other field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: Field1 = A, B, C, D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2= 1,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to match Field2, 1 to A, B, C, D and Field2, 2 to &lt;SPAN style="font-size: 13.3333px;"&gt;A, B, C, D &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Cus in Field2, 1 and 2 can also be A or B or C or D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In my case&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Field2 is Gender who are Male and Female&lt;/P&gt;&lt;P&gt;Field1 is Ethnicity who are white, black, lationo, hispanic etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a Gender who are male and female can also be Black or Hispanic or White etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already created a field with Match function using cross table cus for my req, Black fall under People of Color, Hispanic fall under people of color and White fall under other category. So multiple values are created as 1 value &amp;lt; Solved.&lt;/P&gt;&lt;P&gt;But now I've to Map Gender to these multiple values.&lt;/P&gt;&lt;P&gt;Ethnicity to map to Gender.&lt;/P&gt;&lt;P&gt;Create a new field which should have all ethnicty plus only Females.&lt;/P&gt;&lt;P&gt;New Field&lt;/P&gt;&lt;P&gt;Black&lt;/P&gt;&lt;P&gt;White&lt;/P&gt;&lt;P&gt;Hispanic&lt;/P&gt;&lt;P&gt;Latino&lt;/P&gt;&lt;P&gt;Total (All ethnicity including white)&lt;/P&gt;&lt;P&gt;People of Color (All ethnicity excluding white + all genders)&lt;/P&gt;&lt;P&gt;Women (Only womens who are total and people of color)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 20:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348507#M826638</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2017-07-07T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: If match condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348508#M826639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if I understand why you're doing a crosstable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why wouldn't you keep your data of ID, Gender, Ethnicity?&lt;/P&gt;&lt;P&gt;Then use set analysis in your charts.&lt;/P&gt;&lt;P&gt;like count({Gender={'Female'},Ethnicity-={'White'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or even if you really wanted it in your script, I probably woudn't do a crosstable either.&amp;nbsp; I would just do IF statements&lt;/P&gt;&lt;P&gt;I would do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gender,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ethnicity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Gender='Female' and not match(Ethnicity,'White'), 1,0) as FemalePOC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;if(not match(Ethnicity,'White'), 1,0) as POC,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 20:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-match-condition/m-p/1348508#M826639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-07T20:31:20Z</dc:date>
    </item>
  </channel>
</rss>

