<?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: DAX help (pathetic) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4008747#M157393</link>
    <description>&lt;P&gt;Dear Nono,&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Edit: Here are the source file and the same test file you sent in case&lt;/STRONG&gt;:&amp;nbsp;&lt;A href="https://we.tl/t-l1Y8efa1DN" target="_blank"&gt;https://we.tl/t-l1Y8efa1DN&lt;/A&gt;&lt;BR /&gt;Thank you so much for your quick response!&lt;BR /&gt;I actually would like to f&lt;SPAN&gt;ind the average margins associated with each customer based on the standard math formula&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(Selling price - Ave cost price Price)/Selling Price.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my case it is:&lt;BR /&gt;(Price each - the ave cost calculated from Measure)/Price each&lt;BR /&gt;Problem: The test file you attached, in Sale table, column margin has 100% margins, as my formula using above is incorrect.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Above is my aim to show customers' margins, sliced for each year. (kindly ignore the blank in the year slicer due to test data).&lt;BR /&gt;&lt;BR /&gt;Thank you, I will mark as solved once I get it! This means so much to us newbies.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Jun 2024 16:33:07 GMT</pubDate>
    <dc:creator>ModelFear</dc:creator>
    <dc:date>2024-06-25T16:33:07Z</dc:date>
    <item>
      <title>DAX help (pathetic)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4006706#M156914</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's newbie needing some pathetic DAX help. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt; Edit: i have included photos, link to pbix is below.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following model here with some sample data. It's a simple sales table and production table of costs.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;1. What I want to do is to find the average margins associated with each customer based on the formula of&lt;BR /&gt;(Selling price - Ave cost price Price)/Selling Price&lt;BR /&gt;In my case the equivalent column headers will be&lt;BR /&gt;(Price each -Actual Cost)/Price each&lt;BR /&gt;&lt;BR /&gt;2. Then I want to be able to have a slicer to slice systematically by years, the average margin of each customer based on average selling price and average actual cost, year by year.&lt;BR /&gt;&lt;BR /&gt;Problem 1:&amp;nbsp; I had errors when i tried to connect the date table to the production table of costs.&lt;BR /&gt;Problem 2: I created a measure called Average cost per item and I am not sure it is correct:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Average Cost Per Item =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_CurrentItem&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ProductionTable&lt;/SPAN&gt;&lt;SPAN&gt;[Item number]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ProductionTable&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ProductionTable&lt;/SPAN&gt;&lt;SPAN&gt;[Item number]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;_CurrentItem&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ProductionTable&lt;/SPAN&gt;&lt;SPAN&gt;[Actual cost]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Here is the wetransfer link, I spent so many hours to do this small sample of data as my dataset is actually larger.&lt;/P&gt;&lt;P&gt;&lt;A href="https://we.tl/t-HqPogA7JnH" target="_blank" rel="noopener"&gt;https://we.tl/t-HqPogA7JnH&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't sleep over this &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; and thank you in advance for detailed explanation as I am a newbie.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4006706#M156914</guid>
      <dc:creator>ModelFear</dc:creator>
      <dc:date>2024-06-24T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help (pathetic)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4007996#M157172</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698464" data-lia-user-login="ModelFear" class="lia-mention lia-mention-user"&gt;ModelFear&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Problem 1:&amp;nbsp; I had errors when i tried to connect the date table to the production table of costs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Based on the table data you have provided, I would recommend that you use the "Date" column to create the table relationship.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Problem 2: I created a measure called Average cost per item and I am not sure it is correct.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It looks like you want to group items by Item number and calculate the Average Cost Per Item for each Item number.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have modified your code as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
AVERAGEX(
    FILTER(
        ALLSELECTED('ProductionTable'),
        'ProductionTable'[Item number] = MAX('ProductionTable'[Item number])
    ),
    'ProductionTable'[Actual cost])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is the result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see attached page 2.&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;
