<?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 multiple wildmatch within iff statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiple-wildmatch-within-iff-statement/m-p/1586679#M739187</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to QlikView having been a Tableau user for years and learning some of the ins and outs of Qlik.&lt;/P&gt;&lt;P&gt;I am working with a set of data for an auto dealership where there are multiple branches for some but not all. There is also back end location data like a main office included in the data set.&lt;/P&gt;&lt;P&gt;I want to pull from this collection a count of only the branch locations and then from that set, I want to separate the dealerships from traditional and non-traditional branches. The end result is to show a pie chart comparing what part of the total traditional and non-traditional these make up. Mathematically I've figured out the percentage but I can only pull one of those values, not both.&lt;/P&gt;&lt;P&gt;I first looked for all those teams that are associated with a dealer where ST contains 'DLR'.&lt;/P&gt;&lt;P&gt;Next was to look at where STB is a traditional (denoted with N or R) or non-traditional (all others not N or R).&lt;/P&gt;&lt;P&gt;Count by unique S&lt;/P&gt;&lt;P&gt;SALESPERSON S, SALES_TEAM ST, SALES_TEAM_BRANCH STB&lt;/P&gt;&lt;P&gt;=if(wildmatch([ST],'*DLR*'), &lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; wildmatch([STB],'*N*','*R*'), &lt;/SPAN&gt;&lt;SPAN&gt;'Traditional', &lt;/SPAN&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; not wildmatch([STB],'*R*','*N*'),&lt;/SPAN&gt;'Non-Traditional')))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any and all ideas are greatly appreciated! Thank you so much for your help and expertise!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:25:35 GMT</pubDate>
    <dc:creator>SonOfJeffGoldblum</dc:creator>
    <dc:date>2024-11-16T03:25:35Z</dc:date>
    <item>
      <title>multiple wildmatch within iff statement</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-wildmatch-within-iff-statement/m-p/1586679#M739187</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to QlikView having been a Tableau user for years and learning some of the ins and outs of Qlik.&lt;/P&gt;&lt;P&gt;I am working with a set of data for an auto dealership where there are multiple branches for some but not all. There is also back end location data like a main office included in the data set.&lt;/P&gt;&lt;P&gt;I want to pull from this collection a count of only the branch locations and then from that set, I want to separate the dealerships from traditional and non-traditional branches. The end result is to show a pie chart comparing what part of the total traditional and non-traditional these make up. Mathematically I've figured out the percentage but I can only pull one of those values, not both.&lt;/P&gt;&lt;P&gt;I first looked for all those teams that are associated with a dealer where ST contains 'DLR'.&lt;/P&gt;&lt;P&gt;Next was to look at where STB is a traditional (denoted with N or R) or non-traditional (all others not N or R).&lt;/P&gt;&lt;P&gt;Count by unique S&lt;/P&gt;&lt;P&gt;SALESPERSON S, SALES_TEAM ST, SALES_TEAM_BRANCH STB&lt;/P&gt;&lt;P&gt;=if(wildmatch([ST],'*DLR*'), &lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; wildmatch([STB],'*N*','*R*'), &lt;/SPAN&gt;&lt;SPAN&gt;'Traditional', &lt;/SPAN&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; not wildmatch([STB],'*R*','*N*'),&lt;/SPAN&gt;'Non-Traditional')))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any and all ideas are greatly appreciated! Thank you so much for your help and expertise!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-wildmatch-within-iff-statement/m-p/1586679#M739187</guid>
      <dc:creator>SonOfJeffGoldblum</dc:creator>
      <dc:date>2024-11-16T03:25:35Z</dc:date>
    </item>
  </channel>
</rss>

