<?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: Create a measure in query editor in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3210885#M117100</link>
    <description>&lt;P&gt;Thanks for your help thus far I appreciate it.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas on how to achieve this?&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 09:09:00 GMT</pubDate>
    <dc:creator>nh27</dc:creator>
    <dc:date>2023-04-28T09:09:00Z</dc:date>
    <item>
      <title>Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3205276#M116726</link>
      <description>&lt;P&gt;I have a column in Table A that I need to return a value based on a calculation using a value from another column in table A and also a value in Table B.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Table A &amp;amp; B are linked with a one to many relationship but can't seem to figure out how to reference this in the query editor, anyone have any ideas how to achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 14:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3205276#M116726</guid>
      <dc:creator>nh27</dc:creator>
      <dc:date>2023-04-25T14:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3205374#M116732</link>
      <description>&lt;P&gt;Depends on which end of the relationship Table A is. If Table A is the many side then in a calculated column on Table A you can get a value from Table B using &lt;A href="https://learn.microsoft.com/en-us/dax/related-function-dax" target="_self"&gt;RELATED&lt;/A&gt;. If Table A is the one side then you would use &lt;A href="https://learn.microsoft.com/en-us/dax/relatedtable-function-dax" target="_self"&gt;RELATEDTABLE&lt;/A&gt; along with an iterator like MINX, MAXX.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 15:13:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3205374#M116732</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-25T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3207716#M116893</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not able to use any of these formula it seems, although I have a one to many relationship established in the power query editor itself for a calculated column.&lt;BR /&gt;&lt;BR /&gt;So for example, left table is my customer lookup, right table is my data table A.&lt;/P&gt;&lt;P&gt;I want the COGS column to be a calculation taking "Volume" from data table A * "Cogs Rate" from customer lookup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationship is managed based on the Customer/Material unique key I have created.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:53:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3207716#M116893</guid>
      <dc:creator>nh27</dc:creator>
      <dc:date>2023-04-26T16:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3208799#M116956</link>
      <description>&lt;P&gt;That should just be&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;COGS =
'Table A'[Volume] * RELATED ( 'Customer'[Cogs rate] )
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Apr 2023 08:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3208799#M116956</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-27T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209564#M117026</link>
      <description>&lt;P&gt;I just cannot seem to reference the Customer_Lookup table in this formula, only Table A, not sure why as the relationship is there in place.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:50:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209564#M117026</guid>
      <dc:creator>nh27</dc:creator>
      <dc:date>2023-04-27T14:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209579#M117028</link>
      <description>&lt;P&gt;Is it giving an error? If there are squiggly red lines in the formula bar it could just be Intellisense playing up.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:55:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209579#M117028</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-27T14:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209595#M117029</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the error I am getting&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:00:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209595#M117029</guid>
      <dc:creator>nh27</dc:creator>
      <dc:date>2023-04-27T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209605#M117031</link>
      <description>&lt;P&gt;That's in Power Query, its supposed to be in DAX. Select New Column from the modelling tab and put the formula in there.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:01:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209605#M117031</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-27T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209611#M117032</link>
      <description>&lt;P&gt;I should also mention I am trying to create this custom column inside the data table itself&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209611#M117032</guid>
      <dc:creator>nh27</dc:creator>
      <dc:date>2023-04-27T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209615#M117033</link>
      <description>&lt;P&gt;I'm trying to achieve this in Power Query in the editor, is it not possible?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209615#M117033</guid>
      <dc:creator>nh27</dc:creator>
      <dc:date>2023-04-27T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209631#M117034</link>
      <description>&lt;P&gt;I think it is but I don't remember the syntax for doing it in Power Query.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:13:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3209631#M117034</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-27T15:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure in query editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3210885#M117100</link>
      <description>&lt;P&gt;Thanks for your help thus far I appreciate it.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas on how to achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 09:09:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-in-query-editor/m-p/3210885#M117100</guid>
      <dc:creator>nh27</dc:creator>
      <dc:date>2023-04-28T09:09:00Z</dc:date>
    </item>
  </channel>
</rss>

