<?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 Filtering dimension on expression results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-dimension-on-expression-results/m-p/330850#M575845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to provide my users with the capabilty to filter a table (graph as a table) on expression results then to export it in excel.&lt;/P&gt;&lt;P&gt;The filter will be entered through Input Boxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the table creation: no issue&lt;/P&gt;&lt;P&gt;For the expressions: no issue&lt;/P&gt;&lt;P&gt;For the export: no issue&lt;/P&gt;&lt;P&gt;For the dimension filtering: &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/angry.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have different expression such as:&lt;/P&gt;&lt;P&gt;"Historical Average"&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;$(vExpedie)&amp;gt;} item_qte*item_prix)/Count({&amp;lt;$(vExpedie)&amp;gt;} Distinct([ID de la commande])) =&amp;gt; this give the overall order average for order shipped&lt;/P&gt;&lt;P&gt;"Last 6 months average"&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;$(vExpedie), $(vLast6Months)&amp;gt;} item_qte*item_prix)/Count({&amp;lt;$(vExpedie),$(vLast6Months)&amp;gt;} Distinct([ID de la commande])) // this give the same for the last 6 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;vExpedie,vLast 6 months are setup in script as:&lt;/P&gt;&lt;P&gt;LET vExpedie= '[Etat de la commande] = {' &amp;amp; chr(39) &amp;amp; 'expediée' &amp;amp; chr(39) &amp;amp; '}';&lt;/P&gt;&lt;P&gt;LET vLast6Months = '[MaDate] = {"&amp;gt;=' &amp;amp; chr(36) &amp;amp; '(=DATE(MONTHSTART(ADDMONTHS(DATE_REFERENCE,-6))))&amp;lt;=' &amp;amp; chr(36) &amp;amp; '(=DATE(MONTHSTART(DATE_REFERENCE)-1))"}';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like to do is to be able to filter the results on&lt;/P&gt;&lt;P&gt;Input_box_1&amp;lt;Historical Average&amp;lt;input_box_2&lt;/P&gt;&lt;P&gt;input_box_3&amp;lt;Last 6 Months Average&amp;lt;input_box_4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first thought was to use calculated dimension but the set analysis seems not to be usable to calculate a dimension, so it become a nightmare to use aggr to filter the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea to make it simple?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 07:55:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-31T07:55:49Z</dc:date>
    <item>
      <title>Filtering dimension on expression results</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-dimension-on-expression-results/m-p/330850#M575845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to provide my users with the capabilty to filter a table (graph as a table) on expression results then to export it in excel.&lt;/P&gt;&lt;P&gt;The filter will be entered through Input Boxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the table creation: no issue&lt;/P&gt;&lt;P&gt;For the expressions: no issue&lt;/P&gt;&lt;P&gt;For the export: no issue&lt;/P&gt;&lt;P&gt;For the dimension filtering: &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/angry.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have different expression such as:&lt;/P&gt;&lt;P&gt;"Historical Average"&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;$(vExpedie)&amp;gt;} item_qte*item_prix)/Count({&amp;lt;$(vExpedie)&amp;gt;} Distinct([ID de la commande])) =&amp;gt; this give the overall order average for order shipped&lt;/P&gt;&lt;P&gt;"Last 6 months average"&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;$(vExpedie), $(vLast6Months)&amp;gt;} item_qte*item_prix)/Count({&amp;lt;$(vExpedie),$(vLast6Months)&amp;gt;} Distinct([ID de la commande])) // this give the same for the last 6 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;vExpedie,vLast 6 months are setup in script as:&lt;/P&gt;&lt;P&gt;LET vExpedie= '[Etat de la commande] = {' &amp;amp; chr(39) &amp;amp; 'expediée' &amp;amp; chr(39) &amp;amp; '}';&lt;/P&gt;&lt;P&gt;LET vLast6Months = '[MaDate] = {"&amp;gt;=' &amp;amp; chr(36) &amp;amp; '(=DATE(MONTHSTART(ADDMONTHS(DATE_REFERENCE,-6))))&amp;lt;=' &amp;amp; chr(36) &amp;amp; '(=DATE(MONTHSTART(DATE_REFERENCE)-1))"}';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like to do is to be able to filter the results on&lt;/P&gt;&lt;P&gt;Input_box_1&amp;lt;Historical Average&amp;lt;input_box_2&lt;/P&gt;&lt;P&gt;input_box_3&amp;lt;Last 6 Months Average&amp;lt;input_box_4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first thought was to use calculated dimension but the set analysis seems not to be usable to calculate a dimension, so it become a nightmare to use aggr to filter the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea to make it simple?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 07:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-dimension-on-expression-results/m-p/330850#M575845</guid>
      <dc:creator />
      <dc:date>2012-05-31T07:55:49Z</dc:date>
    </item>
  </channel>
</rss>

