<?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: QS - Formule vérification contenu in Francophones</title>
    <link>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23780#M438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parfait ça marche &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci beaucoup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Feb 2018 09:27:54 GMT</pubDate>
    <dc:creator>elanglois33</dc:creator>
    <dc:date>2018-02-05T09:27:54Z</dc:date>
    <item>
      <title>QS - Formule vérification contenu</title>
      <link>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23774#M432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J'ai besoin de catégoriser des commandes en fonction de leur contenu.&lt;/P&gt;&lt;P&gt;Ma règle se porte sur les articles de la FamilleProduit = A :&lt;/P&gt;&lt;P&gt;Par numéro de commande (NumCde), je vérifie la présence dans une même commande d’au moins un article de 5 sous-famille : &lt;/P&gt;&lt;P&gt;Sous-Famille 1&lt;/P&gt;&lt;P&gt;Sous-Famille 2&lt;/P&gt;&lt;P&gt;Sous-Famille 3&lt;/P&gt;&lt;P&gt;Sous-Famille 4&lt;/P&gt;&lt;P&gt;Sous-Famille 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Si c’est le cas, je flag ma commande « Ok ».&lt;/P&gt;&lt;P&gt;Pour toutes les autres commandes, je flag « Autres ».&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avez-vous une idée de comment je peux contrôler la présence des différentes Sous famille dans chaque commande ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J'ai essayé via une fonction count distinct mais ce n'est pas assez fin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci d'avance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 466px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;NumCde&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Article&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="97"&gt;SsFamille&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="99"&gt;FamilleProduit&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="110"&gt;Résultat attendu&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000001&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ok&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000002&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ok&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000003&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ok&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000004&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ok&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000005&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ok&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000006&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ok&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000002&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000001&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Autres&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000002&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000002&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Autres&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;0000002&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;000004&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Sous-Famille 4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Autres&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 14:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23774#M432</guid>
      <dc:creator>elanglois33</dc:creator>
      <dc:date>2018-01-30T14:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: QS - Formule vérification contenu</title>
      <link>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23775#M433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Voici une solution :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15173273836469395" jivemacro_uid="_15173273836469395"&gt;
&lt;P&gt;DATA:&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NumCde, Article, SsFamille, FamilleProduit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000001, 000001, Sous-Famille 1, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000001, 000002, Sous-Famille 2, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000001, 000003, Sous-Famille 3, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000001, 000004, Sous-Famille 4, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000001, 000005, Sous-Famille 5, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000001, 000006, Sous-Famille 4, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000002, 000001, Sous-Famille 1, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000002, 000002, Sous-Famille 2, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000002, 000004, Sous-Famille 4, A&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join(DATA)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; NumCde,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; If(Count(DISTINCT SubField(SsFamille, ' ', 2)) = 5, 'OK', 'Autres') as TEST&lt;/P&gt;
&lt;P&gt;Resident DATA&lt;/P&gt;
&lt;P&gt;Group By NumCde&lt;/P&gt;
&lt;P&gt; ;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aurélien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 15:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23775#M433</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2018-01-30T15:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: QS - Formule vérification contenu</title>
      <link>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23776#M434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;au final, pas besoin du subfield, un &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Count(DISTINCT SsFamille&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;) devrait suffire.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 16:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23776#M434</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2018-01-30T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: QS - Formule vérification contenu</title>
      <link>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23777#M435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci pour ta réponse.&lt;BR /&gt;J'ai réadapté ta formule, mais ça ne fonctionne pas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(subfield(Spécification3,' ', 2)&amp;lt;&amp;gt;'PC','AUTRES',IF(COUNT(DISTINCT Mid(Spécification3,Len(subfield(Spécification3,' ', 1))+Len(subfield(Spécification3,' ', 2))+2,20))=5,'OK','AUTRES'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J'ai besoin de ma fonction subfield pour tronquer mon champ "Spécification3".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- subfield(Spécification3,' ', 2) = me donne la famille produit&lt;/P&gt;&lt;P&gt;2 - Mid(Spécification3,Len(subfield(Spécification3,' ', 1))+Len(subfield(Spécification3,' ', 2))+2,20) = me donne la sous famille&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C'est quand j'ajoute la condition 1 que ça plante.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci d'avance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 11:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23777#M435</guid>
      <dc:creator>elanglois33</dc:creator>
      <dc:date>2018-01-31T11:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: QS - Formule vérification contenu</title>
      <link>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23778#M436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bonjour,&lt;/P&gt;&lt;P&gt;ppour vérifier la présence d'une chaine dans un champ, tu peux utiliser la fonction substringcount()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/StringFunctions/SubStringCount.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/StringFunctions/SubStringCount.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/StringFunctions/SubStringCount.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23778#M436</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2018-01-31T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: QS - Formule vérification contenu</title>
      <link>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23779#M437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;En ajoutant le &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;subfield(Spécification3,' ', 2) dans le group by ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23779#M437</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2018-01-31T13:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: QS - Formule vérification contenu</title>
      <link>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23780#M438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parfait ça marche &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci beaucoup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 09:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/QS-Formule-v%C3%A9rification-contenu/m-p/23780#M438</guid>
      <dc:creator>elanglois33</dc:creator>
      <dc:date>2018-02-05T09:27:54Z</dc:date>
    </item>
  </channel>
</rss>

