<?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: Pick and Match function Optimized in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pick-and-Match-function-Optimized/m-p/1594348#M737928</link>
    <description>&lt;P&gt;It seems to me you could just add a Category field to your tooltip table and then the value would be automatically linked and your expression would be:&lt;/P&gt;&lt;P&gt;=Message&lt;/P&gt;&lt;P&gt;Or is your real app more complicated and this wouldn't work?&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 21:29:11 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-06-20T21:29:11Z</dc:date>
    <item>
      <title>Pick and Match function Optimized</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-and-Match-function-Optimized/m-p/1594322#M737927</link>
      <description>&lt;P&gt;We are trying to create tooltips(popup messages) that come from an external file. We are avoiding using nested IF as there can be a lot of values and it will affect performance. On the attached samples we are using “&lt;EM&gt;&lt;STRONG&gt;P&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;ic&lt;/EM&gt;k Match&lt;/STRONG&gt;&lt;/EM&gt;” with the syntax as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pick(Match(Type, 'A', 'B', 'C', 'D', 'E'), Only({&amp;lt;[Tooltip of]={A}&amp;gt;} Message), Only({&amp;lt;[Tooltip of]={B}&amp;gt;} Message), Only({&amp;lt;[Tooltip of]={C}&amp;gt;} Message), Only({&amp;lt;[Tooltip of]={D}&amp;gt;} Message), Only({&amp;lt;[Tooltip of]={E}&amp;gt;} Message))&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works as expected, we see the values we want, &lt;STRONG&gt;but&lt;/STRONG&gt; I feel like there is a better way to code this more efficiently Thoughts?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-and-Match-function-Optimized/m-p/1594322#M737927</guid>
      <dc:creator>triekong</dc:creator>
      <dc:date>2024-11-16T20:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pick and Match function Optimized</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-and-Match-function-Optimized/m-p/1594348#M737928</link>
      <description>&lt;P&gt;It seems to me you could just add a Category field to your tooltip table and then the value would be automatically linked and your expression would be:&lt;/P&gt;&lt;P&gt;=Message&lt;/P&gt;&lt;P&gt;Or is your real app more complicated and this wouldn't work?&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 21:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-and-Match-function-Optimized/m-p/1594348#M737928</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-06-20T21:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pick and Match function Optimized</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-and-Match-function-Optimized/m-p/1594357#M737929</link>
      <description>&lt;P&gt;Data islands are tricky hence it is hard to create dimension differenciating set expressions with them. I don't see how you could be more efficient as long you have the comments as a data island.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An alternative solution is to connect your comment table to the data using a link-table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Main:
LOAD Type, 
     Category, 
     Business,
     Type&amp;amp;'|'&amp;amp;Category&amp;amp;'|'&amp;amp;Business as %key, 
     Amount
FROM
  [Main dataset.xlsx]
  (ooxml, embedded labels, table is Sheet1);

//Creating a link table
for each _type in 'Category', 'Business', 'Type'
  LOAD distinct
	[$(_type)] as [Tooltip of],
	%key,
	'$(_type)'  as [Tooltip class]
  RESIDENT Main
  ;
NEXT

Tooltips:
LOAD 
   [Tooltip of], 
   Message
FROM
  [Tooltips mapping.xlsx]
  (ooxml, embedded labels, table is Sheet1)
;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14129iE7487CD5422E6BBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You get the Tooltip per dimension in your Type chart with this expression:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;=Type &amp;amp; chr(10) &amp;amp;
sum(Amount) &amp;amp; chr(10) &amp;amp;
only({&amp;lt; [Tooltip class] = {'Type'}&amp;gt;}[Message])&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Jun 2019 21:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-and-Match-function-Optimized/m-p/1594357#M737929</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-20T21:56:00Z</dc:date>
    </item>
  </channel>
</rss>

