<?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 Double variable data in a set analysis expr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382267#M491122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to solve a problem. I've a report for salesmanager and my customer is asking me to see in a table as default a total amount of sales for 'black hats', and ask two switch fields where he can select all Type (to sum also shoes and gloves) and another independent switch where select all Colours. When he deletes his selection he wants to be back to his default report for "black hats". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product, Type, Colour&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;ProdA, Hat ,black, 100&lt;/P&gt;&lt;P&gt;ProdB, Hat, black, 200&lt;/P&gt;&lt;P&gt;ProdC, Hat, black, 200&lt;/P&gt;&lt;P&gt;ProdD, Hat, white, 50 &lt;/P&gt;&lt;P&gt;ProdE, Hat, black, 200&lt;/P&gt;&lt;P&gt;ProdF, Shoes, black,&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;ProdG, Gloves, pink,&amp;nbsp; 70&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Switch Type&lt;/P&gt;&lt;P&gt;Yes &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Switch Colour&lt;/P&gt;&lt;P&gt;Yes &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 09:27:05 GMT</pubDate>
    <dc:creator>canmarroig</dc:creator>
    <dc:date>2012-08-30T09:27:05Z</dc:date>
    <item>
      <title>Double variable data in a set analysis expr</title>
      <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382267#M491122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to solve a problem. I've a report for salesmanager and my customer is asking me to see in a table as default a total amount of sales for 'black hats', and ask two switch fields where he can select all Type (to sum also shoes and gloves) and another independent switch where select all Colours. When he deletes his selection he wants to be back to his default report for "black hats". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product, Type, Colour&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;ProdA, Hat ,black, 100&lt;/P&gt;&lt;P&gt;ProdB, Hat, black, 200&lt;/P&gt;&lt;P&gt;ProdC, Hat, black, 200&lt;/P&gt;&lt;P&gt;ProdD, Hat, white, 50 &lt;/P&gt;&lt;P&gt;ProdE, Hat, black, 200&lt;/P&gt;&lt;P&gt;ProdF, Shoes, black,&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;ProdG, Gloves, pink,&amp;nbsp; 70&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Switch Type&lt;/P&gt;&lt;P&gt;Yes &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Switch Colour&lt;/P&gt;&lt;P&gt;Yes &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 09:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382267#M491122</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2012-08-30T09:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Double variable data in a set analysis expr</title>
      <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382268#M491123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd set up two variables, SwitchType and SwitchColour, behind buttons, that would start as 'Black' and 'Hat' but when unclicked be set to an empty string state (''). You could of course change the text on the buttons to say 'All' when they are blank.&lt;/P&gt;&lt;P&gt;A set analysis could then say something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Type={'=$(SwitchType)'},Colour={'=$(SwitchColour)'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A bit crude, but would probably work.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 09:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382268#M491123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-30T09:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Double variable data in a set analysis expr</title>
      <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382269#M491124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you jon, i'm trying to follow your suggestion but i don't understand when you say to start as 'Black'...you suggest usign input box to predefine value? Since i've some troubles to consider 'all' when is empty. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 12:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382269#M491124</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2012-08-30T12:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Double variable data in a set analysis expr</title>
      <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382270#M491125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The attached example should help. Note I had to use start ('*') instead of blank ('') for the all option.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 12:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382270#M491125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-30T12:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Double variable data in a set analysis expr</title>
      <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382271#M491126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, jonbroughavone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest slightly modified expression:&lt;/P&gt;&lt;P&gt;=sum({&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt;$*&lt;/STRONG&gt;&lt;/SPAN&gt;$&amp;lt;Type={'$(SwitchType)'},Colour={'$(SwitchColour)'}&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382271#M491126</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-08-30T13:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Double variable data in a set analysis expr</title>
      <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382272#M491127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eureka, thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382272#M491127</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2012-08-30T13:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Double variable data in a set analysis expr</title>
      <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382273#M491128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry why this difference? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382273#M491128</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2012-08-30T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Double variable data in a set analysis expr</title>
      <link>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382274#M491129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The $*$&amp;lt;..&amp;gt; is an intersection of sets.&lt;/P&gt;&lt;P&gt;Try to select a particular type in a listbox. If you use $&amp;lt;..&amp;gt; expression it overrides your selection and the table will remain the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the user also expects to see only thouse types and colors that are selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-variable-data-in-a-set-analysis-expr/m-p/382274#M491129</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-08-30T14:54:50Z</dc:date>
    </item>
  </channel>
</rss>

