<?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: Graphique courbes / Courbes de tendance in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Graphique-courbes-Courbes-de-tendance/m-p/2544545#M109694</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/259251"&gt;@scribidouille&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, there is not a function to provide you the coefficients for 2nd degree and 3rd degree regressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 2n degree is relatively easy to calculate, you only need 12 variables like this:&lt;/P&gt;
&lt;P&gt;n:&amp;nbsp;Count(Y)&lt;/P&gt;
&lt;P&gt;Sx:&amp;nbsp;sum(X)&lt;/P&gt;
&lt;P&gt;Sx2:&amp;nbsp;sum(pow(X,2))&lt;/P&gt;
&lt;P&gt;Sx3:&amp;nbsp;sum(pow(X,3))&lt;/P&gt;
&lt;P&gt;Sx4:&amp;nbsp;sum(pow(X,4))&lt;/P&gt;
&lt;P&gt;Sy:&amp;nbsp;sum(Y)&lt;/P&gt;
&lt;P&gt;Sxy:&amp;nbsp;sum(X*Y)&lt;/P&gt;
&lt;P&gt;Sx2y:&amp;nbsp;sum(pow(X,2)*Y)&lt;/P&gt;
&lt;P&gt;a:&amp;nbsp;=($(Sy)*($(Sx2)*$(Sx4) - pow($(Sx3),2)) - $(Sx)*($(Sxy)*$(Sx4) - $(Sx3)*$(Sx2y)) + $(Sx2)*($(Sxy)*$(Sx3) - $(Sx2)*$(Sx2y))) / ($(n)*($(Sx2)*$(Sx4) - pow($(Sx3),2)) - $(Sx)*($(Sx)*$(Sx4) - $(Sx2)*$(Sx3)) + $(Sx2)*($(Sx)*$(Sx3)- pow($(Sx2),2)))&lt;/P&gt;
&lt;P&gt;b:&amp;nbsp;=($(n)*($(Sxy)*$(Sx4) - $(Sx3)*$(Sx2y)) - $(Sx)*($(Sy)*$(Sx4) - $(Sx2)*$(Sx2y)) + $(Sx2)*($(Sy)*$(Sx3) - $(Sx2)*$(Sxy))) / ($(n)*($(Sx2)*$(Sx4) - pow($(Sx3),2)) - $(Sx)*($(Sx)*$(Sx4) - $(Sx2)*$(Sx3)) + $(Sx2)*($(Sx)*$(Sx3)- pow($(Sx2),2)))&lt;/P&gt;
&lt;P&gt;c:&amp;nbsp;=($(n)*($(Sx2)*$(Sx2y) - $(Sx3)*$(Sxy)) - $(Sx)*($(Sx)*$(Sx2y) - $(Sx3)*$(Sy)) + $(Sx2)*($(Sx)*$(Sxy) - $(Sx2)*$(Sy))) / ($(n)*($(Sx2)*$(Sx4) - pow($(Sx3),2)) - $(Sx)*($(Sx)*$(Sx4) - $(Sx2)*$(Sx3)) + $(Sx2)*($(Sx)*$(Sx3)- pow($(Sx2),2)))&lt;/P&gt;
&lt;P&gt;R2:&amp;nbsp;1 - (sum(pow(Y-($(a)+$(b)*X + $(c)*pow(X,2)),2))/sum(pow(Y-avg(total Y),2)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Being X and Y your fields in the graph and a, b and c the coefficients of the second degree formula a + b*X + c*X^2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But for the 3rd degree the formulas are very long. It is not efficient to try to find it in this way. It is better to use matrixial calculus, but Qlik is not designed to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2026 10:12:43 GMT</pubDate>
    <dc:creator>Daniel_Castella</dc:creator>
    <dc:date>2026-03-11T10:12:43Z</dc:date>
    <item>
      <title>Graphique courbes / Courbes de tendance</title>
      <link>https://community.qlik.com/t5/App-Development/Graphique-courbes-Courbes-de-tendance/m-p/2544182#M109642</link>
      <description>&lt;P&gt;J'ai créé une feuille avec un graphique en courbe et pour trouver le bon modèle, j'ai créé un variable input avec show as Buttons et des valeurs fixes pour chaque modèle (linéaire, logarithmique, puissance, exponentiel, polynomial 2nd degré et 3ème degré.&lt;BR /&gt;&lt;BR /&gt;Mais je voudrais récupérer les coefficients du modèle et R² pour modéliser sur faire des prévisions.&lt;BR /&gt;Pour les modèles linéaires, logarithmique, puissance et exponentiel, je me sers des fonctions linest_M, linest_B et linest_R2&lt;BR /&gt;&lt;BR /&gt;Mais pour les modèles polynomial 2nd et 3nd degré, je ne vois pas comment faire ? il y a t il d'autres fonctions ?&lt;BR /&gt;&lt;BR /&gt;est il possible d'afficher, comme sous Excel, la formule du modèle. Par exemple Y=1000x + 5 ou Y = 5 X² + 10X - 15 sur le graphique en courbes ?&lt;BR /&gt;&lt;BR /&gt;Je précise que je suis en mode contributeur et donc je n'ai pas les accès au script de chargement de l'application.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 13:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Graphique-courbes-Courbes-de-tendance/m-p/2544182#M109642</guid>
      <dc:creator>scribidouille</dc:creator>
      <dc:date>2026-03-04T13:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Graphique courbes / Courbes de tendance</title>
      <link>https://community.qlik.com/t5/App-Development/Graphique-courbes-Courbes-de-tendance/m-p/2544545#M109694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/259251"&gt;@scribidouille&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, there is not a function to provide you the coefficients for 2nd degree and 3rd degree regressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 2n degree is relatively easy to calculate, you only need 12 variables like this:&lt;/P&gt;
&lt;P&gt;n:&amp;nbsp;Count(Y)&lt;/P&gt;
&lt;P&gt;Sx:&amp;nbsp;sum(X)&lt;/P&gt;
&lt;P&gt;Sx2:&amp;nbsp;sum(pow(X,2))&lt;/P&gt;
&lt;P&gt;Sx3:&amp;nbsp;sum(pow(X,3))&lt;/P&gt;
&lt;P&gt;Sx4:&amp;nbsp;sum(pow(X,4))&lt;/P&gt;
&lt;P&gt;Sy:&amp;nbsp;sum(Y)&lt;/P&gt;
&lt;P&gt;Sxy:&amp;nbsp;sum(X*Y)&lt;/P&gt;
&lt;P&gt;Sx2y:&amp;nbsp;sum(pow(X,2)*Y)&lt;/P&gt;
&lt;P&gt;a:&amp;nbsp;=($(Sy)*($(Sx2)*$(Sx4) - pow($(Sx3),2)) - $(Sx)*($(Sxy)*$(Sx4) - $(Sx3)*$(Sx2y)) + $(Sx2)*($(Sxy)*$(Sx3) - $(Sx2)*$(Sx2y))) / ($(n)*($(Sx2)*$(Sx4) - pow($(Sx3),2)) - $(Sx)*($(Sx)*$(Sx4) - $(Sx2)*$(Sx3)) + $(Sx2)*($(Sx)*$(Sx3)- pow($(Sx2),2)))&lt;/P&gt;
&lt;P&gt;b:&amp;nbsp;=($(n)*($(Sxy)*$(Sx4) - $(Sx3)*$(Sx2y)) - $(Sx)*($(Sy)*$(Sx4) - $(Sx2)*$(Sx2y)) + $(Sx2)*($(Sy)*$(Sx3) - $(Sx2)*$(Sxy))) / ($(n)*($(Sx2)*$(Sx4) - pow($(Sx3),2)) - $(Sx)*($(Sx)*$(Sx4) - $(Sx2)*$(Sx3)) + $(Sx2)*($(Sx)*$(Sx3)- pow($(Sx2),2)))&lt;/P&gt;
&lt;P&gt;c:&amp;nbsp;=($(n)*($(Sx2)*$(Sx2y) - $(Sx3)*$(Sxy)) - $(Sx)*($(Sx)*$(Sx2y) - $(Sx3)*$(Sy)) + $(Sx2)*($(Sx)*$(Sxy) - $(Sx2)*$(Sy))) / ($(n)*($(Sx2)*$(Sx4) - pow($(Sx3),2)) - $(Sx)*($(Sx)*$(Sx4) - $(Sx2)*$(Sx3)) + $(Sx2)*($(Sx)*$(Sx3)- pow($(Sx2),2)))&lt;/P&gt;
&lt;P&gt;R2:&amp;nbsp;1 - (sum(pow(Y-($(a)+$(b)*X + $(c)*pow(X,2)),2))/sum(pow(Y-avg(total Y),2)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Being X and Y your fields in the graph and a, b and c the coefficients of the second degree formula a + b*X + c*X^2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But for the 3rd degree the formulas are very long. It is not efficient to try to find it in this way. It is better to use matrixial calculus, but Qlik is not designed to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 10:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Graphique-courbes-Courbes-de-tendance/m-p/2544545#M109694</guid>
      <dc:creator>Daniel_Castella</dc:creator>
      <dc:date>2026-03-11T10:12:43Z</dc:date>
    </item>
  </channel>
</rss>

