<?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: Using Measure Variables in calculated expressions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Measure-Variables-in-calculated-expressions/m-p/84052#M5599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was missing a set of (). Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Feb 2018 16:23:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-10T16:23:40Z</dc:date>
    <item>
      <title>Using Measure Variables in calculated expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Measure-Variables-in-calculated-expressions/m-p/84050#M5597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I created some measure variables and want to complete some calculations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two in this example are mocccupancyexp_june &amp;amp; mdirectsalesjune.&lt;/P&gt;&lt;P&gt;At first I tried just dividing them (column 1), but realized it was incorrect. Columns 2 &amp;amp; 3 are the correct value &amp;amp; column 4 is a division of the two for the right percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using =$(moccupancyexp_june) / $(mdirectsalesjune) for the initial calculation, but I must have made a mistake.&amp;nbsp; The image below has my calculations in the column header. Thanks for any help&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2018-02-10 at 6.51.42 AM.png" class="jive-image image-1" height="283" src="/legacyfs/online/193006_Screen Shot 2018-02-10 at 6.51.42 AM.png" style="height: 283px; width: 766.597px;" width="767" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Measure-Variables-in-calculated-expressions/m-p/84050#M5597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure Variables in calculated expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Measure-Variables-in-calculated-expressions/m-p/84051#M5598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, suppose &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;mocccupancyexp_june &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; is &lt;EM&gt;sum(DirectSales)+1&lt;/EM&gt; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;mdirectsalesjune&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;is&lt;EM&gt; sum(Amount)&lt;/EM&gt;. Then &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(moccupancyexp_june) / $(mdirectsalesjune) would become &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(DirectSales)+1/&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(Amount). &lt;/EM&gt;&lt;/EM&gt;And that's completely different from (&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(DirectSales)+1) / &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(Amount). &lt;/EM&gt;&lt;/EM&gt;Just an example of what could go wrong. Since I don't know what expressions your variables really contain there's no telling what really is going wrong.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 13:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Measure-Variables-in-calculated-expressions/m-p/84051#M5598</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-02-10T13:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure Variables in calculated expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Measure-Variables-in-calculated-expressions/m-p/84052#M5599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was missing a set of (). Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2018 16:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Measure-Variables-in-calculated-expressions/m-p/84052#M5599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-10T16:23:40Z</dc:date>
    </item>
  </channel>
</rss>

