<?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 Dividing two values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dividing-two-values/m-p/2140773#M92765</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I need help to simply build a kpi where the value of a field is divided through another field.&lt;/P&gt;
&lt;P&gt;I have this Table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sde821_1-1700741101906.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120485iB3EE70C86FB06333/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sde821_1-1700741101906.png" alt="sde821_1-1700741101906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The value from last date of last year 104,038219 (31.12.2022) should be divided through the value of last day of the year before 108,785167 (31.12.2021). I want the KPI two adjust automatically in 2024 and all other years. How can I do this via variables, in script or front end?&lt;/P&gt;
&lt;P&gt;Thanks for helping!&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Anna&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 12:47:08 GMT</pubDate>
    <dc:creator>sde821</dc:creator>
    <dc:date>2023-11-23T12:47:08Z</dc:date>
    <item>
      <title>Dividing two values</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-two-values/m-p/2140773#M92765</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I need help to simply build a kpi where the value of a field is divided through another field.&lt;/P&gt;
&lt;P&gt;I have this Table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sde821_1-1700741101906.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120485iB3EE70C86FB06333/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sde821_1-1700741101906.png" alt="sde821_1-1700741101906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The value from last date of last year 104,038219 (31.12.2022) should be divided through the value of last day of the year before 108,785167 (31.12.2021). I want the KPI two adjust automatically in 2024 and all other years. How can I do this via variables, in script or front end?&lt;/P&gt;
&lt;P&gt;Thanks for helping!&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Anna&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 12:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-two-values/m-p/2140773#M92765</guid>
      <dc:creator>sde821</dc:creator>
      <dc:date>2023-11-23T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing two values</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-two-values/m-p/2141662#M92855</link>
      <description>&lt;P&gt;create a 2 variables&lt;BR /&gt;&lt;BR /&gt;1 - vMaxActualYear = Max(Your_Year_Field)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1 - vLastActualYear = Max(Your_Year_Field)-1&lt;BR /&gt;&lt;BR /&gt;Then&lt;BR /&gt;&lt;BR /&gt;Sum ( {&amp;lt; Year = , Year = {'$(vMaxActualYear )'}&amp;gt;} Value)&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;Sum ( {&amp;lt; Year = , Year = {'$(vLastActualYear )'}&amp;gt;} Value)&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 15:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-two-values/m-p/2141662#M92855</guid>
      <dc:creator>srchagas</dc:creator>
      <dc:date>2023-11-27T15:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing two values</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-two-values/m-p/2142271#M92921</link>
      <description>&lt;P&gt;Thank you for your help Srchagas, but it doesn't work. I need the quotient of the two values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a solution that is working, but I can't use a variable insted of the date. Does anyone know a way to use this formula with a variable?&lt;/P&gt;
&lt;P&gt;Only({&amp;lt;[Date]={"31.12.2022"}&amp;gt;} Value)/Only({&amp;lt;DateI={"31.12.2021"}&amp;gt;} Value)&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-two-values/m-p/2142271#M92921</guid>
      <dc:creator>sde821</dc:creator>
      <dc:date>2023-11-29T08:26:51Z</dc:date>
    </item>
  </channel>
</rss>

