<?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 Nested Variables in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Variables-in-Set-Analysis/m-p/8455#M1282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression which uses a variable in the set analysis. That variable is meant to return a text value of a set analysis function, based on a series of nested variables. This function is working, but the expression editor is indicating an error. Could someone help me identify a way to eliminate the error while retaining the functionality?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;varCurrentYear&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varAVSelectorBookings)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM style="text-decoration: underline;"&gt;}&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;[Booking ID]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; text-decoration: underline;"&gt;)) &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;With the error being the underlined/italicised section after the space at the end&amp;nbsp;&amp;nbsp; "&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;}[Booking ID]))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have buttons that select 0,1,2, or 3 for a variable &lt;EM&gt;varAVSelector&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;varAVSelectorBookings&lt;/EM&gt; has a value of&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=IF(&lt;EM&gt;varAVSelector&lt;/EM&gt;=1,&lt;EM&gt;varEvent&lt;/EM&gt;,(IF(&lt;EM&gt;varAVSelector&lt;/EM&gt;=2,&lt;EM&gt;varMSR&lt;/EM&gt;,(IF(&lt;EM&gt;varAVSelector&lt;/EM&gt;=3,&lt;EM&gt;varSR&lt;/EM&gt;,(IF(&lt;EM&gt;varAVSelector&lt;/EM&gt;=0,'X')))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So, if I hit the button that sets &lt;EM&gt;varAVSelector&lt;/EM&gt; to1, I return &lt;EM&gt;varEvent&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;varEvent&lt;/EM&gt; has a value of [Event Flag]={'Event'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;varMSR&lt;/EM&gt; and &lt;EM&gt;varSR&lt;/EM&gt; also have similar set analysis formatted values, using a field other than [Event Flag]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Based on which button I hit, I trigger a 0-4 value for &lt;EM&gt;varAVSelector&lt;/EM&gt;, which causes the variable &lt;EM&gt;varAVSelectorBookings &lt;/EM&gt;to return a value as text which takes the place of the variable in the set analysis. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;As I said, this function is working correctly. It is a complicated way to combine data that is related in practice, but not in method of extraction. It allows my end users to think and review data as they understand it, without the need to deal with complexities of the function. I am just concerned about the Function Error message in the expression editor, and how that may impact data in unforseen ways. I'd appreciate any help you could provide.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2018 16:55:42 GMT</pubDate>
    <dc:creator>jason_nicholas</dc:creator>
    <dc:date>2018-05-24T16:55:42Z</dc:date>
    <item>
      <title>Nested Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Variables-in-Set-Analysis/m-p/8455#M1282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression which uses a variable in the set analysis. That variable is meant to return a text value of a set analysis function, based on a series of nested variables. This function is working, but the expression editor is indicating an error. Could someone help me identify a way to eliminate the error while retaining the functionality?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;varCurrentYear&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varAVSelectorBookings)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM style="text-decoration: underline;"&gt;}&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;[Booking ID]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; text-decoration: underline;"&gt;)) &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;With the error being the underlined/italicised section after the space at the end&amp;nbsp;&amp;nbsp; "&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;}[Booking ID]))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have buttons that select 0,1,2, or 3 for a variable &lt;EM&gt;varAVSelector&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;varAVSelectorBookings&lt;/EM&gt; has a value of&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=IF(&lt;EM&gt;varAVSelector&lt;/EM&gt;=1,&lt;EM&gt;varEvent&lt;/EM&gt;,(IF(&lt;EM&gt;varAVSelector&lt;/EM&gt;=2,&lt;EM&gt;varMSR&lt;/EM&gt;,(IF(&lt;EM&gt;varAVSelector&lt;/EM&gt;=3,&lt;EM&gt;varSR&lt;/EM&gt;,(IF(&lt;EM&gt;varAVSelector&lt;/EM&gt;=0,'X')))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So, if I hit the button that sets &lt;EM&gt;varAVSelector&lt;/EM&gt; to1, I return &lt;EM&gt;varEvent&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;varEvent&lt;/EM&gt; has a value of [Event Flag]={'Event'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;varMSR&lt;/EM&gt; and &lt;EM&gt;varSR&lt;/EM&gt; also have similar set analysis formatted values, using a field other than [Event Flag]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Based on which button I hit, I trigger a 0-4 value for &lt;EM&gt;varAVSelector&lt;/EM&gt;, which causes the variable &lt;EM&gt;varAVSelectorBookings &lt;/EM&gt;to return a value as text which takes the place of the variable in the set analysis. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;As I said, this function is working correctly. It is a complicated way to combine data that is related in practice, but not in method of extraction. It allows my end users to think and review data as they understand it, without the need to deal with complexities of the function. I am just concerned about the Function Error message in the expression editor, and how that may impact data in unforseen ways. I'd appreciate any help you could provide.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 16:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Variables-in-Set-Analysis/m-p/8455#M1282</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2018-05-24T16:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Variables-in-Set-Analysis/m-p/8456#M1283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, you won't be able to avoid the error message if you use the variable. The error message just mean that QlikView expression editor doesn't understand the un-expanded variable in set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 17:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Variables-in-Set-Analysis/m-p/8456#M1283</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-24T17:12:49Z</dc:date>
    </item>
  </channel>
</rss>

