<?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: Expression in variable evaluating as a value instead of an expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502737#M103498</link>
    <description>&lt;P&gt;I think I figured it out. The "=" sign at the beginning of the expression is forcing it to evaluate. What is confusing is that it's not behaving that way for vMonOrd, only the other variables. I edited all of the other variables, starting with vTueOrd, and removed the "=" sign, and now all variables are behaving correctly.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 15:29:05 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2025-01-24T15:29:05Z</dc:date>
    <item>
      <title>Expression in variable evaluating as a value instead of an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502736#M103497</link>
      <description>&lt;P&gt;I have expressions in variables, such as the following:&lt;/P&gt;
&lt;P&gt;=If((vMeasure) = 'EquivPrice',&lt;BR /&gt;(Num(Sum({&amp;lt;ShipDate_DayOfWeek={'Tue'},Week={'$(vWeek)'},ShipYear={'$(vYear)'}&amp;gt;}ExtendedPrice) / Sum({&amp;lt;ShipDate_DayOfWeek={'Tue'},Week={'$(vWeek)'},ShipYear={'$(vYear)'}&amp;gt;}EquivalentUnits),'$##.00'))&lt;BR /&gt;,&lt;BR /&gt;If((vMeasure) = 'CartonPrice',&lt;BR /&gt;(Num(Sum({&amp;lt;ShipDate_DayOfWeek={'Tue'},Week={'$(vWeek)'},ShipYear={'$(vYear)'}&amp;gt;}ExtendedPrice) / Sum({&amp;lt;ShipDate_DayOfWeek={'Tue'},Week={'$(vWeek)'},ShipYear={'$(vYear)'}&amp;gt;}CartonEquiv),'$##.00')),&lt;BR /&gt;(Num(Sum({&amp;lt;ShipDate_DayOfWeek={'Tue'},[Week]={'$(vWeek)'},ShipYear={'$(vYear)'}&amp;gt;}$(vMeasure)),'#,##0'))&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;As seen in the Variables editor, the one for vTueOrd (expression above) is changed to a value instead of an expression. The one in vMonOrd is almost exactly the same (only ShipDate_DayOfWeek is different), but it behaves correctly.&lt;/P&gt;
&lt;P&gt;Please advise.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1737665617474.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176827i336A8491306CD3A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1737665617474.png" alt="mikegrattan_0-1737665617474.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 20:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502736#M103497</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2025-01-23T20:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in variable evaluating as a value instead of an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502737#M103498</link>
      <description>&lt;P&gt;I think I figured it out. The "=" sign at the beginning of the expression is forcing it to evaluate. What is confusing is that it's not behaving that way for vMonOrd, only the other variables. I edited all of the other variables, starting with vTueOrd, and removed the "=" sign, and now all variables are behaving correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 15:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502737#M103498</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2025-01-24T15:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in variable evaluating as a value instead of an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502789#M103503</link>
      <description>&lt;P&gt;I see that your vMeasure is evaluated using $ in vTueOrd . Could that be the reason ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 07:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502789#M103503</guid>
      <dc:creator>premacharya0903</dc:creator>
      <dc:date>2025-01-24T07:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in variable evaluating as a value instead of an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502874#M103516</link>
      <description>&lt;P&gt;It was the "=" sign at the beginning of the expression. I removed it, and now it is behaving correctly. Thanks for your response!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 15:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-in-variable-evaluating-as-a-value-instead-of-an/m-p/2502874#M103516</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2025-01-24T15:27:24Z</dc:date>
    </item>
  </channel>
</rss>

