<?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: Sum of a dim value for each row in a fact table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4415039#M175323</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="933530" data-lia-user-login="funkyman50" class="lia-mention lia-mention-user"&gt;funkyman50&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please &lt;U&gt;provide sample data that &lt;STRONG&gt;fully&lt;/STRONG&gt; represents your issue or question in a &lt;STRONG&gt;usable format&lt;/STRONG&gt;&lt;/U&gt;, rather than a screenshot? Ensure the dataset is anonymized and does not contain any sensitive or unrelated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, it would be very helpful if you could &lt;U&gt;share the &lt;STRONG&gt;expected outcome&lt;/STRONG&gt; based on the provided data&lt;/U&gt; - this can be in any format, including a screenshot. Having a clear reference for comparison will significantly improve the chances of getting the correct solution in the first response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For best practices, you may find the following links useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;Need help uploading data?&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;Want faster answers?&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Also let us know whether you prefer having a calculated column or, a measure. As far my current understanding of your issue, I think you can explore the &lt;CODE&gt;RELATED()&lt;/CODE&gt; function in DAX&amp;nbsp; to resolve your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the links to understand how&amp;nbsp;&lt;CODE&gt;RELATED()&lt;/CODE&gt; function works:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/related-function-dax" target="_blank"&gt;RELATED function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dax.guide/related/" target="_blank"&gt;RELATED – DAX Guide&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: #033f38;"&gt;Proud to be a Super User&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 06:09:44 GMT</pubDate>
    <dc:creator>quantumudit</dc:creator>
    <dc:date>2025-02-18T06:09:44Z</dc:date>
    <item>
      <title>Sum of a dim value for each row in a fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4414516#M175312</link>
      <description>&lt;P&gt;I have a fact table [Fact].[Surgeries] that has columns like SurgeryDate, SurgeryDuration, SurgeryCost, SurgeonID (key to Dim.Surgeon), SurgeryID (key to Dim.Surgery).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Dim.Surgery, there is a column SurgeryStandardDuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get a comparison of actual duration vs standard duration via two SUM measures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM(Fact.Surgeries[SurgeryDuration]) returns the accurate sum of minutes when grouped by surgeon but SUM(Dim.Surgery[SurgeryStandardDuration]) is only returning a sum of one of each surgery as filtered by the SurgeryID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to write the DAX to apply the&amp;nbsp;SurgeryStandardDuration value to each row in the Surgeries fact before summing or do I need to make a calculated column in Fact.Surgeries and then sum that?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 22:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4414516#M175312</guid>
      <dc:creator>funkyman50</dc:creator>
      <dc:date>2025-02-17T22:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a dim value for each row in a fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4415039#M175323</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="933530" data-lia-user-login="funkyman50" class="lia-mention lia-mention-user"&gt;funkyman50&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please &lt;U&gt;provide sample data that &lt;STRONG&gt;fully&lt;/STRONG&gt; represents your issue or question in a &lt;STRONG&gt;usable format&lt;/STRONG&gt;&lt;/U&gt;, rather than a screenshot? Ensure the dataset is anonymized and does not contain any sensitive or unrelated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, it would be very helpful if you could &lt;U&gt;share the &lt;STRONG&gt;expected outcome&lt;/STRONG&gt; based on the provided data&lt;/U&gt; - this can be in any format, including a screenshot. Having a clear reference for comparison will significantly improve the chances of getting the correct solution in the first response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For best practices, you may find the following links useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;Need help uploading data?&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;Want faster answers?&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Also let us know whether you prefer having a calculated column or, a measure. As far my current understanding of your issue, I think you can explore the &lt;CODE&gt;RELATED()&lt;/CODE&gt; function in DAX&amp;nbsp; to resolve your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the links to understand how&amp;nbsp;&lt;CODE&gt;RELATED()&lt;/CODE&gt; function works:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/related-function-dax" target="_blank"&gt;RELATED function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dax.guide/related/" target="_blank"&gt;RELATED – DAX Guide&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: #033f38;"&gt;Proud to be a Super User&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 06:09:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4415039#M175323</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2025-02-18T06:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a dim value for each row in a fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4415452#M175335</link>
      <description>&lt;P&gt;Try this measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Std Surgery Duration = SUMX('Fact.Surgeries',RELATED('Dim.Surgery'[SurgeryStandardDuration]))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Feb 2025 09:07:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4415452#M175335</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2025-02-18T09:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of a dim value for each row in a fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4416130#M175352</link>
      <description>&lt;P&gt;This worked great. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:04:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-a-dim-value-for-each-row-in-a-fact-table/m-p/4416130#M175352</guid>
      <dc:creator>funkyman50</dc:creator>
      <dc:date>2025-02-18T15:04:07Z</dc:date>
    </item>
  </channel>
</rss>

