<?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 Link Customer to Pricelist in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Link-Customer-to-Pricelist/m-p/2515818#M105705</link>
    <description>&lt;P&gt;Good morning.&amp;nbsp;&lt;BR /&gt;I'm sitting with a scenario where I need to show the Price of Items per Customer, based on their Pricelist number. There are 5 pricelists available, numbers 1 to 5. On the Item side there are 5 pricelists fields, PL1 to PL5. There is no common field between the tables for association. The attached snippet shows it better.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fields in the two tables are.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Item:&lt;/STRONG&gt;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;ItemCode,&lt;BR /&gt;PL1,&lt;BR /&gt;PL2,&lt;BR /&gt;PL3,&lt;BR /&gt;PL4,&lt;BR /&gt;PL5&lt;BR /&gt;FROM Items;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer:&lt;/STRONG&gt;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;CustomerCode,&lt;BR /&gt;"Price List"&lt;BR /&gt;FROM Customer;&lt;/P&gt;&lt;P&gt;I really appreciate any thoughts on how this can be done and if it actually even possible. I include a simplefied version of the model and spreadsheet. In reality there are about 14000 Customers and 9000 Items&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Apr 2025 03:22:53 GMT</pubDate>
    <dc:creator>johngouws</dc:creator>
    <dc:date>2025-04-26T03:22:53Z</dc:date>
    <item>
      <title>Link Customer to Pricelist</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Customer-to-Pricelist/m-p/2515818#M105705</link>
      <description>&lt;P&gt;Good morning.&amp;nbsp;&lt;BR /&gt;I'm sitting with a scenario where I need to show the Price of Items per Customer, based on their Pricelist number. There are 5 pricelists available, numbers 1 to 5. On the Item side there are 5 pricelists fields, PL1 to PL5. There is no common field between the tables for association. The attached snippet shows it better.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fields in the two tables are.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Item:&lt;/STRONG&gt;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;ItemCode,&lt;BR /&gt;PL1,&lt;BR /&gt;PL2,&lt;BR /&gt;PL3,&lt;BR /&gt;PL4,&lt;BR /&gt;PL5&lt;BR /&gt;FROM Items;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer:&lt;/STRONG&gt;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;CustomerCode,&lt;BR /&gt;"Price List"&lt;BR /&gt;FROM Customer;&lt;/P&gt;&lt;P&gt;I really appreciate any thoughts on how this can be done and if it actually even possible. I include a simplefied version of the model and spreadsheet. In reality there are about 14000 Customers and 9000 Items&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2025 03:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Customer-to-Pricelist/m-p/2515818#M105705</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2025-04-26T03:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Link Customer to Pricelist</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Customer-to-Pricelist/m-p/2515831#M105714</link>
      <description>&lt;P&gt;Thanks for providing such complete example files, it makes it easy to answer.&lt;/P&gt;&lt;P&gt;You just need to CrossTable Load your Item table.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Items:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CrossTable([Price List], Price, 1)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;BR /&gt;SQL SELECT&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;ItemCode,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;PL1,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;PL2,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;PL3,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;PL4,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;PL5&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;FROM Items;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then you will need to make the 'PL1' code align with the "1" code in Customer."Price List". In the SQL something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Concat('PL',"Price List") as "Price List"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's my solution in your QVW script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Items:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CrossTable([Price List], Price, 1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD ItemCode, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PL1, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PL2, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PL3, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PL4, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PL5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[CustomerPricelist.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is Item);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Customers:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD CustomerCode, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'PL' &amp;amp; [Price List] as [Price List]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[CustomerPricelist.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(ooxml, embedded labels, table is Customer);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!--  
        Versioning Control Panel if versioning = true !
      --&gt;&lt;!--  
        Launcher
      --&gt;&lt;!--   Toolbar   --&gt;&lt;!--  
        Site Menu
      --&gt;&lt;!--  
        Generic Aria Live message container
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Sat, 26 Apr 2025 17:18:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Customer-to-Pricelist/m-p/2515831#M105714</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-04-26T17:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Link Customer to Pricelist</title>
      <link>https://community.qlik.com/t5/App-Development/Link-Customer-to-Pricelist/m-p/2515849#M105719</link>
      <description>&lt;P&gt;Thank you very much Rob. I've been struggling but cross table did not come to mind..&amp;nbsp;&lt;BR /&gt;Your solution works perfectly.&amp;nbsp;&lt;BR /&gt;In the live environment I went for doing the concat under the LOAD rather than the Pervasive Sql. The performance is better.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks, John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--  
        Layout, Style or Voice Helpers
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--  
        Compliance
      --&gt;&lt;DIV class=""&gt;&lt;!--   For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby   --&gt;&lt;DIV&gt;Opens in new window&lt;/DIV&gt;&lt;DIV&gt;PDF Download&lt;/DIV&gt;&lt;DIV&gt;Word Download&lt;/DIV&gt;&lt;DIV&gt;Excel Download&lt;/DIV&gt;&lt;DIV&gt;PowerPoint Download&lt;/DIV&gt;&lt;DIV&gt;Document Download&lt;/DIV&gt;&lt;/DIV&gt;&lt;!--  
        Versioning Control Panel if versioning = true !
      --&gt;&lt;!--  
        Launcher
      --&gt;&lt;!--   Toolbar   --&gt;&lt;!--  
        Site Menu
      --&gt;&lt;!--  
        Generic Aria Live message container
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Sun, 27 Apr 2025 05:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Link-Customer-to-Pricelist/m-p/2515849#M105719</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2025-04-27T05:44:53Z</dc:date>
    </item>
  </channel>
</rss>

