<?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 Simple DAX issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891430#M93860</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. DIM table: CostCenters&lt;/P&gt;&lt;P&gt;&amp;nbsp; -Id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. FACT Table: Revenue&lt;/P&gt;&lt;P&gt;&amp;nbsp; -OriginalId&lt;/P&gt;&lt;P&gt;&amp;nbsp; -NewId&lt;/P&gt;&lt;P&gt;&amp;nbsp; -Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a relation between CostCenters.Id and Revenue.NewId and I can easyily calculate the "Sum of Amount" of CostCenter.NewId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I need a measure that gives me the "Sum of Amount" for the CostCenter.OriginalId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried many things but nothing works &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would really be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx Christian&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 08:17:09 GMT</pubDate>
    <dc:creator>_chris_</dc:creator>
    <dc:date>2022-11-08T08:17:09Z</dc:date>
    <item>
      <title>Simple DAX issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891430#M93860</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. DIM table: CostCenters&lt;/P&gt;&lt;P&gt;&amp;nbsp; -Id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. FACT Table: Revenue&lt;/P&gt;&lt;P&gt;&amp;nbsp; -OriginalId&lt;/P&gt;&lt;P&gt;&amp;nbsp; -NewId&lt;/P&gt;&lt;P&gt;&amp;nbsp; -Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a relation between CostCenters.Id and Revenue.NewId and I can easyily calculate the "Sum of Amount" of CostCenter.NewId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I need a measure that gives me the "Sum of Amount" for the CostCenter.OriginalId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried many things but nothing works &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would really be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx Christian&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:17:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891430#M93860</guid>
      <dc:creator>_chris_</dc:creator>
      <dc:date>2022-11-08T08:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891671#M93879</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="85234" data-lia-user-login="_chris_" class="lia-mention lia-mention-user"&gt;_chris_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand your question correctly then you need follow below steps:-&lt;/P&gt;
&lt;P&gt;1. Create a inactive relationship between&amp;nbsp;&lt;SPAN&gt;CostCenters.Id and Revenue.OriginalId&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Create a measur as below:-&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure_ =
CALCULATE (
    SUM ( Revenue[Amount] ),
    USERELATIONSHIP ( CostCenters[Id], Revenue[OriginalId] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:23:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891671#M93879</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2022-11-08T09:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891691#M93883</link>
      <description>&lt;P&gt;Thank you very much, Samarth!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had in mind that it is possible to solve problems like this with an inactive relationsship. However, I did not know how to do this exactly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand (as I am coming from SQL) where you can just join tables together without the need to add something to the (not existing) model, I am wondering if there is a way to achieve this w/o the need to create a relationship beforehand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I will accept your solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR Christian&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:26:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891691#M93883</guid>
      <dc:creator>_chris_</dc:creator>
      <dc:date>2022-11-08T09:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891808#M93895</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="85234" data-lia-user-login="_chris_" class="lia-mention lia-mention-user"&gt;_chris_&lt;/a&gt;, this is preferred way to achieve it. Rest of the thing depend upon your model and data.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 10:02:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-issue/m-p/2891808#M93895</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2022-11-08T10:02:29Z</dc:date>
    </item>
  </channel>
</rss>

