<?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: Power BI Desktop Won't Find Function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Desktop-Won-t-Find-Function/m-p/4007880#M157118</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX measures cannot directly call or recognize M functions created in the Power Query editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's why Power BI Desktop can't find the function when trying to use it in a DAX measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may consider the following actions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before loading the data into the model, use the function in the Power Query editor to create a new column that stores the result of the function for each row of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you apply the function and add the new column containing the results, load the transformed data into Power BI Desktop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the data contains the results of the function, you can create DAX measures that operate on this data as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 01:05:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-25T01:05:50Z</dc:date>
    <item>
      <title>Power BI Desktop Won't Find Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Desktop-Won-t-Find-Function/m-p/4007832#M157109</link>
      <description>&lt;P&gt;I have successfully created a ChatGPT function in Power Query Editor called &lt;EM&gt;getChatGPTResponse&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;But, the Measure that I'm trying to use in the Power BI Desktop doesn't see my&amp;nbsp;&lt;EM&gt;getChatGPTResponse&lt;/EM&gt; function.&lt;/P&gt;&lt;P&gt;Below is the measure.&lt;/P&gt;&lt;P&gt;Why can Power BI Desktop not find the function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ChatGPTResponse = VAR SelectedMessage = SELECTEDVALUE(UserInput[UserInput]) RETURN IF(ISBLANK(SelectedMessage), BLANK(), getChatGPTResponse(SelectedMessage))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 23:14:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Desktop-Won-t-Find-Function/m-p/4007832#M157109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T23:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Desktop Won't Find Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Desktop-Won-t-Find-Function/m-p/4007880#M157118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX measures cannot directly call or recognize M functions created in the Power Query editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's why Power BI Desktop can't find the function when trying to use it in a DAX measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may consider the following actions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before loading the data into the model, use the function in the Power Query editor to create a new column that stores the result of the function for each row of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you apply the function and add the new column containing the results, load the transformed data into Power BI Desktop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the data contains the results of the function, you can create DAX measures that operate on this data as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 01:05:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Desktop-Won-t-Find-Function/m-p/4007880#M157118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T01:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Desktop Won't Find Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Desktop-Won-t-Find-Function/m-p/4012107#M157971</link>
      <description>&lt;P&gt;Would you please provide specific steps on the following suggestion that you made?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...use the function in the Power Query editor to create a new column that stores the result of the function for each row of data.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 23:41:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Desktop-Won-t-Find-Function/m-p/4012107#M157971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T23:41:11Z</dc:date>
    </item>
  </channel>
</rss>

