<?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: Iterative calculation in skript (Qlikview or Qliksense) like Excel in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985642#M81374</link>
    <description>&lt;P&gt;There is no need for numerical iterations if you just solve those equations for sellprice:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1664225980173.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89955i923CDBBA22A1EA13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1664225980173.png" alt="MarcoWedel_0-1664225980173.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD *,
     sellprice/119*19			as tax19%,
     sellprice*0.13				as fee13%;
LOAD Name, 
     price, 
     margin, 
     (price+margin)/0.710336	as sellprice	// 100%-13%-19%/119% = 0.710336
FROM [https://community.qlik.com/cyjdu72974/attachments/cyjdu72974/qlik-sense-app-development/81340/1/testdata.xlsx] (ooxml, embedded labels, table is Tabelle1);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 20:59:58 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2022-09-26T20:59:58Z</dc:date>
    <item>
      <title>Iterative calculation in skript (Qlikview or Qliksense) like Excel</title>
      <link>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985268#M81340</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;
&lt;P&gt;i am looking for a solution in Qlikview or QLiksense for the following problem.&lt;/P&gt;
&lt;P&gt;I want to calculate a Selling price for a marketplace.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My input data (see testdata.xlsx) ist:&lt;/P&gt;
&lt;P&gt;Name = name of the product&lt;/P&gt;
&lt;P&gt;price = price we pay for the product&lt;/P&gt;
&lt;P&gt;margin = the margin we want after all costs are substracted from teh sellingprice&lt;/P&gt;
&lt;P&gt;tax19% = the tax on the product when it got sold on the marketplace&lt;/P&gt;
&lt;P&gt;fee13% = the fee we have to pay to the marketplace for selling the product&lt;/P&gt;
&lt;P&gt;I want to calculate the column sellprice in QLikview / qliksense, so that&lt;/P&gt;
&lt;P&gt;sellprice - fee13% - tax19% - price = margin&lt;/P&gt;
&lt;P&gt;My problem: tax19% and fee13% are calculated from the sellprice.&lt;/P&gt;
&lt;P&gt;In Excel, there is a solution when to activate iterative calculation unter option - formula (without you get the circular reference error).&lt;/P&gt;
&lt;P&gt;Is there a solution for this in qlikview / qliksense for calculating sellprice in the skript?&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;
&lt;P&gt;Hermann&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 10:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985268#M81340</guid>
      <dc:creator>hbuchetmann</dc:creator>
      <dc:date>2022-09-26T10:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative calculation in skript (Qlikview or Qliksense) like Excel</title>
      <link>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985283#M81343</link>
      <description>&lt;P&gt;Hi HBuchetmann,&lt;/P&gt;
&lt;P&gt;you could try this line in your loadscript:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sellprice - (sellprice * 0.19) - (sellprice * 0.13) - price as Margin&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it helped.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Can&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 11:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985283#M81343</guid>
      <dc:creator>canerkan</dc:creator>
      <dc:date>2022-09-26T11:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative calculation in skript (Qlikview or Qliksense) like Excel</title>
      <link>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985312#M81346</link>
      <description>&lt;P&gt;Hello Can,&lt;/P&gt;
&lt;P&gt;i try to calculate sellprice in the skript, not the margin.&lt;/P&gt;
&lt;P&gt;In the testdata sellprice is calculated with excel just to demonstrate how it works in excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 12:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985312#M81346</guid>
      <dc:creator>hbuchetmann</dc:creator>
      <dc:date>2022-09-26T12:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative calculation in skript (Qlikview or Qliksense) like Excel</title>
      <link>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985642#M81374</link>
      <description>&lt;P&gt;There is no need for numerical iterations if you just solve those equations for sellprice:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1664225980173.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89955i923CDBBA22A1EA13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1664225980173.png" alt="MarcoWedel_0-1664225980173.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD *,
     sellprice/119*19			as tax19%,
     sellprice*0.13				as fee13%;
LOAD Name, 
     price, 
     margin, 
     (price+margin)/0.710336	as sellprice	// 100%-13%-19%/119% = 0.710336
FROM [https://community.qlik.com/cyjdu72974/attachments/cyjdu72974/qlik-sense-app-development/81340/1/testdata.xlsx] (ooxml, embedded labels, table is Tabelle1);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Iterative-calculation-in-skript-Qlikview-or-Qliksense-like-Excel/m-p/1985642#M81374</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-09-26T20:59:58Z</dc:date>
    </item>
  </channel>
</rss>

