<?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: Parent Child Hierarchy - Sum all Leafs on each NodeLevel in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4123130#M163713</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="500168" data-lia-user-login="polestar_11" class="lia-mention lia-mention-user"&gt;polestar_11&lt;/a&gt;,&amp;nbsp;try these measures below, and if you encounter any issues, let me know.&lt;/P&gt;&lt;P&gt;Create a measure for Total Amount:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Amount = SUM('Fact Table'[Amount])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Create a measure for Hierarchy Aggregation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggregated Amount = 
VAR CurrentNode = MAX('Hierarchy'[Name])
RETURN
CALCULATE(
    [Total Amount],
    FILTER(
        ALL('Hierarchy'),
        PATHCONTAINS('Hierarchy'[Path], CurrentNode)
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Did I answer your question?&amp;nbsp;&lt;/STRONG&gt; &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;If so, please mark my post as the solution!&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Your Kudos are much appreciated!&amp;nbsp;&lt;/STRONG&gt; &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Proud to be a Solution Supplier!&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 15:25:40 GMT</pubDate>
    <dc:creator>ahadkarimi</dc:creator>
    <dc:date>2024-08-28T15:25:40Z</dc:date>
    <item>
      <title>Parent Child Hierarchy - Sum all Leafs on each NodeLevel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4122444#M163679</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me with my Parent Child Hierarchy problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to use a Dax measure to make the amount from the fact table (on hierarchy leaves) available on all node levels.&lt;BR /&gt;The specialty is that I want to use the flat hierarchy column “Name” from the table “Hierarchy” in the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Without the following solutions:&lt;BR /&gt;Using a hierarchy&lt;BR /&gt;Lev1-3 or LevName1-3 in scope of the visual&lt;BR /&gt;Calculation as a column and not as a separate dax measure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In the attached picture you can see the test data and the desired result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 09:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4122444#M163679</guid>
      <dc:creator>polestar_11</dc:creator>
      <dc:date>2024-08-28T09:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parent Child Hierarchy - Sum all Leafs on each NodeLevel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4123130#M163713</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="500168" data-lia-user-login="polestar_11" class="lia-mention lia-mention-user"&gt;polestar_11&lt;/a&gt;,&amp;nbsp;try these measures below, and if you encounter any issues, let me know.&lt;/P&gt;&lt;P&gt;Create a measure for Total Amount:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Amount = SUM('Fact Table'[Amount])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Create a measure for Hierarchy Aggregation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggregated Amount = 
VAR CurrentNode = MAX('Hierarchy'[Name])
RETURN
CALCULATE(
    [Total Amount],
    FILTER(
        ALL('Hierarchy'),
        PATHCONTAINS('Hierarchy'[Path], CurrentNode)
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Did I answer your question?&amp;nbsp;&lt;/STRONG&gt; &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;If so, please mark my post as the solution!&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Your Kudos are much appreciated!&amp;nbsp;&lt;/STRONG&gt; &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Proud to be a Solution Supplier!&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 15:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4123130#M163713</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-28T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parent Child Hierarchy - Sum all Leafs on each NodeLevel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4123172#M163716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="500168" data-lia-user-login="polestar_11" class="lia-mention lia-mention-user"&gt;polestar_11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try below measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
SUMX(
    SUMMARIZE('Hierarchy','Hierarchy'[Name],'Hierarchy'[ID]),
    CALCULATE(
        SUM('Fact'[Amount]),
        TREATAS(
            CALCULATETABLE(
                VALUES('Hierarchy'[ID]),
                PATHCONTAINS('Hierarchy'[Path],EARLIER('Hierarchy'[ID])),
                ALL()
            ),
            'Fact'[ID]
        )
    )
)&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you~&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 15:52:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4123172#M163716</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-08-28T15:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parent Child Hierarchy - Sum all Leafs on each NodeLevel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4123411#M163734</link>
      <description>&lt;P&gt;That works perfect. What is the Reason that it doesn't work with a relation between the two tables? Is there a solution with a relation?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 19:18:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parent-Child-Hierarchy-Sum-all-Leafs-on-each-NodeLevel/m-p/4123411#M163734</guid>
      <dc:creator>polestar_11</dc:creator>
      <dc:date>2024-08-28T19:18:26Z</dc:date>
    </item>
  </channel>
</rss>

