<?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: How to multiply percentage from dimension table with amount from fact table - many to many relation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-percentage-from-dimension-table-with-amount-from/m-p/3527439#M135538</link>
    <description>&lt;P&gt;To get correct sum, you need to do the caculation in column, not in measure. column sum will work as expected.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 09:56:12 GMT</pubDate>
    <dc:creator>Rupak_bi</dc:creator>
    <dc:date>2023-11-10T09:56:12Z</dc:date>
    <item>
      <title>How to multiply percentage from dimension table with amount from fact table - many to many relation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-percentage-from-dimension-table-with-amount-from/m-p/3527325#M135535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem getting the appropriate data from my DAX formula.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here's my model:&lt;BR /&gt;&lt;BR /&gt;fact&lt;BR /&gt;dimBank&lt;BR /&gt;dimSecurites&lt;BR /&gt;Fact table is a day to day table with debt amortization plan ordered by tranche (%dimSecurities)&lt;BR /&gt;&lt;BR /&gt;dimSecurities is a table with all specific data for the vessel, each having unique key %dimSecurities&lt;BR /&gt;&lt;BR /&gt;dimBank is a table where the split between multiple banks, where a %dimSeucrities sometimes occur 3-4 times depending on how many banks involved&lt;BR /&gt;This is a simplified version of my data model:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at this table, the data is correct when I add other dimensions, like "Share" or even better "%dimSecurities", but the total sum is incorrect as it is a result of the average share multiplied by total debt...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;However, I would like to show these data graphical in a barchart, but then I cannot add the aggregation, hence the total sum is being used, wich is incorrect, 12,017,545 when the correct sum should be more like 7,961..... etc&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;This is my DAX formula...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;debt &lt;/SPAN&gt;&lt;SPAN&gt;by&lt;/SPAN&gt;&lt;SPAN&gt; lenders =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'factSecurity'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;factSecurity&lt;/SPAN&gt;&lt;SPAN&gt;[Loan Balance Start]&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dimT16_Valutakurs&lt;/SPAN&gt;&lt;SPAN&gt;[Currency Rate]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dimT16_Valutakurs&lt;/SPAN&gt;&lt;SPAN&gt;[Dates]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;dimT16_Valutakurs&lt;/SPAN&gt;&lt;SPAN&gt;[FRA_VAL_KODE]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;factSecurity&lt;/SPAN&gt;&lt;SPAN&gt;[Currency]&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;factSecurity&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;factSecurity&lt;/SPAN&gt;&lt;SPAN&gt;[Dates]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)))* &lt;/SPAN&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dimBankAndGuarantor&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dimBankAndGuarantor&lt;/SPAN&gt;&lt;SPAN&gt;[Share]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Any help is much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;E&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Nov 2023 09:17:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-percentage-from-dimension-table-with-amount-from/m-p/3527325#M135535</guid>
      <dc:creator>powerbi_Mandal</dc:creator>
      <dc:date>2023-11-10T09:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply percentage from dimension table with amount from fact table - many to many relation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-percentage-from-dimension-table-with-amount-from/m-p/3527439#M135538</link>
      <description>&lt;P&gt;To get correct sum, you need to do the caculation in column, not in measure. column sum will work as expected.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 09:56:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-percentage-from-dimension-table-with-amount-from/m-p/3527439#M135538</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2023-11-10T09:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply percentage from dimension table with amount from fact table - many to many relation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-percentage-from-dimension-table-with-amount-from/m-p/3527478#M135541</link>
      <description>&lt;P&gt;Thanks!!&amp;nbsp;&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;</description>
      <pubDate>Fri, 10 Nov 2023 10:24:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-multiply-percentage-from-dimension-table-with-amount-from/m-p/3527478#M135541</guid>
      <dc:creator>powerbi_Mandal</dc:creator>
      <dc:date>2023-11-10T10:24:24Z</dc:date>
    </item>
  </channel>
</rss>

