<?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 not working in some objects in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427973#M34166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I understand it right now. But does it mean that it is not possible to use variables in bar charts (or other objects with several dimensions), or is there a way to make it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 09:18:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-22T09:18:37Z</dc:date>
    <item>
      <title>Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427967#M34160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;Hello everyone,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;I created a variable with a set analysis in order to calculate a measure, but it does not work in all the objects of my app. For example, the variable works with a KPI object, but does not work with a bar chart : it gives me the same values for all the dimensions of the bar chart. H&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;owever, when I use directly the set analysis and not the variable, all the objects including the bar chart work perfectly.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;Loading the variable directly from the load editor does not change anything to this problem either. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;Here is an example :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Verdana','sans-serif';"&gt;With set analysis:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With variable:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-GB; color: black; font-size: 11pt; mso-ansi-language: EN-GB; mso-fareast-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri;"&gt; &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-GB; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA;"&gt;&lt;IMG class="jive-image image-1" height="276" src="https://community.qlik.com/legacyfs/online/183938_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" width="374" /&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-GB; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA;"&gt;&lt;IMG class="jive-image image-2" height="308" src="https://community.qlik.com/legacyfs/online/183939_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" width="619" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;Do you have any idea concerning the origin of the problem?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-GB; color: black; font-size: 10pt; mso-ansi-language: EN-GB; mso-fareast-theme-font: minor-latin; font-family: 'Verdana','sans-serif'; mso-fareast-font-family: Calibri;"&gt;Many thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 14:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427967#M34160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-20T14:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427968#M34161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that your variable begins with a equal-sign "=" which meant that the expression will be calculated and the result will be stored within the variable. See for this: &lt;A href="https://community.qlik.com/qlik-blogpost/3996"&gt;The Little Equals Sign&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427968#M34161</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-11-20T18:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427969#M34162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how you have defined variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 05:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427969#M34162</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-11-21T05:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427970#M34163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. My variable begins with the sign = so it calculates the expression and it is not considered as a text (as I understood it from the link you gave me).&lt;/P&gt;&lt;P&gt;It looks like the variable calculates one value and applies it to all the dimensions, even if the variable is created with Let statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427970#M34163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T15:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427971#M34164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shradda, my variable is defined with a Let in a scipt, and looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana','sans-serif'; font-size: 10pt; mso-bidi-language: AR-SA; mso-fareast-language: EN-US; mso-ansi-language: EN-GB; mso-fareast-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;=Count( {$&amp;lt; [Field_1]={1},[Field_2] ={1}, [Field_3]={1}&amp;gt; }distinct Field_4)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427971#M34164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T15:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427972#M34165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's right. By a variable-declaration beginning with the equal sign or within the script per LET will be at first evaluated and only the result of them is stored within the variable and of course each call of the variable has then the same return-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 06:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427972#M34165</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-11-22T06:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427973#M34166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I understand it right now. But does it mean that it is not possible to use variables in bar charts (or other objects with several dimensions), or is there a way to make it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 09:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427973#M34166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T09:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427974#M34167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you creates a variable with the name x and the content of: sum(AnyValue) without using a leading equal-sign you could use $(x) as expression within the chart as if you have typed sum(AnyValue) there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 16:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427974#M34167</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-11-22T16:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in some objects</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427975#M34168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcus, it works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 16:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-not-working-in-some-objects/m-p/1427975#M34168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T16:59:22Z</dc:date>
    </item>
  </channel>
</rss>

