<?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 Query Generator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Query-Generator/m-p/306859#M113347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;I'm interested in giving the user a Query generator for some data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Let's say I have the following dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Actual, Sales LY, Sales WP, Expected, Delta exp vs LY, Delta exp vsWP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;The details the user want to see are: Value, Qty &amp;amp; Avg P for the above dimension except the Delta which he doesn't want to see the avg price.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;My first option was, building 16 dimensions (4*3+2*2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;The problem, exporting it to excel and presenting the data is not easy on the eye, no cell merging thus not an option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Since I'm using Ajax I can't use macro's to interfere with the outcome design.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Second option, Building the above dimension, Building an excel file that will hold each formula for the dimension/expression like the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;dimension Actual, SalesLy, Sales WP, etc..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;qty&amp;nbsp;&amp;nbsp; X&amp;nbsp; Y&amp;nbsp; Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;value X&amp;nbsp; Y Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;avg p X Y&amp;nbsp; Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;I built a pivot table holding 2 dimensions, one is a general cycle and the other is the Actual/Sales/Etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Later, I created Variables that will return the value for the selected dimension and implementing it in the table expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;I have two problems with this approach:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;1. I can't choose more than1 dimension, it returns blank in the pivot&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;2. I got extra columns when I want to see a delta (I want just the qty &amp;amp;value, without the avg price)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Any help will be gladly welcomed,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Eliran.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2011 13:12:08 GMT</pubDate>
    <dc:creator>eliran</dc:creator>
    <dc:date>2011-06-21T13:12:08Z</dc:date>
    <item>
      <title>Query Generator</title>
      <link>https://community.qlik.com/t5/QlikView/Query-Generator/m-p/306859#M113347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;I'm interested in giving the user a Query generator for some data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Let's say I have the following dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Actual, Sales LY, Sales WP, Expected, Delta exp vs LY, Delta exp vsWP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;The details the user want to see are: Value, Qty &amp;amp; Avg P for the above dimension except the Delta which he doesn't want to see the avg price.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;My first option was, building 16 dimensions (4*3+2*2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;The problem, exporting it to excel and presenting the data is not easy on the eye, no cell merging thus not an option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Since I'm using Ajax I can't use macro's to interfere with the outcome design.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Second option, Building the above dimension, Building an excel file that will hold each formula for the dimension/expression like the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;dimension Actual, SalesLy, Sales WP, etc..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;qty&amp;nbsp;&amp;nbsp; X&amp;nbsp; Y&amp;nbsp; Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;value X&amp;nbsp; Y Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;avg p X Y&amp;nbsp; Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;I built a pivot table holding 2 dimensions, one is a general cycle and the other is the Actual/Sales/Etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Later, I created Variables that will return the value for the selected dimension and implementing it in the table expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;I have two problems with this approach:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;1. I can't choose more than1 dimension, it returns blank in the pivot&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;2. I got extra columns when I want to see a delta (I want just the qty &amp;amp;value, without the avg price)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Any help will be gladly welcomed,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt;Eliran.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 13:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-Generator/m-p/306859#M113347</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2011-06-21T13:12:08Z</dc:date>
    </item>
  </channel>
</rss>

