<?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 Text Variable to Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-Variable-to-Set-Analysis/m-p/240654#M91156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would take the logic out of the dimension and instead put it into the expressions as Set Analysis. Set the dimension to Account and then in your expressions use some Set Analysis to limit the accounts. For the first expression:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt;Account = {$(=Replace(vAccountSet, ' or ', ','))}&amp;gt;} Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;This is a little more complicated, because you separated your accounts with or in the variable. If you change those to commas, you can probably just use Account = {$(=vAccountSet)}. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may need to modify some of the other expressions to make them Aggregate functions. Only would work for some. I couldn't come up with the proper expression for the ratio. I'm not exactly sure how that one works. I've attached an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 19:46:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-18T19:46:06Z</dc:date>
    <item>
      <title>Text Variable to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Variable-to-Set-Analysis/m-p/240653#M91155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I´m trying to pass a variable (vAccountSet) with 3 text members to my chart. But I can´t get it work. Can you help me? I want to get something like this:&lt;/P&gt;&lt;P&gt;&lt;!--StartFragment--&gt;&lt;/P&gt;&lt;TABLE bgcolor="white" border="1" bordercolor="white" cellpadding="0" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR align="left" bgcolor="#F5F5F5"&gt;&lt;TH&gt;&lt;B&gt;Account&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TH&gt;&lt;B&gt;Amount&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TH&gt;&lt;B&gt;Driver&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TH&gt;&lt;B&gt;AmountD&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TH&gt;&lt;B&gt;Ratio&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR align="right" bgcolor="white"&gt;&lt;TD align="left" bgcolor="white"&gt;Energy&lt;/TD&gt;&lt;TD bgcolor="white"&gt;1370&lt;/TD&gt;&lt;TD align="left" bgcolor="white"&gt;Employee&lt;/TD&gt;&lt;TD bgcolor="white"&gt;134&lt;/TD&gt;&lt;TD bgcolor="white"&gt;10.22&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="right" bgcolor="white"&gt;&lt;TD align="left" bgcolor="white"&gt;Water&lt;/TD&gt;&lt;TD bgcolor="white"&gt;2104&lt;/TD&gt;&lt;TD align="left" bgcolor="white"&gt;Employee&lt;/TD&gt;&lt;TD bgcolor="white"&gt;134&lt;/TD&gt;&lt;TD bgcolor="white"&gt;15.70&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="right" bgcolor="white"&gt;&lt;TD align="left" bgcolor="white"&gt;Gas&lt;/TD&gt;&lt;TD bgcolor="white"&gt;2131&lt;/TD&gt;&lt;TD align="left" bgcolor="white"&gt;Employee&lt;/TD&gt;&lt;TD bgcolor="white"&gt;134&lt;/TD&gt;&lt;TD bgcolor="white"&gt;15.90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 18:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Variable-to-Set-Analysis/m-p/240653#M91155</guid>
      <dc:creator />
      <dc:date>2010-10-18T18:29:55Z</dc:date>
    </item>
    <item>
      <title>Text Variable to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Variable-to-Set-Analysis/m-p/240654#M91156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would take the logic out of the dimension and instead put it into the expressions as Set Analysis. Set the dimension to Account and then in your expressions use some Set Analysis to limit the accounts. For the first expression:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt;Account = {$(=Replace(vAccountSet, ' or ', ','))}&amp;gt;} Amount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;This is a little more complicated, because you separated your accounts with or in the variable. If you change those to commas, you can probably just use Account = {$(=vAccountSet)}. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may need to modify some of the other expressions to make them Aggregate functions. Only would work for some. I couldn't come up with the proper expression for the ratio. I'm not exactly sure how that one works. I've attached an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 19:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Variable-to-Set-Analysis/m-p/240654#M91156</guid>
      <dc:creator />
      <dc:date>2010-10-18T19:46:06Z</dc:date>
    </item>
    <item>
      <title>Text Variable to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Variable-to-Set-Analysis/m-p/240655#M91157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. The logic is in the dimmension because I need dynamic charts. I attached the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 15:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Variable-to-Set-Analysis/m-p/240655#M91157</guid>
      <dc:creator />
      <dc:date>2010-10-19T15:35:35Z</dc:date>
    </item>
  </channel>
</rss>

