<?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 Lookup() Chart Function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Lookup-Chart-Function/m-p/1784014#M64325</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am in need of a solution similar to the lookup()script function, but for charts. Pretty much like Excel VLookup.&lt;/P&gt;&lt;P&gt;I have a Sales Fact table and two dimension tables, Customers and Products.&lt;/P&gt;&lt;P&gt;I also have a special pricing table for customers on each product. I want to be able to display the special price for each product by customer, obviously also against sales and other measures.&lt;/P&gt;&lt;P&gt;I have tried using (Only) but this doesn't work unless only one product and customer is selected. I also though of doing an ApplyMap() on the Fact table creating a key from Customer&amp;amp;Product Codes. But this loses the visibility on special pricing for products that has never been sold for that customer.&lt;/P&gt;&lt;P&gt;Any ideas would help please?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="DataModel.jpg" style="width: 595px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49410i3C7320D868E9968C/image-size/large?v=v2&amp;amp;px=999" role="button" title="DataModel.jpg" alt="DataModel.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wynand&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:28:17 GMT</pubDate>
    <dc:creator>wcilliers</dc:creator>
    <dc:date>2024-11-16T17:28:17Z</dc:date>
    <item>
      <title>Lookup() Chart Function</title>
      <link>https://community.qlik.com/t5/App-Development/Lookup-Chart-Function/m-p/1784014#M64325</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am in need of a solution similar to the lookup()script function, but for charts. Pretty much like Excel VLookup.&lt;/P&gt;&lt;P&gt;I have a Sales Fact table and two dimension tables, Customers and Products.&lt;/P&gt;&lt;P&gt;I also have a special pricing table for customers on each product. I want to be able to display the special price for each product by customer, obviously also against sales and other measures.&lt;/P&gt;&lt;P&gt;I have tried using (Only) but this doesn't work unless only one product and customer is selected. I also though of doing an ApplyMap() on the Fact table creating a key from Customer&amp;amp;Product Codes. But this loses the visibility on special pricing for products that has never been sold for that customer.&lt;/P&gt;&lt;P&gt;Any ideas would help please?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="DataModel.jpg" style="width: 595px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49410i3C7320D868E9968C/image-size/large?v=v2&amp;amp;px=999" role="button" title="DataModel.jpg" alt="DataModel.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wynand&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Lookup-Chart-Function/m-p/1784014#M64325</guid>
      <dc:creator>wcilliers</dc:creator>
      <dc:date>2024-11-16T17:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup() Chart Function</title>
      <link>https://community.qlik.com/t5/App-Development/Lookup-Chart-Function/m-p/1794643#M64326</link>
      <description>&lt;P&gt;Hi Wynand,&lt;/P&gt;&lt;P&gt;It's difficult to picture without a concrete example, but would something of this kind work?&lt;/P&gt;&lt;P&gt;Create 2 new columns which are exact replicas of CardCode inside the SpecialPricing and Customers tables, so that you have 2 additional fields in both tables, e.g. CardCode_SP and CardCode_Cust.&lt;/P&gt;&lt;P&gt;Then use these fields as "pseudo-filter" with set analysis, e.g.&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;CardCode_SP = {$(=CHR(39) &amp;amp; Concat(DISTINCT CardCode, CHR(39) &amp;amp; ',' &amp;amp; CHR(39))&amp;amp;CHR(39))}&lt;STRONG&gt;, CardCode=&lt;/STRONG&gt;&amp;gt;} Blahblah)&lt;/P&gt;&lt;P&gt;In this case there won't be any data reduction due to selections on CardCode field, but you are parsing the values selected in CardCode and putting them through to CardCode_SP as a pseudo-selection.&lt;/P&gt;&lt;P&gt;Hope this makes sense and might lead you in the right direction.&lt;/P&gt;&lt;P&gt;Otherwise, a concrete sample file/example would be great for debugging.&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Cheenu&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 20:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Lookup-Chart-Function/m-p/1794643#M64326</guid>
      <dc:creator>cheenu_janakira</dc:creator>
      <dc:date>2021-03-25T20:37:25Z</dc:date>
    </item>
  </channel>
</rss>

