<?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 Somme de valeur sous condition d'un master item in Francophones</title>
    <link>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495996#M17056</link>
    <description>&lt;P&gt;Bonjour la communauté,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cela fait quelques minutes que je tente de trouver l'information sur le forum mais rien de probant.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je vous expose mon problème :&lt;/P&gt;
&lt;P&gt;Je possède deux valeurs à comparer dans un stock sur des lignes identifiées :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID_KEY&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;STOCK A&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;STOCK B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID4&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;ID5&lt;/TD&gt;
&lt;TD height="25px"&gt;1&lt;/TD&gt;
&lt;TD height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dans ce tableau j'ai ajouté une colonne avec un master item "ECART" :&lt;/P&gt;
&lt;P&gt;=IF([STOCK A]&amp;lt;&amp;gt;[STOCK B], 'OUI','')&lt;/P&gt;
&lt;P&gt;Cela me permet d'indiquer les lignes qui ont des écarts entre les deux stocks&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="487px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID_KEY&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;STOCK A&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;STOCK B&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;ECART&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID1&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID2&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID3&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;0&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;OUI&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID4&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID5&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;0&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;OUI&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A présent je voudrais avoir un affichage dans un KPI du nombre de ligne en écart (Ici 2).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je n'ai pas trouvé la solution après avoir testé :&lt;/P&gt;
&lt;P&gt;COUNT(=IF([STOCK A]&amp;lt;&amp;gt;[STOCK B], 'OUI',''))&lt;/P&gt;
&lt;P&gt;SUM(=IF([STOCK A]&amp;lt;&amp;gt;[STOCK B], 'OUI',''))&lt;/P&gt;
&lt;P&gt;SUM(IF([ECART]='OUI',1,0) ==&amp;gt; Incorrect car ne repère pas [ECART] comme master item.&lt;/P&gt;
&lt;P&gt;J'ai tenter mais les valeurs indiquées ne différencie pas que la ligne soit "Oui" ou Vide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;L'objectif final est de différencier les lignes puis ensuite d'indiquer à l'utilisateur sur un tableau de bord :&lt;/P&gt;
&lt;P&gt;"3 Absence du stock A / 2 Absence du stock B / 1 Ecart Quantité "&amp;nbsp; Donc potentiellement en se basant sur le résultat du master Item à chaque fois.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y-a-t'il une solution que je n'ai pas encore découverte pour ce type de problème ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je vous remercie,&lt;/P&gt;
&lt;P&gt;Avie&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 14:02:22 GMT</pubDate>
    <dc:creator>Avie</dc:creator>
    <dc:date>2024-12-04T14:02:22Z</dc:date>
    <item>
      <title>Somme de valeur sous condition d'un master item</title>
      <link>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495996#M17056</link>
      <description>&lt;P&gt;Bonjour la communauté,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cela fait quelques minutes que je tente de trouver l'information sur le forum mais rien de probant.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je vous expose mon problème :&lt;/P&gt;
&lt;P&gt;Je possède deux valeurs à comparer dans un stock sur des lignes identifiées :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID_KEY&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;STOCK A&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;STOCK B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID4&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;ID5&lt;/TD&gt;
&lt;TD height="25px"&gt;1&lt;/TD&gt;
&lt;TD height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dans ce tableau j'ai ajouté une colonne avec un master item "ECART" :&lt;/P&gt;
&lt;P&gt;=IF([STOCK A]&amp;lt;&amp;gt;[STOCK B], 'OUI','')&lt;/P&gt;
&lt;P&gt;Cela me permet d'indiquer les lignes qui ont des écarts entre les deux stocks&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="487px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID_KEY&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;STOCK A&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;STOCK B&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;ECART&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID1&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID2&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID3&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;0&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;OUI&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID4&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161.938px" height="25px"&gt;ID5&lt;/TD&gt;
&lt;TD width="161.938px" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="81.0938px" height="25px"&gt;0&lt;/TD&gt;
&lt;TD width="81.0312px" height="25px"&gt;OUI&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A présent je voudrais avoir un affichage dans un KPI du nombre de ligne en écart (Ici 2).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je n'ai pas trouvé la solution après avoir testé :&lt;/P&gt;
&lt;P&gt;COUNT(=IF([STOCK A]&amp;lt;&amp;gt;[STOCK B], 'OUI',''))&lt;/P&gt;
&lt;P&gt;SUM(=IF([STOCK A]&amp;lt;&amp;gt;[STOCK B], 'OUI',''))&lt;/P&gt;
&lt;P&gt;SUM(IF([ECART]='OUI',1,0) ==&amp;gt; Incorrect car ne repère pas [ECART] comme master item.&lt;/P&gt;
&lt;P&gt;J'ai tenter mais les valeurs indiquées ne différencie pas que la ligne soit "Oui" ou Vide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;L'objectif final est de différencier les lignes puis ensuite d'indiquer à l'utilisateur sur un tableau de bord :&lt;/P&gt;
&lt;P&gt;"3 Absence du stock A / 2 Absence du stock B / 1 Ecart Quantité "&amp;nbsp; Donc potentiellement en se basant sur le résultat du master Item à chaque fois.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y-a-t'il une solution que je n'ai pas encore découverte pour ce type de problème ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Je vous remercie,&lt;/P&gt;
&lt;P&gt;Avie&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 14:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495996#M17056</guid>
      <dc:creator>Avie</dc:creator>
      <dc:date>2024-12-04T14:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Somme de valeur sous condition d'un master item</title>
      <link>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495997#M17057</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Le plus simple serait de faire la soustraction dans le script, aussi pour des questions de performances.&amp;nbsp;&lt;BR /&gt;Sinon j'ai fais Sum(StockA=StockB) qui renvoie en total d'écart -2 (-1 vrai par défaut), Après il faut de faire une mult. par -1 ou un fAbs Sum(StockA=StockB)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 14:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495997#M17057</guid>
      <dc:creator>mpc</dc:creator>
      <dc:date>2024-12-04T14:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Somme de valeur sous condition d'un master item</title>
      <link>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495998#M17058</link>
      <description>&lt;P&gt;Bonjour Avie,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sans avoir reproduit le cas, donc avec quelques doute, je tenterais :&lt;/P&gt;
&lt;P&gt;= Sum&lt;SPAN&gt;(IF([STOCK A]&amp;lt;&amp;gt;[STOCK B], 1,0))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cdlt,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 14:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495998#M17058</guid>
      <dc:creator>Dref278</dc:creator>
      <dc:date>2024-12-04T14:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Somme de valeur sous condition d'un master item</title>
      <link>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495999#M17059</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cela correspond tant que la quantité est de 1, mais si les quantités de stocks sont variables :&lt;/P&gt;
&lt;P&gt;Stock A | Stock B&lt;/P&gt;
&lt;P&gt;10 | 6&lt;/P&gt;
&lt;P&gt;2 | 6&lt;/P&gt;
&lt;P&gt;4 | 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cela donnerait Stock A = 16, Stock B = 16 donc ECART = 0 sauf que j'ai 2 lignes qui sont en écart.&lt;/P&gt;
&lt;P&gt;Ici j'ai simplifié en parlant de quantité mais ma recherche s'applique notamment à des dates ou texte pour comparer notamment des dates de consommation ou des numéros de lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 14:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2495999#M17059</guid>
      <dc:creator>Avie</dc:creator>
      <dc:date>2024-12-04T14:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Somme de valeur sous condition d'un master item</title>
      <link>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2496002#M17060</link>
      <description>&lt;P&gt;Alors comme ça:&amp;nbsp;fAbs(Sum(TransID&amp;lt;&amp;gt;TransLineID))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpc_0-1733322279826.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175195i7B7E20B32231F0D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpc_0-1733322279826.png" alt="mpc_0-1733322279826.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 14:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2496002#M17060</guid>
      <dc:creator>mpc</dc:creator>
      <dc:date>2024-12-04T14:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Somme de valeur sous condition d'un master item</title>
      <link>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2496161#M17061</link>
      <description>&lt;P&gt;Bonjour,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cela fonctionne effectivement en prenant le problème dans l'autre sens, merci.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bonne journée &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 08:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Somme-de-valeur-sous-condition-d-un-master-item/m-p/2496161#M17061</guid>
      <dc:creator>Avie</dc:creator>
      <dc:date>2024-12-05T08:45:50Z</dc:date>
    </item>
  </channel>
</rss>

