<?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 of measure in table/matrix to summarize in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4753716#M182000</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-pm-slice="0 0 []"&gt;You're working with hierarchical data in Power BI, where each row represents a work item, and its position in the hierarchy is identified by a string path column like WorkItemPath. You want to calculate the total "Completed Work" not just for each individual item, but also include the work completed by all its descendants in the hierarchy. To do this, you've written a DAX measure that tries to find all rows where the WorkItemPath starts with the current item's path—indicating it's either the item itself or a descendant. However, the issue you're facing is that the result only shows the value for the current row and not the sum of the descendants. This is because your filtering logic isn't properly overriding the visual context to scan the full dataset. By default, DAX evaluates the measure row by row within the visual, so unless you explicitly tell it to look at the entire table and filter for matching paths, it won’t include descendants. To fix this, the measure should use the CALCULATE function with the ALL function to remove the visual filter on Query1, then apply a custom FILTER that checks if each row's WorkItemPath either equals the current path or starts with the current path plus the delimiter (e.g., "|"). This adjusted measure will correctly find all matching rows—self and descendants—and sum their "Completed Work" values. It also remains dynamic, so it will respect external slicers and filters in the report, giving you the correct aggregated values in your table or matrix visual.&lt;/P&gt;
&lt;P data-pm-slice="0 0 []"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jul 2025 05:37:17 GMT</pubDate>
    <dc:creator>Poojara_D12</dc:creator>
    <dc:date>2025-07-05T05:37:17Z</dc:date>
    <item>
      <title>DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737778#M181462</link>
      <description>&lt;P&gt;I'm looking for a DAX code that can summarize a column into a table or matrix visual. It bases on if a string column contains the value of another string column. I prefer it could be dynamic filterred by outside of the table/matrix visual. I created DAX measure like below: (Currentpath is the value that each line would look for; MatchingRows is a temp table that having workitempath contains the CurrentPath; Result is to sumarrize the amount)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Completed Work (Self + Descendants) = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VAR CurrentPath = SELECTEDVALUE(Query1[WorkItemPath])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VAR MatchingRows =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER (&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Query1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Query1[WorkItemPath] = CurrentPath || LEFT(Query1[WorkItemPath], LEN(CurrentPath) + 1) = CurrentPath &amp;amp; "|"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VAR Result =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUMX ( MatchingRows, COALESCE ( Query1[CompletedWork], 0 ) )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RETURN&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF ( ISBLANK(CurrentPath), BLANK(), Result )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I found the result is not expected. looks like it only returns the amount of current row instead of the summary of itself and descendants. Is there any solution to achieve it&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 14:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737778#M181462</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2025-06-19T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737796#M181463</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It seems that the issue with your measure is that the &lt;STRONG&gt;FILTER&lt;/STRONG&gt; function is only selecting the rows where the &lt;STRONG&gt;WorkItemPath&lt;/STRONG&gt; is equal to the &lt;STRONG&gt;CurrentPath&lt;/STRONG&gt; or where it starts with the CurrentPath, but it may&amp;nbsp;not correctly capture the descendants of the CurrentPath for aggregation. To address this, you can modify the logic slightly to include the "descendants" correctly by using the &lt;STRONG&gt;CONTAINSSTRING&lt;/STRONG&gt; function&amp;nbsp;to check for substring matches instead of just the &lt;STRONG&gt;LEFT&lt;/STRONG&gt; function. This will allow you to capture all rows where &lt;STRONG&gt;WorkItemPath&lt;/STRONG&gt; contains the &lt;STRONG&gt;CurrentPath&lt;/STRONG&gt;,&amp;nbsp;including any descendants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Total Completed Work (Self + Descendants) =
    VAR CurrentPath = SELECTEDVALUE(Query1[WorkItemPath])
    VAR MatchingRows =
        FILTER (
            Query1,
            CONTAINSSTRING(Query1[WorkItemPath], CurrentPath) 
        )
    VAR Result =
        SUMX ( MatchingRows, COALESCE ( Query1[CompletedWork], 0 ) )
    RETURN
        IF ( ISBLANK(CurrentPath), BLANK(), Result )&lt;/PRE&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Dynamic Filtering:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Since you mentioned you'd like it to be dynamically filtered by outside of the table/matrix visual, the use of &lt;STRONG&gt;SELECTEDVALUE(Query1[WorkItemPath])&lt;/STRONG&gt; will naturally allow this dynamic filtering to happen based on whatever context is applied to the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 14:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737796#M181463</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-06-19T14:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737900#M181472</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;As i understand, does your data contain workitemid and parentid, then you might consider using PATH functions in DAX?&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>Thu, 19 Jun 2025 16:50:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737900#M181472</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-06-19T16:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737911#M181473</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;&amp;nbsp; . The data does contain workitemid and parentid. I tried using PATH but it didn't give the right result. Then I broke it down to steps and using M code and created the path column before it load to visual or DAX. However, it's still not working.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 17:14:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737911#M181473</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2025-06-19T17:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737928#M181475</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp;, Thank you.&lt;/P&gt;&lt;P&gt;However, the codes with &lt;STRONG&gt;CONTAINSSTRING&amp;nbsp;&lt;/STRONG&gt;does not work. I tried that and also tried SEARCH. I believe the issue maybe on the row-content feature of table/matrix. I did a test. I created another measure with simaliar code but replace currentpath with a specific root workitemid. I added it into the table visual to count and also create a card visual with that measure and count. the count in the table is one and the one in card gives the right result. That means the measure actually captures the data but in the table visual, it stays on the current row even you using the temp table variable expecting to capture all descendants. I'm looking for the solution that would work in the table/matrix visual and dynamic filter (otherwise I could create calculation column)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 17:40:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737928#M181475</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2025-06-19T17:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737939#M181476</link>
      <description>&lt;P&gt;ok, please try this measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Completed Work =&lt;BR /&gt;VAR CurrentID = MAX(Query1[WorkItemID])&lt;BR /&gt;VAR Result =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Query1[CompletedWork]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(Query1),&lt;BR /&gt;PATHCONTAINS(Query1[Path], CurrentID)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF(ISBLANK(CurrentID), BLANK(), Result)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where path is the calculated column like this-&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Path =&lt;/SPAN&gt; &lt;SPAN&gt;PATH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query1&lt;/SPAN&gt;&lt;SPAN&gt;[WorkItemID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Query1&lt;/SPAN&gt;&lt;SPAN&gt;[ParentWorkItemID]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Jun 2025 17:54:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737939#M181476</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-06-19T17:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737982#M181478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;&amp;nbsp;PATHCONTAINS did the same thing. I tried your solution. Because the table is part of a large table, some ParentWorkItemID are not existed in the column WorkItemID in this table. That could cause error when using PATH to generate the calculated column. I used Power query and generated the PATH with delimiter "|" and replaced with null when the parentID not found. Your codes captures all the value included the rows of workitem and its descendants. But the issue is in the FILTER part, you use ALL function which takes everything regardless the filters out of the table visual, and this is not I want to. I tried remove ALL function, then it did the same thing as other (e.g. LEFT, SEARCH, CONTAINSSTRING...)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 19:52:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4737982#M181478</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2025-06-19T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4738280#M181485</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your feedback. It seems like the issue is related to the behavior of the table/matrix visual when working with measures. The measure is correctly calculating the sum when used in a card visual, but it doesn't display the expected result in the table visual due to row-level context in the matrix. The key problem here is that the table/matrix visual operates row-by-row, meaning that it evaluates the measure for each row in isolation. So even though you're trying to get the descendants, the row context isn't allowing the measure to behave as you want in the table visual.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this version of the DAX:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Total Completed Work (Self + Descendants) =
    VAR CurrentPath = SELECTEDVALUE(Query1[WorkItemPath])
    VAR MatchingRows =
        FILTER (
            ALL(Query1),  -- Remove row context, considering all rows in the table
            CONTAINSSTRING(Query1[WorkItemPath], CurrentPath)
        )
    VAR Result =
        SUMX ( MatchingRows, COALESCE ( Query1[CompletedWork], 0 ) )
    RETURN
        IF ( ISBLANK(CurrentPath), BLANK(), Result )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Dynamic Filtering:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Since you mentioned you'd like it to be dynamically filtered by outside of the table/matrix visual, the use of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;SELECTEDVALUE(Query1[WorkItemPath])&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;will naturally allow this dynamic filtering to happen based on whatever context is applied to the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 06:13:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4738280#M181485</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-06-20T06:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4738761#M181501</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you. ALL did remove the row-level context and captured all descendants. However, it also removed the other filter outside the table visual. (I discussed above with techies as well) It's&amp;nbsp; better but it doesn't meet the requirement for dynamic filter.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 13:03:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4738761#M181501</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2025-06-20T13:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4738786#M181503</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The issue is maintaining dynamic filter context while capturing descendant rows, which the &lt;STRONG&gt;ALL&lt;/STRONG&gt; function disrupts by removing external filters. To fix this, use the &lt;STRONG&gt;REMOVEFILTERS&lt;/STRONG&gt; function instead. It removes the filter on the &lt;STRONG&gt;Query1[WorkItemPath]&lt;/STRONG&gt; column but retains other external filters, allowing you to capture all descendants without affecting dynamic filtering in the&amp;nbsp;table/matrix visual. Try the updated version of the measure:&lt;/P&gt;&lt;PRE&gt;Total Completed Work (Self + Descendants) =
    VAR CurrentPath = SELECTEDVALUE(Query1[WorkItemPath])
    VAR MatchingRows =
        FILTER (
            REMOVEFILTERS(Query1[WorkItemPath]),  -- Keeps the outside filters intact
            CONTAINSSTRING(Query1[WorkItemPath], CurrentPath)
        )
    VAR Result =
        SUMX ( MatchingRows, COALESCE(Query1[CompletedWork], 0) )
    RETURN
        IF ( ISBLANK(CurrentPath), BLANK(), Result )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 13:24:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4738786#M181503</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-06-20T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4743600#M181632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for the update,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We wanted to kindly follow up to check if the solution provided by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp; for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 11:36:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4743600#M181632</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-06-25T11:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4748631#M181841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;May I ask if you have gotten this issue resolved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 14:14:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4748631#M181841</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-06-30T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4751405#M181928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I tried but didn't work. REMOVEFILTERS doesn't work here. it does not return a table, only modifies the filter context, while FILTER funtion needs a table expression for the first parameter. I then try using it in the place of filters (e.g. FLITER(Query1,REMOVEFILTERS(Query1[WorkItemPath]...)) then the row-level context filter apply before REMOVEFILTERS.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 21:16:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4751405#M181928</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2025-07-02T21:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4751928#M181942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 09:19:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4751928#M181942</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-07-03T09:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX of measure in table/matrix to summarize</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4753716#M182000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-pm-slice="0 0 []"&gt;You're working with hierarchical data in Power BI, where each row represents a work item, and its position in the hierarchy is identified by a string path column like WorkItemPath. You want to calculate the total "Completed Work" not just for each individual item, but also include the work completed by all its descendants in the hierarchy. To do this, you've written a DAX measure that tries to find all rows where the WorkItemPath starts with the current item's path—indicating it's either the item itself or a descendant. However, the issue you're facing is that the result only shows the value for the current row and not the sum of the descendants. This is because your filtering logic isn't properly overriding the visual context to scan the full dataset. By default, DAX evaluates the measure row by row within the visual, so unless you explicitly tell it to look at the entire table and filter for matching paths, it won’t include descendants. To fix this, the measure should use the CALCULATE function with the ALL function to remove the visual filter on Query1, then apply a custom FILTER that checks if each row's WorkItemPath either equals the current path or starts with the current path plus the delimiter (e.g., "|"). This adjusted measure will correctly find all matching rows—self and descendants—and sum their "Completed Work" values. It also remains dynamic, so it will respect external slicers and filters in the report, giving you the correct aggregated values in your table or matrix visual.&lt;/P&gt;
&lt;P data-pm-slice="0 0 []"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2025 05:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-of-measure-in-table-matrix-to-summarize/m-p/4753716#M182000</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2025-07-05T05:37:17Z</dc:date>
    </item>
  </channel>
</rss>

