<?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: Set analysis: how to use multiple IFs/Matches in load statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-how-to-use-multiple-IFs-Matches-in-load-statement/m-p/133491#M20021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshaya&lt;/P&gt;&lt;P&gt;Thanks for replying.&amp;nbsp; The problem is that when I run this bud2_compen2 isn't yet loaded into QV, it gets loaded later on.&lt;/P&gt;&lt;P&gt;I did speak to the user and he has said I don't need to do this at this point so I will find another way to work around it.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2018 08:30:22 GMT</pubDate>
    <dc:creator>paul_ripley</dc:creator>
    <dc:date>2018-08-30T08:30:22Z</dc:date>
    <item>
      <title>Set analysis: how to use multiple IFs/Matches in load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-how-to-use-multiple-IFs-Matches-in-load-statement/m-p/133489#M20019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a set of data, and the data in the source system is split into teams eg Finance, P&amp;amp;P, IT etc.&lt;/P&gt;&lt;P&gt;Then there is breakdown of the costs into type of expense called 'compen'.&amp;nbsp; But Finance, IT and P&amp;amp;P use a different mapping for 'compen' than every other department, so I created a calculated dimension as below to cater for this, and it works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;team_description&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'Finance, Tax and Treasury','IT','P&amp;amp;P') &amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;bud2_compen2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;bud2_compen&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I now need to split out IT into 'IT' and 'IT Non-People Costs'.&amp;nbsp; The distinction between the 2 is 'IT Non-people costs' is where bud2_compen2 = 'office costs'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the logic that I think I need to write&amp;nbsp; in the calculated dimension is something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;team_description&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'Finance, Tax and Treasury','IT','P&amp;amp;P') &amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;bud2_compen2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;bud2_compen&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;team_description&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'IT') &amp;gt;0 and bud2_compen2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'office costs', 'IT Non-People Costs' , team_description&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I also thought maybe i could do the renaming of the team in the script but that doesnt work also as bud2_compen2 doesnt exist ar this point as it is a mapping that is included in the dataload.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Not sure if any of that makes sense, but can only suggest anything to help. Thanks Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;busunit:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;team&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;team_description&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;team_description&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'IT') &amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;bud2_compen2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'office costs', 'IT Non-People Costs' , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;team_description&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;team_descr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PE_Alloc%&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Infra_Alloc%&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PC_Alloc%&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[\\3i.3iGroup.com\DFS\Shared\GRP_REPORT\QlikView\Allocations.xlsx]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-how-to-use-multiple-IFs-Matches-in-load-statement/m-p/133489#M20019</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2018-08-29T16:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis: how to use multiple IFs/Matches in load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-how-to-use-multiple-IFs-Matches-in-load-statement/m-p/133490#M20020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your team_description only includes IT as a value, then you don't need to use wildmatch and the logic you have written will perform perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( team_description = 'IT' and bud2_compen2 = 'office costs','IT Non - People Costs',team_description) as Team_descr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akshaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 17:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-how-to-use-multiple-IFs-Matches-in-load-statement/m-p/133490#M20020</guid>
      <dc:creator>adityaakshaya</dc:creator>
      <dc:date>2018-08-29T17:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis: how to use multiple IFs/Matches in load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-how-to-use-multiple-IFs-Matches-in-load-statement/m-p/133491#M20021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshaya&lt;/P&gt;&lt;P&gt;Thanks for replying.&amp;nbsp; The problem is that when I run this bud2_compen2 isn't yet loaded into QV, it gets loaded later on.&lt;/P&gt;&lt;P&gt;I did speak to the user and he has said I don't need to do this at this point so I will find another way to work around it.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 08:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-how-to-use-multiple-IFs-Matches-in-load-statement/m-p/133491#M20021</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2018-08-30T08:30:22Z</dc:date>
    </item>
  </channel>
</rss>

