<?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 Creating a list from Variables in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199911#M22697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use multiple variables to limit a single dimension in Set Analysis for a master measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below script in a Chart with "Business Unit" &amp;amp; "Quarter-Year" as a dimension, and it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quarter-Year = {$(Variable_1),$(Variable_2),$(Variable_3)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since "Quarter-Year" is a text field, I can't use a range such as {"&amp;gt;=$(=$(Variable_1))&amp;lt;=$(=$(Variable_3))"}, either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Would this work better as an OR, or is there another way to write this?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Should I create new fields in the Data Model to replace the Variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I initially tried using the following, but it breaks my Color By Expression for the Business Units:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Summary Date]={'&amp;gt;=$(=date(QuarterStart(AddMonths(Max([Summary Date]),-11))))&amp;lt;=$(=Max([Summary Date]))'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my Color By Expression script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RGB(Subfield([Summary_BUColor],',',1), Subfield([Summary_BUColor],',',2), Subfield([Summary_BUColor],',',3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions to make any of the above work would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 15:04:50 GMT</pubDate>
    <dc:creator>mikelutomski</dc:creator>
    <dc:date>2016-10-28T15:04:50Z</dc:date>
    <item>
      <title>Creating a list from Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199911#M22697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use multiple variables to limit a single dimension in Set Analysis for a master measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below script in a Chart with "Business Unit" &amp;amp; "Quarter-Year" as a dimension, and it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quarter-Year = {$(Variable_1),$(Variable_2),$(Variable_3)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since "Quarter-Year" is a text field, I can't use a range such as {"&amp;gt;=$(=$(Variable_1))&amp;lt;=$(=$(Variable_3))"}, either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Would this work better as an OR, or is there another way to write this?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Should I create new fields in the Data Model to replace the Variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I initially tried using the following, but it breaks my Color By Expression for the Business Units:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Summary Date]={'&amp;gt;=$(=date(QuarterStart(AddMonths(Max([Summary Date]),-11))))&amp;lt;=$(=Max([Summary Date]))'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my Color By Expression script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RGB(Subfield([Summary_BUColor],',',1), Subfield([Summary_BUColor],',',2), Subfield([Summary_BUColor],',',3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions to make any of the above work would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 15:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199911#M22697</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2016-10-28T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list from Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199912#M22698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) I am not completely sure I follow, are you using this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; {$(Variable_1),$(Variable_2),$(Variable_3)}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;as your second dimension Quarter-Year? or is this a set analysis used in your expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2) What is the relation of color and this expression? I am not sure I understand that, can you may be share a sample and demonstrate the issue to us?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 17:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199912#M22698</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-28T17:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list from Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199913#M22699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main concern is getting the chart to maintain the colors by expression for the [Summary Business Unit] in the charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I make a selection, it loses the colors, with the exception of when selecting the max month within a quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each chart in the attached report has a different way of keeping the range of 4 quarters, with the exception of the third one, which uses the value of the fields based on the month selected ([1 Qtr Back],[2 Qtrs Back],[3 Qtrs Back]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table represents the quarters that should be used based on the month selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking some time to look at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 18:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199913#M22699</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2016-10-28T18:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list from Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199914#M22700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RGB(Subfield(&lt;SPAN style="color: #ff0000;"&gt;Only({1} &lt;/SPAN&gt;[Summary_BUColor]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;,',',1), Subfield(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Only({1} &lt;/STRONG&gt;[Summary_BUColor]&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;)&lt;/STRONG&gt;,',',2), Subfield(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Only({1} &lt;/STRONG&gt;[Summary_BUColor]&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;)&lt;/STRONG&gt;,',',3))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142394_Capture.PNG" style="height: 582px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 20:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199914#M22700</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-28T20:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a list from Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199915#M22701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ugh...something so simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much Sunny!!&amp;nbsp; This is perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 12:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-list-from-Variables-in-Set-Analysis/m-p/1199915#M22701</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2016-10-31T12:54:16Z</dc:date>
    </item>
  </channel>
</rss>

