<?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 Add Invoke Custum Function in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3311594#M106973</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I would like to create a Invoke Custum&amp;nbsp;function and then add it in a list/table.&lt;BR /&gt;I was thinking of a code that would look like the image attached but I don't know how to solve it and also it could work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;()=&amp;gt;

let
    fct = Text.Select,    // Function name in Cell C3 in Excel
    text = txt,           //Text = Hello the Word 2023 in Cell C4 in Excel
    ListArgument = arg,   // ListArgument = Table Range C7:C28 in Excel
    res = fct(text, ListArgument)
in
    res&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Argument
{"0".."9"}
{0..9}
{"0".."10"}
{"0..10"}
"4"
{"0", "1", "2"}
{0, 1, 2, 3}
{"2, 3"}
"20"
"A"
"a"
{"H","T"}
{"H", "o", "3" 
{"A".."z"}
{"A".."Z"}
{"a".."z"}
"H,o"
"H", "o"
"ab"
{"A".."Z", "0".."9"}
{"A".."Z", " ", "0".."9"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2023 18:07:16 GMT</pubDate>
    <dc:creator>Mederic</dc:creator>
    <dc:date>2023-07-02T18:07:16Z</dc:date>
    <item>
      <title>Add Invoke Custum Function</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3311594#M106973</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I would like to create a Invoke Custum&amp;nbsp;function and then add it in a list/table.&lt;BR /&gt;I was thinking of a code that would look like the image attached but I don't know how to solve it and also it could work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;()=&amp;gt;

let
    fct = Text.Select,    // Function name in Cell C3 in Excel
    text = txt,           //Text = Hello the Word 2023 in Cell C4 in Excel
    ListArgument = arg,   // ListArgument = Table Range C7:C28 in Excel
    res = fct(text, ListArgument)
in
    res&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Argument
{"0".."9"}
{0..9}
{"0".."10"}
{"0..10"}
"4"
{"0", "1", "2"}
{0, 1, 2, 3}
{"2, 3"}
"20"
"A"
"a"
{"H","T"}
{"H", "o", "3" 
{"A".."z"}
{"A".."Z"}
{"a".."z"}
"H,o"
"H", "o"
"ab"
{"A".."Z", "0".."9"}
{"A".."Z", " ", "0".."9"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 18:07:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3311594#M106973</guid>
      <dc:creator>Mederic</dc:creator>
      <dc:date>2023-07-02T18:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add Invoke Custum Function</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3312241#M107002</link>
      <description>&lt;LI-CODE lang="markup"&gt;(argText as nullable text, argList as nullable list) =&amp;gt;

let
    Fct = Text.Select,    // Function name in Cell C3 in Excel
    Text = argText,           // Text = Hello the Word 2023 in Cell C4 in Excel
    ListArgument = argList,   // ListArgument = Table Range C7:C28 in Excel
    Res = Fct(Text, ListArgument)
in
    Res&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Jul 2023 08:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3312241#M107002</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2023-07-03T08:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add Invoke Custum Function</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313086#M107045</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="474658" data-lia-user-login="ThxAlot" class="lia-mention lia-mention-user"&gt;ThxAlot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your reply, unfortunately I can't get it to work.&lt;BR /&gt;It gives errors all over the column.&lt;BR /&gt;Does it work on your side?&lt;BR /&gt;If that's the case, I'll do it properly again and apply your suggestions.&lt;/P&gt;&lt;P&gt;Maybe I'm not missing much...!!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 17:44:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313086#M107045</guid>
      <dc:creator>Mederic</dc:creator>
      <dc:date>2023-07-03T17:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add Invoke Custum Function</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313159#M107049</link>
      <description>&lt;P&gt;Bonjour&lt;/P&gt;&lt;P&gt;D'après votre copie d'écran vous travaillez en français.&lt;/P&gt;&lt;P&gt;Text.select n'accepte en second argument que des caractères uniques. Donc "0", "1" et non 0 ,1 qui sont des nombres et non du texte.&lt;/P&gt;&lt;P&gt;"10" , "20" ou "ab" ont 2 caractères. D'où l'erreur renvoyée.&lt;/P&gt;&lt;P&gt;Quel est l'objectif final ?&lt;/P&gt;&lt;P&gt;Stéphane&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 18:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313159#M107049</guid>
      <dc:creator>slorin</dc:creator>
      <dc:date>2023-07-03T18:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add Invoke Custum Function</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313176#M107050</link>
      <description>&lt;P&gt;Bonjour Stéphane,&lt;/P&gt;&lt;P&gt;Je travaille effectivement en français&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;,&lt;/P&gt;&lt;P&gt;Je souhaite faire une documentation de toutes les fonctions Power query,&lt;/P&gt;&lt;P&gt;Je voulais indiquer aussi les cas d'erreurs, ceux notamment que vous avez cités.&lt;/P&gt;&lt;P&gt;Sur l'image de mon post #1, j'ai mis manuellement les résultats et voudrais obtenir la même chose avec PQ&lt;/P&gt;&lt;P&gt;Mais pas certain qu'il soit possible&lt;/P&gt;&lt;P&gt;Cordialement&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 19:15:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313176#M107050</guid>
      <dc:creator>Mederic</dc:creator>
      <dc:date>2023-07-03T19:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add Invoke Custum Function</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313256#M107052</link>
      <description>&lt;P&gt;Idée intéressante.&lt;/P&gt;&lt;P&gt;Personnellement j'utilise constamment le site officiel avec toutes les fonctions et ça me va.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Le nombre d'arguments de chacune est variable ainsi que la typologie (liste, table, texte, date, nombre...) et je ne vois pas trop comment faire pour que l'utilisateur indique en C3 la fonction et que le reste suive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Je n'ai pas Excel sous la main pour tester votre code mais ça m'étonne que ça fonctionne sans&amp;nbsp; Expression.Evaluate pour convertir le contenu de C3 en fonction et/ou Function.Invoke pour appeler cette fonction dans la requête&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stéphane&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 20:37:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313256#M107052</guid>
      <dc:creator>slorin</dc:creator>
      <dc:date>2023-07-03T20:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add Invoke Custum Function</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313584#M107061</link>
      <description>&lt;P&gt;Je m'aide également du site officiel mais je pensais regrouper plusieurs fonctions de même type dans une matrice (voir capture).&lt;/P&gt;&lt;P&gt;J'aurais plusieurs matrices selon des groupes de fonctions homogènes...&lt;/P&gt;&lt;P&gt;L'autre idée était effectivement d'avoir les fonctions dans une liste déroulante.&lt;/P&gt;&lt;P&gt;Le code fx() que j'ai indiqué, était pour illustrer la demande.&lt;/P&gt;&lt;P&gt;Effectivement, Expression.Evaluate est une piste....&lt;/P&gt;&lt;P&gt;Merci&lt;/P&gt;&lt;P&gt;Cordialement&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 04:28:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3313584#M107061</guid>
      <dc:creator>Mederic</dc:creator>
      <dc:date>2023-07-04T04:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add Invoke Custum Function</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3314999#M107129</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tested another way with&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="540014" data-lia-user-login="slorin" class="lia-mention lia-mention-user"&gt;slorin&lt;/a&gt;&amp;nbsp;idea using Expression.Evaluate&lt;BR /&gt;This works for a single value.&lt;BR /&gt;I don't know how to create a function and then apply it to a list&lt;BR /&gt;Not sure if this is possible.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    TextParam = text,  //Excel.CurrentWorkbook(){[Name="Texte"]}[Content]{0}[Texte]
    Fct = Text.Select,
    ListParam = Expression.Evaluate(Argument),  //Excel.CurrentWorkbook(){[Name="Argument"]}[Content]{0}[Argument],
    Expression = Expression.Evaluate(Fct(TextParam, ListParam))

in
    Expression&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 19:49:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Add-Invoke-Custum-Function/m-p/3314999#M107129</guid>
      <dc:creator>Mederic</dc:creator>
      <dc:date>2023-07-04T19:49:48Z</dc:date>
    </item>
  </channel>
</rss>

