<?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 Re: Variable in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7850#M791972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;vTarget_level=&amp;nbsp; &lt;/STRONG&gt;if(GetPossibleCount(TRG_GEO_LEVEL)=1, 'TRG_GEO_LEVEL={'RG'}','TRG_GEO_LEVEL={'SR'}');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;not put it in a text box and check&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2018 18:13:25 GMT</pubDate>
    <dc:creator>pradosh_thakur</dc:creator>
    <dc:date>2018-01-26T18:13:25Z</dc:date>
    <item>
      <title>Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7846#M791968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to define a variable that will be used in several expressions. This variable has a set analysis in it which also has a variable inside. It is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vTarget_level&lt;/STRONG&gt; = if(GetPossibleCount(TRG_GEO_LEVEL)=1, TRG_GEO_LEVEL={'RG'},TRG_GEO_LEVEL={'SR'});&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vTargetCSAT_TablChart&lt;/STRONG&gt;= sum({&amp;lt;TRG_CODE={'CSAT'}, $(=vTarget_level)&amp;gt;} TRG_TARGET * TRG_Target_Weights)/sum({&amp;lt;TRG_CODE={'CSAT'},$(=vTarget_level)&amp;gt;}TRG_Target_Weights)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use it on a text object as:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(vTargetCSAT_TablChart)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What gives error. If i put in the text box:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;=(vTargetCSAT_TablChart)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Results: sum({&amp;lt;TRG_CODE={'CSAT'},&amp;gt;} TRG_TARGET * TRG_Target_Weights)/sum({&amp;lt;TRG_CODE={'CSAT'},&amp;gt;}TRG_Target_Weights)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I do it so it gives the result?? Thanks.&lt;STRONG&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7846#M791968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7847#M791969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;verify that you didn't put an '=' when declaring both variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=$(vTargetCSAT_TablChart)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 16:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7847#M791969</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-01-26T16:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7848#M791970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no '=' in the declaration. They are both like this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlik_question.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/191512_qlik_question.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 16:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7848#M791970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-26T16:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7849#M791971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i didn't read the content of the variables and the association between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you try your first variable before ? the output should be a string&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 17:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7849#M791971</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-01-26T17:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7850#M791972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;vTarget_level=&amp;nbsp; &lt;/STRONG&gt;if(GetPossibleCount(TRG_GEO_LEVEL)=1, 'TRG_GEO_LEVEL={'RG'}','TRG_GEO_LEVEL={'SR'}');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;not put it in a text box and check&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 18:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis/m-p/7850#M791972</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2018-01-26T18:13:25Z</dc:date>
    </item>
  </channel>
</rss>

