<?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: Applying different weights on each level of hierarchy in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692461#M143519</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &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"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Feb 2024 21:39:32 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-02-10T21:39:32Z</dc:date>
    <item>
      <title>Applying different weights on each level of hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692257#M143504</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have PnL fact table like this:&amp;nbsp;&lt;SPAN&gt;fact_table([id],[date],[account_key],[sales_amount]) and dimension for PnL hierarchy like this:&amp;nbsp;dimension_table([account_key],[level_1_name],[level_2_name],[level_2_weight],[level_3_name],[level_3_weight],[level_4_name],[level_4_weight],[level_5_name],[level_5_weight]) relationship between those table is M:N through account_key.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to calculate sum of sales_amount with applying the correct weight when going from a lower level of the hierarchy to a higher one.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not all levels for each account is valid -&amp;gt; each level except one can be null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried everything with INSCOPE, RELATED, SWITCH and SUMX but nothing worked for me.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to the file here:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1aR6Kxr6tM7P4_aFQc-fDw3UU5Xo-2quA/view?usp=sharing" target="_self"&gt;PBIX&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would very much appreciate any help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 05:57:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692257#M143504</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2024-02-11T05:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Applying different weights on each level of hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692461#M143519</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &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"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 21:39:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692461#M143519</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-10T21:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Applying different weights on each level of hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692478#M143525</link>
      <description>&lt;P&gt;&lt;A title="File" href="https://drive.google.com/file/d/1aR6Kxr6tM7P4_aFQc-fDw3UU5Xo-2quA/view?usp=drive_link" target="_self"&gt;PBIX file with sample data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report with sample data here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 22:17:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692478#M143525</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2024-02-10T22:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Applying different weights on each level of hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692501#M143528</link>
      <description>&lt;P&gt;access denied&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 23:55:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692501#M143528</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-10T23:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Applying different weights on each level of hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692576#M143532</link>
      <description>&lt;P&gt;I'm sorry. It should be fixed right now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 05:55:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3692576#M143532</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2024-02-11T05:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Applying different weights on each level of hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3693040#M143563</link>
      <description>&lt;P&gt;Looks like you mixed up your dimension and fact tables?&amp;nbsp; How are they supposed to correlate?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 23:39:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3693040#M143563</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-11T23:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Applying different weights on each level of hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3693422#M143581</link>
      <description>&lt;P&gt;I didn't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Fact the pnl_acc_chart_key.2 is a FK to the Dimension. In the Dim the same column is not the primary key either. I keep only the necessary columns for the demo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Dim should act as a 5lvl hierarchy of accounts weight should be used when the sum of Custom form Fact goes from lower level to higher.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationship is through&amp;nbsp;pnl_acc_chart_key.2&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 06:41:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3693422#M143581</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2024-02-12T06:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Applying different weights on each level of hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3694911#M143677</link>
      <description>&lt;P&gt;So this would be the base.&amp;nbsp; I don't see weights other than 1 and -1.&amp;nbsp; Is that correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this what you are after?&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;</description>
      <pubDate>Mon, 12 Feb 2024 22:34:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-different-weights-on-each-level-of-hierarchy/m-p/3694911#M143677</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-12T22:34:33Z</dc:date>
    </item>
  </channel>
</rss>

