<?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 handle this requirement? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-this-requirement/m-p/3037066#M104016</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I dont think this will work because I need to calculate the marketvalue * carbonemission row by row. Taking it as a total summarized value and then multiplying it will give me an inccorect value.&lt;BR /&gt;&lt;BR /&gt;Right now I am doing this which gives me the correct result, but I want to get rid of the userelationship which enables a many-many relationship&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 15:37:48 GMT</pubDate>
    <dc:creator>Bosmeneer</dc:creator>
    <dc:date>2023-01-23T15:37:48Z</dc:date>
    <item>
      <title>How to handle this requirement?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-this-requirement/m-p/3034107#M103823</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I've been struggling with a scenario for a while which I want to solve properly. Below I've created a model which contains the relevant tables from a more complex data model.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The requirement&lt;/STRONG&gt;&lt;BR /&gt;Calculate the following&lt;BR /&gt;Divide this&lt;BR /&gt;&lt;STRONG&gt;SUM(Fact_Marketvalue.Marketvalue) * SUM(Fact_Rating.Carbonemission)&lt;BR /&gt;where the Fact_Ratings.Carbonemission &amp;gt; 5)&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;by this&lt;BR /&gt;&lt;STRONG&gt;SUM(Fact_Marketvalue.Marketvalue) &amp;gt; 5 )&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;The result should by sliceable by Category, Customer, Security and more Dimension tables in my model.&lt;BR /&gt;Right now I created many-many relationships between Fact_MarketValue and Fact_Ratings on the Security ID, but I want to avoid this relationship.&lt;BR /&gt;&lt;BR /&gt;What would be the best thing to do? Create a view in SQL which holds all information needed, if so, I want to keep it as lean as possible? or should I create a bridge table, if so, with what information? Or maybe I am missing some DAX magic..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 14:10:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-this-requirement/m-p/3034107#M103823</guid>
      <dc:creator>Bosmeneer</dc:creator>
      <dc:date>2023-01-20T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle this requirement?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-this-requirement/m-p/3034180#M103825</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="502110" data-lia-user-login="Bosmeneer" class="lia-mention lia-mention-user"&gt;Bosmeneer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try the following measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;VAR TotalMarketValue =&lt;BR /&gt;SUM ( Fact_Marketvalue[Marketvalue] )&lt;BR /&gt;VAR RequiredSecurityIDs =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( Fact_Ratings[Dim_Security_ID] ),&lt;BR /&gt;Fact_Ratings[Carbonemission] &amp;gt; 5&lt;BR /&gt;)&lt;BR /&gt;VAR RequiredCarbonemission =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( Fact_Rating[Carbonemission] ),&lt;BR /&gt;&lt;SPAN&gt;Fact_Ratings[Carbonemission] &amp;gt; 5&lt;/SPAN&gt;&lt;BR /&gt;)&lt;BR /&gt;VAR RequiredMarketValue =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( Fact_Marketvalue[Marketvalue] ),&lt;BR /&gt;Fact_Marketvalue[Dim_Security_ID] IN RequiredSecurityIDs&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;DIVIDE ( TotalMarketValue * RequiredCarbonemission, RequiredMarketValue )&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 14:53:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-this-requirement/m-p/3034180#M103825</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-20T14:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle this requirement?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-this-requirement/m-p/3037066#M104016</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I dont think this will work because I need to calculate the marketvalue * carbonemission row by row. Taking it as a total summarized value and then multiplying it will give me an inccorect value.&lt;BR /&gt;&lt;BR /&gt;Right now I am doing this which gives me the correct result, but I want to get rid of the userelationship which enables a many-many relationship&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:37:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-this-requirement/m-p/3037066#M104016</guid>
      <dc:creator>Bosmeneer</dc:creator>
      <dc:date>2023-01-23T15:37:48Z</dc:date>
    </item>
  </channel>
</rss>

