<?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 Measure Can't Be Created in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Can-t-Be-Created/m-p/4007284#M156936</link>
    <description>&lt;P&gt;In Power Query Editor, I have created the function called "getChatGPTResponse".&lt;/P&gt;&lt;P&gt;When I try to create the Measure shown below in the Power BI Desktop, I'm being "told" that&amp;nbsp;&lt;EM&gt;getChatGPTResponse&lt;/EM&gt; is not a function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Red squiggly lines appear underneath "getChatGPTResponse".)&lt;/P&gt;&lt;P&gt;How do I fix this Measure?&amp;nbsp; Thanks!&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;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 16:01:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-24T16:01:17Z</dc:date>
    <item>
      <title>Measure Can't Be Created</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Can-t-Be-Created/m-p/4007284#M156936</link>
      <description>&lt;P&gt;In Power Query Editor, I have created the function called "getChatGPTResponse".&lt;/P&gt;&lt;P&gt;When I try to create the Measure shown below in the Power BI Desktop, I'm being "told" that&amp;nbsp;&lt;EM&gt;getChatGPTResponse&lt;/EM&gt; is not a function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Red squiggly lines appear underneath "getChatGPTResponse".)&lt;/P&gt;&lt;P&gt;How do I fix this Measure?&amp;nbsp; Thanks!&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;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:01:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Can-t-Be-Created/m-p/4007284#M156936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T16:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Can't Be Created</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Can-t-Be-Created/m-p/4007333#M156937</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;You refer that you are using Power Query. PQ uses M language and you are writing a DAX syntax so it won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX measures are not created on the Power Query they are created on the Desktop so you need to add them to your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the tutorial to create the measures:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-tutorial-create-measures" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-tutorial-create-measures&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:16:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Can-t-Be-Created/m-p/4007333#M156937</guid>
      <dc:creator>MFelix</dc:creator>
      <dc:date>2024-06-24T16:16:52Z</dc:date>
    </item>
  </channel>
</rss>