&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;</description>
      <pubDate>Tue, 25 Jun 2024 01:58:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4007996#M157172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T01:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help (pathetic)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4008747#M157393</link>
      <description>&lt;P&gt;Dear Nono,&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Edit: Here are the source file and the same test file you sent in case&lt;/STRONG&gt;:&amp;nbsp;&lt;A href="https://we.tl/t-l1Y8efa1DN" target="_blank"&gt;https://we.tl/t-l1Y8efa1DN&lt;/A&gt;&lt;BR /&gt;Thank you so much for your quick response!&lt;BR /&gt;I actually would like to f&lt;SPAN&gt;ind the average margins associated with each customer based on the standard math formula&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(Selling price - Ave cost price Price)/Selling Price.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my case it is:&lt;BR /&gt;(Price each - the ave cost calculated from Measure)/Price each&lt;BR /&gt;Problem: The test file you attached, in Sale table, column margin has 100% margins, as my formula using above is incorrect.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Above is my aim to show customers' margins, sliced for each year. (kindly ignore the blank in the year slicer due to test data).&lt;BR /&gt;&lt;BR /&gt;Thank you, I will mark as solved once I get it! This means so much to us newbies.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:33:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4008747#M157393</guid>
      <dc:creator>ModelFear</dc:creator>
      <dc:date>2024-06-25T16:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help (pathetic)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4010712#M157834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698464" data-lia-user-login="ModelFear" class="lia-mention lia-mention-user"&gt;ModelFear&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;average margins = 
var PriceEach = SELECTEDVALUE('SaleTable'[Price each])
RETURN
IF(
    PriceEach &amp;lt;&amp;gt; 0,
    (PriceEach - 'ProductionTable'[Measure]) / PriceEach,
    BLANK()
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend that you choose to create the following visual:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you found this useful!&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;
&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;</description>
      <pubDate>Wed, 26 Jun 2024 07:54:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4010712#M157834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T07:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help (pathetic)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4012984#M158037</link>
      <description>&lt;P&gt;Dear Nono&amp;nbsp;&lt;FONT size="2"&gt;&amp;nbsp;&lt;STRONG&gt;Here are the source files and the latest test file you sent for convenience:&amp;nbsp;&lt;A href="https://we.tl/t-exltVujYVw" target="_blank" rel="noopener"&gt;https://we.tl/t-exltVujYVw&lt;/A&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for replying. Is it possible to have the average margins measure as a column in my source data that I can view under Table view sales table? A measure is hard to grasp for new bi users, who like to see what they have calculated. Having a column will allow me to make visuals easily. I understand there are concerns such as performance issues etc. Bosses would also know to click the table view to examine data or even copy table. A table visual in bi is not as easy to see or do things.&lt;/P&gt;&lt;PRE&gt;average margins = 
var PriceEach = SELECTEDVALUE('SaleTable'[Price each])
RETURN
IF(
    PriceEach &amp;lt;&amp;gt; 0,
    (PriceEach - 'ProductionTable'[Measure]) / PriceEach,
    BLANK()
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you so much again.&amp;nbsp;&lt;BR /&gt;L&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 08:47:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4012984#M158037</guid>
      <dc:creator>ModelFear</dc:creator>
      <dc:date>2024-06-27T08:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help (pathetic)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4013032#M158044</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698464" data-lia-user-login="ModelFear" class="lia-mention lia-mention-user"&gt;ModelFear&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In response to your question: "Is it possible to have the average margin measurement as a column in the source data that I can view under the table view sales table?"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can certainly include average profit margin measurements as a column in the source data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
    AVERAGEX(
    FILTER(
        ALLSELECTED('ProductionTable'[Item name]),
        'ProductionTable'[Item number] = EARLIER('ProductionTable'[Item number])
    ),
    'ProductionTable'[Actual cost]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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>Thu, 27 Jun 2024 09:00:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4013032#M158044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-27T09:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help (pathetic)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4013157#M158055</link>
      <description>&lt;P&gt;Dear Nono,&amp;nbsp; &lt;FONT size="2"&gt;&lt;STRONG&gt;Edit: Hi Nono, i hope to get your kind help. I still have no answer. Thanks much&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Here are the source files and the latest test file you sent for convenience:&amp;nbsp;&lt;A href="https://we.tl/t-exltVujYVw" target="_blank" rel="noopener nofollow noreferrer"&gt;https://we.tl/t-exltVujYVw&lt;/A&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Thank you for the quick response.&lt;BR /&gt;Erm, what I meant is margins (profit), and not the actual cost as provided above.&lt;BR /&gt;&lt;BR /&gt;Instead of a measure for margins, I would like a margin column, in fact table :&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, the margins in the attached file is incorrect 100% because look at the formula:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Pl pardon my ignorance on Dax, this is the steepest learning curve for new users &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 08:59:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-pathetic/m-p/4013157#M158055</guid>
      <dc:creator>ModelFear</dc:creator>
      <dc:date>2024-06-28T08:59:36Z</dc:date>
    </item>
  </channel>
</rss>

