<?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 Dynamic columns / Crosstable question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914287#M317163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach a simple sample application that contains the following data structure:&lt;IMG __jive_id="95273" alt="datastructure.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95273_datastructure.jpg" style="height: 417px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- For every "Movements" record I have one "Items" record as you can see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The "Movements" record contains the quantity field "Qty" and the "Items" record contains 20 different "price" fields (10 including tax and 10 excluding) e.g. "Price1Excl", "Price1Incl", "Price2Excl" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Additionally, I have a separate table "PriceHeadings" which contains the descriptions of each of these prices - for example "PriceDesc1" contains the text "RETAIL", "PriceDesc2" the text "WHOLESALE" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is to produce a table such as the one below where the last column "Value" will be the value based on the "Price" selected from a drop down list that will contain the prices with their descriptive names - e.g. RETAIL, WHOLESALE etc ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example below I am showing Value (which is "Movement" x Price) using the "Price1Excl" price as an illustration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above makes sense - I attach the sample application with some data...&lt;/P&gt;&lt;P&gt;I would appreciate your assistance on this as it's been troubling me a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;IMG __jive_id="95274" alt="StockStatementChart.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/95274_StockStatementChart.jpg" style="height: auto;" /&gt;ALE etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 20:50:10 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2015-08-06T20:50:10Z</dc:date>
    <item>
      <title>Dynamic columns / Crosstable question</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914287#M317163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach a simple sample application that contains the following data structure:&lt;IMG __jive_id="95273" alt="datastructure.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95273_datastructure.jpg" style="height: 417px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- For every "Movements" record I have one "Items" record as you can see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The "Movements" record contains the quantity field "Qty" and the "Items" record contains 20 different "price" fields (10 including tax and 10 excluding) e.g. "Price1Excl", "Price1Incl", "Price2Excl" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Additionally, I have a separate table "PriceHeadings" which contains the descriptions of each of these prices - for example "PriceDesc1" contains the text "RETAIL", "PriceDesc2" the text "WHOLESALE" etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is to produce a table such as the one below where the last column "Value" will be the value based on the "Price" selected from a drop down list that will contain the prices with their descriptive names - e.g. RETAIL, WHOLESALE etc ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example below I am showing Value (which is "Movement" x Price) using the "Price1Excl" price as an illustration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above makes sense - I attach the sample application with some data...&lt;/P&gt;&lt;P&gt;I would appreciate your assistance on this as it's been troubling me a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;IMG __jive_id="95274" alt="StockStatementChart.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/95274_StockStatementChart.jpg" style="height: auto;" /&gt;ALE etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914287#M317163</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2015-08-06T20:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns question</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914288#M317164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather normalize the item table and the priceheading table in the loading script first. so they can join each other properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 21:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914288#M317164</guid>
      <dc:creator />
      <dc:date>2015-08-06T21:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns question</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914289#M317165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks cooker li&lt;/P&gt;&lt;P&gt;Can you elaborate please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 22:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914289#M317165</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2015-08-06T22:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns / Crosstable question</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914290#M317166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It makes things easier if you upload a sample that we can reload, e.g. by posting also the source data files or using INLINE tables.&lt;/P&gt;&lt;P&gt;I used a binary load to be able to reload and modify the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached for a solution transforming your tables using CROSSTABLE LOAD prefix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 22:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914290#M317166</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-06T22:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns / Crosstable question</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914291#M317167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies for not loading the QVD files as well.&lt;/P&gt;&lt;P&gt;Your solution is exactly what I was after - thank you so much. Brilliant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 22:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-columns-Crosstable-question/m-p/914291#M317167</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2015-08-06T22:35:12Z</dc:date>
    </item>
  </channel>
</rss>

