<?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: Variables not working as expected .? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018724#M84140</link>
    <description>&lt;P&gt;The problem I found is the variable&amp;nbsp;&lt;SPAN&gt;v_compmeasure1_format is always '#,##0'.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1671577816601.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96618i0E3B34E96FBCDDD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1671577816601.png" alt="ashmitp869_0-1671577816601.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But the other apps have three of them like below&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_2-1671578254439.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96620i5C65E57A484B2A08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_2-1671578254439.png" alt="ashmitp869_2-1671578254439.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thus its showing null as "-" . while when having only one format - it showing Error : Error in expression.&lt;/P&gt;
&lt;P&gt;Any suggestion to get rid of the message&amp;nbsp;Error : Error in expression and show&amp;nbsp;"-" ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 23:18:53 GMT</pubDate>
    <dc:creator>ashmitp869</dc:creator>
    <dc:date>2022-12-20T23:18:53Z</dc:date>
    <item>
      <title>Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018311#M84086</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;The format of the variable is not working in Qlikview App.&lt;/P&gt;
&lt;P&gt;I am using variables to work on the format , but still its holding the format even though anything is not selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1671510244290.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96545i613FC6F081E846C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1671510244290.png" alt="ashmitp869_0-1671510244290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Textbox Cohort1 expression = Num($(v_g1compmeasure1_expr),$(v_compmeasure1format))&lt;/P&gt;
&lt;P&gt;First textbox with null value&amp;nbsp; =v_g1compmeasure1_expr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second textboc holding the format variable =&amp;nbsp;=v_compmeasure1_format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same variable worked it other Apps as expected like when not selected its showing null but in the app its showing Error : Error in expression because of the format. how to resolve the error message.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 04:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018311#M84086</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-12-20T04:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018316#M84087</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;How to check if getselectedcount(_compmeasure1)&amp;nbsp; then&lt;/P&gt;
&lt;P&gt;Num($(v_g1compmeasure1_expr),$(v_compmeasure1_format))&lt;/P&gt;
&lt;P&gt;else&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 04:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018316#M84087</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-12-20T04:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018340#M84095</link>
      <description>&lt;P&gt;can you post a screenshot of the entire expression editor window so we can see what the expression is evaluating to?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 06:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018340#M84095</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-12-20T06:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018673#M84135</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1671565563039.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96603iB6546C83A3D9C1B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1671565563039.png" alt="ashmitp869_0-1671565563039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Help me with the expression in text box :-&lt;/P&gt;
&lt;P&gt;if GetSelectedCount is Null show "-"&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;Num($(v_g1compmeasure1_expr),$(v_compmeasure1_format))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the below expression but not working -&lt;/P&gt;
&lt;P&gt;=if(GetSelectedCount(_compmeasure1)=1,Num($(v_g1compmeasure1_expr),$(v_compmeasure1_format)))&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 19:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018673#M84135</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-12-20T19:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018724#M84140</link>
      <description>&lt;P&gt;The problem I found is the variable&amp;nbsp;&lt;SPAN&gt;v_compmeasure1_format is always '#,##0'.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1671577816601.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96618i0E3B34E96FBCDDD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1671577816601.png" alt="ashmitp869_0-1671577816601.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But the other apps have three of them like below&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_2-1671578254439.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96620i5C65E57A484B2A08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_2-1671578254439.png" alt="ashmitp869_2-1671578254439.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thus its showing null as "-" . while when having only one format - it showing Error : Error in expression.&lt;/P&gt;
&lt;P&gt;Any suggestion to get rid of the message&amp;nbsp;Error : Error in expression and show&amp;nbsp;"-" ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 23:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018724#M84140</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-12-20T23:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018737#M84142</link>
      <description>&lt;P&gt;&lt;EM&gt;Help attach the sample app , it would be easy to check . I don't see any issue with the expression need the check your app&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 03:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018737#M84142</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2022-12-21T03:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018739#M84143</link>
      <description>&lt;P&gt;click on the below button(highlighted) and post a screenshot of sentire expression editor window&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinieme12_0-1671592280447.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96621i3B5698DC62A255C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinieme12_0-1671592280447.png" alt="vinieme12_0-1671592280447.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 03:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018739#M84143</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-12-21T03:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018748#M84144</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_1-1671597294771.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96625i3F4134EEF8ED52F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_1-1671597294771.png" alt="ashmitp869_1-1671597294771.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 04:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018748#M84144</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-12-21T04:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not working as expected .?</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018751#M84145</link>
      <description>&lt;P&gt;can you post &lt;U&gt;the full window of the expression editor, it shows the evaluated expression at the bottom of the editor&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;which is what i am after&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;or as&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35867"&gt;@avinashelite&lt;/a&gt;&amp;nbsp; suggested, post a sample app&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 05:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-not-working-as-expected/m-p/2018751#M84145</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-12-21T05:17:20Z</dc:date>
    </item>
  </channel>
</rss>

