<?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: How to control expression based on dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496081#M185504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your techniques, let me check which one will be suitable for my main requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jun 2013 11:02:38 GMT</pubDate>
    <dc:creator>jagannalla</dc:creator>
    <dc:date>2013-06-21T11:02:38Z</dc:date>
    <item>
      <title>How to control expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496077#M185500</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've different number of product with there sales.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product, Sale&lt;/P&gt;&lt;P&gt;A,10&lt;/P&gt;&lt;P&gt;B,20&lt;/P&gt;&lt;P&gt;C,30&lt;/P&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;E,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now If I take straight table or pivot table with dimension as Product and expression as Sum(Sale). I can see result for each product sales. We don't have any data for D &amp;amp; E Products. But I need D product sales as A+B sales &amp;amp; E Product sales as C-A. Like this I've N number of calculated product columns. I don't want to control this using Above and Below function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other technique to achive this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496077#M185500</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2013-06-21T10:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to control expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496078#M185501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496078#M185501</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-21T10:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to control expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496079#M185502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In attached application I solved your problem in expression. See product AVG in line chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496079#M185502</guid>
      <dc:creator>prodanov</dc:creator>
      <dc:date>2013-06-21T10:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to control expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496080#M185503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA file for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496080#M185503</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-06-21T10:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to control expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496081#M185504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your techniques, let me check which one will be suitable for my main requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 11:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496081#M185504</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2013-06-21T11:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to control expression based on dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496082#M185505</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;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;product,col1,col2&lt;/P&gt;&lt;P&gt;a,10,30&lt;/P&gt;&lt;P&gt;b,20,40];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(col2) AS Col2Total&lt;/P&gt;&lt;P&gt;RESIDENT Test&lt;/P&gt;&lt;P&gt;WHERE match(product, 'a', 'b');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col1 * col2 as multipliedValue&lt;/P&gt;&lt;P&gt;RESIDENT Test&lt;/P&gt;&lt;P&gt;WHERE match(product, 'a', 'b')&lt;/P&gt;&lt;P&gt;Order by product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCol2Total = FieldValue('Col2Total', 1);&lt;/P&gt;&lt;P&gt;LET vProducta = FieldValue('multipliedValue', 1);&lt;/P&gt;&lt;P&gt;LET vProductb = FieldValue('multipliedValue', 2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Test)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'c' as product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ($(vProducta) / $(vCol2Total)) + ($(vProductb) / $(vCol2Total)) AS col1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as col2&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLEs Test1, Test2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 15:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-control-expression-based-on-dimension/m-p/496082#M185505</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-06-21T15:24:29Z</dc:date>
    </item>
  </channel>
</rss>

